Files
linux/drivers/usb/typec
Linyu Yuan ea42ef3ef6 usb: typec: add missing uevent when partner support PD
commit 6fb9e1d947 upstream.

System like Android allow user control power role from UI, it is possible
to implement application base on typec uevent to refresh UI, but found
there is chance that UI show different state from typec attribute file.

In typec_set_pwr_opmode(), when partner support PD, there is no uevent
send to user space which cause the problem.

Fix it by sending uevent notification when change power mode to PD.

Fixes: bdecb33af3 ("usb: typec: API for controlling USB Type-C Multiplexers")
Cc: stable@vger.kernel.org
Signed-off-by: Linyu Yuan <quic_linyyuan@quicinc.com>
Link: https://lore.kernel.org/r/1656662934-10226-1-git-send-email-quic_linyyuan@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-07-21 21:24:42 +02:00
..
2021-06-14 09:18:07 +02:00
2022-05-09 09:14:28 +02:00
2021-07-21 11:53:42 +02:00
2021-04-09 16:00:00 +02:00