Skip to content

Commit

Permalink
usb: musb: mediatek: Expose role-switch control to userspace
Browse files Browse the repository at this point in the history
The allow_userspace_control flag enables manual role-switch from userspace.
Turn this feature on like several other USB DRD controller drivers.

Tested-by: Frank Wunderlich <[email protected]>
Acked-by: Chunfeng Yun <[email protected]>
Signed-off-by: Sungbo Eo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
mans0n authored and gregkh committed Sep 14, 2021
1 parent 6b0be25 commit 7042b10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/usb/musb/mediatek.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ static int mtk_otg_switch_init(struct mtk_glue *glue)

role_sx_desc.set = musb_usb_role_sx_set;
role_sx_desc.get = musb_usb_role_sx_get;
role_sx_desc.allow_userspace_control = true;
role_sx_desc.fwnode = dev_fwnode(glue->dev);
role_sx_desc.driver_data = glue;
glue->role_sw = usb_role_switch_register(glue->dev, &role_sx_desc);
Expand Down

0 comments on commit 7042b10

Please sign in to comment.