Commit 7a3f8d1a authored by Myrrh Periwinkle's avatar Myrrh Periwinkle Committed by Greg Kroah-Hartman
Browse files

usb: typec: ucsi: Update power_supply on power role change



commit 7616f006 upstream.

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: 0e6371fb ("usb: typec: ucsi: Report power supply changes")
Signed-off-by: default avatarMyrrh Periwinkle <myrrhperiwinkle@qtmlabs.xyz>
Reviewed-by: default avatarHeikki 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: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 94191de3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment