linux/drivers/usb/typec
Linyu Yuan 6fb9e1d947 usb: typec: add missing uevent when partner support PD
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-08 14:58:09 +02:00
..
altmodes usb: typec: altmodes/displayport: Notify drm subsys of hotplug events 2021-08-20 12:35:59 +02:00
mux usb: typec: mux: Add On Semi fsa4480 driver 2022-04-26 13:47:13 +02:00
tcpm usb: typec: wcove: Drop wrong dependency to INTEL_SOC_PMIC 2022-06-21 16:28:05 +02:00
tipd usb: typec: tipd: Only update power status on IRQ 2022-04-21 18:31:08 +02:00
ucsi USB / Thunderbolt changes for 5.19-rc1 2022-06-03 11:17:49 -07:00
bus.c usb: typec: mux: Introduce indirection 2022-04-26 13:47:13 +02:00
bus.h usb: typec: Organize the private headers properly 2021-04-05 09:07:41 +02:00
class.c usb: typec: add missing uevent when partner support PD 2022-07-08 14:58:09 +02:00
class.h usb: typec: port-mapper: Convert to the component framework 2021-12-30 12:13:04 +01:00
hd3ss3220.c usb: typec: hd3ss3220: Use regmap_write_bits() 2021-09-14 10:12:06 +02:00
Kconfig usb: typec: rt1719: Fix build error without CONFIG_POWER_SUPPLY 2022-04-21 18:33:45 +02:00
Makefile usb: typec: Support the WUSB3801 port controller 2022-02-17 16:23:18 +01:00
mux.c usb: typec: mux: Allow multiple mux_devs per mux 2022-04-26 13:47:13 +02:00
mux.h usb: typec: mux: Introduce indirection 2022-04-26 13:47:13 +02:00
port-mapper.c ACPI: bus: Introduce acpi_bus_for_each_dev() 2022-03-02 20:55:47 +01:00
qcom-pmic-typec.c usb: typec: Add QCOM PMIC typec detection driver 2020-10-09 15:14:43 +02:00
rt1719.c usb: typec: rt1719: Add support for Richtek RT1719 2022-02-11 11:59:17 +01:00
stusb160x.c usb: typec: stusb160x: Don't block probing of consumer of "connector" nodes 2021-07-21 09:16:40 +02:00
wusb3801.c usb: typec: Support the WUSB3801 port controller 2022-02-17 16:23:18 +01:00