linux/drivers/usb
Myrrh Periwinkle 7616f006db usb: typec: ucsi: Update power_supply on power role change
The current power direction of an USB-C port also influences the
power_supply's online status, so a power role change should also update
the power_supply.

Fixes an issue on some systems where plugging in a normal USB device in
for the first time after a reboot will cause upower to erroneously
consider the system to be connected to AC power.

Cc: stable <stable@kernel.org>
Fixes: 0e6371fbfb ("usb: typec: ucsi: Report power supply changes")
Signed-off-by: Myrrh Periwinkle <myrrhperiwinkle@qtmlabs.xyz>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20250721-fix-ucsi-pwr-dir-notify-v1-1-e53d5340cb38@qtmlabs.xyz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-07-21 16:33:23 +02:00
..
atm treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
c67x00
cdns3 usb: cdnsp: Fix issue with CV Bad Descriptor test 2025-06-24 15:42:39 +01:00
chipidea usb: chipidea: imx: Add a missing blank line 2025-07-21 16:31:37 +02:00
class usb: usblp: clean up assignment inside if conditions 2025-07-21 16:30:54 +02:00
common usb: common: usb-conn-gpio: use a unique name for usb connector device 2025-04-11 16:08:34 +02:00
core Linux 6.16-rc7 2025-07-21 10:55:57 +02:00
dwc2 Linux 6.16-rc7 2025-07-21 10:55:57 +02:00
dwc3 Linux 6.16-rc7 2025-07-21 10:55:57 +02:00
early usb: early: xhci-dbc: Fix early_ioremap leak 2025-07-07 11:04:46 +02:00
fotg210 usb: fotg210-hcd: Switch to use hrtimer_setup() 2025-02-18 11:19:02 +01:00
gadget usb: gadget : fix use-after-free in composite_dev_cleanup() 2025-07-21 16:32:23 +02:00
host usb: xhci: Set avg_trb_len = 8 for EP0 during Address Device Command 2025-07-17 10:53:04 +02:00
image
isp1760 treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
misc usb: misc: onboard_usb_dev: Add Bison Electronics Inc. Integrated Camera 2025-06-30 15:42:16 +02:00
mon
mtu3 Driver core and debugfs updates 2025-01-28 12:25:12 -08:00
musb usb: musb: fix gadget state on disconnect 2025-07-07 10:58:15 +02:00
phy usb: phy: tegra: Remove unused functions 2025-06-19 12:26:32 +02:00
renesas_usbhs usb: renesas_usbhs: Convert to DEFINE_SIMPLE_DEV_PM_OPS() 2025-07-15 19:49:52 +02:00
roles usb: roles: set switch registered flag early on 2025-02-14 09:26:25 +01:00
serial USB: serial: option: add Telit Cinterion FE910C04 (ECM) composition 2025-07-10 16:13:51 +02:00
storage usb: storage: reltek_cr: convert to use secs_to_jiffies 2025-06-19 12:27:36 +02:00
typec usb: typec: ucsi: Update power_supply on power role change 2025-07-21 16:33:23 +02:00
usbip treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
Kconfig
Makefile
usb-skeleton.c