mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 17:02:17 +00:00
We only need to update the power_supply on power role change if the port
is connected, because otherwise the online status should be the same for
both cases.
Cc: stable <[email protected]>
Fixes: 7616f006db ("usb: typec: ucsi: Update power_supply on power role change")
Signed-off-by: Myrrh Periwinkle <[email protected]>
Reported-and-tested-by: Sergey Senozhatsky <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>