[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20200504224346.613377-3-bryan.odonoghue@linaro.org>
Date: Mon, 4 May 2020 23:43:46 +0100
From: Bryan O'Donoghue <bryan.odonoghue@...aro.org>
To: Peter.Chen@....com, gregkh@...uxfoundation.org,
linux-usb@...r.kernel.org
Cc: linux-arm-msm@...r.kernel.org,
Bryan O'Donoghue <bryan.odonoghue@...aro.org>,
Jun Li <jun.li@....com>, Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>, linux-kernel@...r.kernel.org,
Stephen Boyd <swboyd@...omium.org>
Subject: [PATCH 2/2] 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 <Peter.Chen@....com>
Cc: Jun Li <jun.li@....com>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: Liam Girdwood <lgirdwood@...il.com>
Cc: Mark Brown <broonie@...nel.org>
Cc: linux-usb@...r.kernel.org
Cc: linux-kernel@...r.kernel.org
Cc: Stephen Boyd <swboyd@...omium.org>
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@...aro.org>
---
drivers/usb/chipidea/core.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c
index ae0bdc036464..5f31fda92292 100644
--- a/drivers/usb/chipidea/core.c
+++ b/drivers/usb/chipidea/core.c
@@ -666,6 +666,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,
--
2.25.1
Powered by blists - more mailing lists