]> Git Repo - linux.git/commitdiff
usb: chipidea: Enable user-space triggered role-switching
authorBryan O'Donoghue <[email protected]>
Mon, 4 May 2020 22:43:46 +0000 (23:43 +0100)
committerPeter Chen <[email protected]>
Wed, 6 May 2020 01:45:24 +0000 (09:45 +0800)
The flag provided by the USB role-switch logic allow_userspace_control
allows user-space to trigger a role-switch. Several other USB controller
drivers already enable this feature. Let's switch it on for the chipidea
core now also.

Cc: Peter Chen <[email protected]>
Cc: Jun Li <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Liam Girdwood <[email protected]>
Cc: Mark Brown <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: Stephen Boyd <[email protected]>
Signed-off-by: Bryan O'Donoghue <[email protected]>
Signed-off-by: Peter Chen <[email protected]>
drivers/usb/chipidea/core.c

index 804c0a5a213b95018911fb6a6a6df60c7abeb3ab..9a7c53d09ab4f29f41e435257129e1642cf3fb5a 100644 (file)
@@ -640,6 +640,7 @@ static int ci_usb_role_switch_set(struct usb_role_switch *sw,
 static struct usb_role_switch_desc ci_role_switch = {
        .set = ci_usb_role_switch_set,
        .get = ci_usb_role_switch_get,
+       .allow_userspace_control = true,
 };
 
 static int ci_get_platdata(struct device *dev,
This page took 0.076273 seconds and 4 git commands to generate.