diff options
author | Chunfeng Yun <chunfeng.yun@mediatek.com> | 2021-07-15 17:07:52 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-07-27 15:58:37 +0200 |
commit | 88c6b90188d8ebade3f5b1f80b51aa64e55de27e (patch) | |
tree | 1b904fcc2e6d54e747899cb0e43572379ed79c71 /drivers/usb/mtu3/mtu3.h | |
parent | usb: dwc3: drd: use helper to get role-switch-default-mode (diff) | |
download | wireguard-linux-88c6b90188d8ebade3f5b1f80b51aa64e55de27e.tar.xz wireguard-linux-88c6b90188d8ebade3f5b1f80b51aa64e55de27e.zip |
usb: mtu3: support property role-switch-default-mode
Support default mode config when use usb-role-switch
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Link: https://lore.kernel.org/r/1626340078-29111-8-git-send-email-chunfeng.yun@mediatek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/mtu3/mtu3.h')
-rw-r--r-- | drivers/usb/mtu3/mtu3.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/mtu3/mtu3.h b/drivers/usb/mtu3/mtu3.h index 5546b868b08b..bc82c7f97ad6 100644 --- a/drivers/usb/mtu3/mtu3.h +++ b/drivers/usb/mtu3/mtu3.h @@ -199,6 +199,7 @@ struct mtu3_gpd_ring { * @id_nb : notifier for iddig(idpin) detection * @dr_work : work for drd mode switch, used to avoid sleep in atomic context * @desired_role : role desired to switch +* @default_role : default mode while usb role is USB_ROLE_NONE * @role_sw : use USB Role Switch to support dual-role switch, can't use * extcon at the same time, and extcon is deprecated. * @role_sw_used : true when the USB Role Switch is used. @@ -212,6 +213,7 @@ struct otg_switch_mtk { struct notifier_block id_nb; struct work_struct dr_work; enum usb_role desired_role; + enum usb_role default_role; struct usb_role_switch *role_sw; bool role_sw_used; bool is_u3_drd; |