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: 0e6371fb ("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>
Loading