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:
Jack Pham <jackp@codeaurora.org>
Loading
Please register or sign in to comment