From: Bryan O'Donoghue Date: Mon, 4 May 2020 22:43:46 +0000 (+0100) Subject: usb: chipidea: Enable user-space triggered role-switching X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=6dbbbccdba6118b30837c42f3d356ecf0aaf4a1f;p=linux.git usb: chipidea: Enable user-space triggered role-switching 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 Cc: Jun Li Cc: Greg Kroah-Hartman Cc: Liam Girdwood Cc: Mark Brown Cc: linux-usb@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: Stephen Boyd Signed-off-by: Bryan O'Donoghue Signed-off-by: Peter Chen --- diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c index 804c0a5a213b9..9a7c53d09ab4f 100644 --- a/drivers/usb/chipidea/core.c +++ b/drivers/usb/chipidea/core.c @@ -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,