Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 0efff128 authored by Jack Pham's avatar Jack Pham
Browse files

usb: typec: ucsi: Notify USB role switch only if partner supports USB data



In cases where a port partner does not support USB data, we can avoid
starting the USB controller via usb_role_switch. UCSI should indicate
whether a partner supports USB data or not via the connector status
partner flags field, so check whether the 'USB' bit is set before
calling usb_role_switch_set_role().

Change-Id: Ia78dc9ecb3ff0c349e9debfa8e998c9d350a09ab
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 8c86f959
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment