diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2019-09-11 16:59:54 +0200 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2019-09-13 00:24:17 +0200 |
commit | 29a41bb38356b99a17b82a7652752b9f25959919 (patch) | |
tree | 48ac5c36580f364ca26d8abd085b9f61f80261ea /drivers/usb/chipidea/core.c | |
parent | 6969db4a175a3c08282e59464e7db4ecc80ac0a6 (diff) |
usb: chipidea: use seperate role sm when using extcon
Enable the code from commit 'aa5fc842bb05 usb: chipidea: use of extcon
framework to work for non OTG case' if ID and/or VBUS signals are taken
from extcon.
Otherwise (observed on a Colibri iMX6ULL) when booting in the ROLE_HOST
and then changing to ROLE_GADGET the gadget does not appear on the bus
and switching back to ROLE_HOST does also no longer detect any connected
USB devices.
Related-to: #50573
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
(cherry picked from commit b80233b2f3ec91920bba3712dcc929dc913caf15)
Diffstat (limited to 'drivers/usb/chipidea/core.c')
-rw-r--r-- | drivers/usb/chipidea/core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c index 06cee617c27c..4823a1760609 100644 --- a/drivers/usb/chipidea/core.c +++ b/drivers/usb/chipidea/core.c @@ -762,6 +762,7 @@ static int ci_get_platdata(struct device *dev, ext_id = extcon_get_edev_by_phandle(dev, 1); if (IS_ERR(ext_id) && PTR_ERR(ext_id) != -ENODEV) return PTR_ERR(ext_id); + platdata->flags |= CI_HDRC_DUAL_ROLE_NOT_OTG; } cable = &platdata->vbus_extcon; |