diff options
author | Daniel Tang <dt.tangr@gmail.com> | 2015-02-10 23:44:58 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-03-18 11:19:11 -0400 |
commit | 905276c4319174d52de0e45fc9b22f599497be47 (patch) | |
tree | ab9f3deb33459b81fdd12d371262b402eb0c5a76 | |
parent | 89200448a01d9d07a1ee5cc42e8b847f86cdaf7c (diff) |
Chipidea: Set connect-at-fullspeed bit when entering host mode if CI_HDRC_FORCE_FULLSPEED is set in the platform data
PORTSC_PFSC is not set on entering host mode which means the USB OTG
controller will attempt to enumerate USB devices at high speed even when the
CI_HDRC_FORCE_FULLSPEED flag is set in the platform data.
This patch ensures it is set right before host mode operations begin if needed.
Signed-off-by: Daniel Tang <dt.tangr@gmail.com>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/usb/chipidea/host.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/chipidea/host.c b/drivers/usb/chipidea/host.c index 48731d0bab35..12edbd0c998a 100644 --- a/drivers/usb/chipidea/host.c +++ b/drivers/usb/chipidea/host.c | |||
@@ -133,6 +133,9 @@ static int host_start(struct ci_hdrc *ci) | |||
133 | if (ci->platdata->flags & CI_HDRC_DISABLE_STREAMING) | 133 | if (ci->platdata->flags & CI_HDRC_DISABLE_STREAMING) |
134 | hw_write(ci, OP_USBMODE, USBMODE_CI_SDIS, USBMODE_CI_SDIS); | 134 | hw_write(ci, OP_USBMODE, USBMODE_CI_SDIS, USBMODE_CI_SDIS); |
135 | 135 | ||
136 | if (ci->platdata->flags & CI_HDRC_FORCE_FULLSPEED) | ||
137 | hw_write(ci, OP_PORTSC, PORTSC_PFSC, PORTSC_PFSC); | ||
138 | |||
136 | return ret; | 139 | return ret; |
137 | 140 | ||
138 | put_hcd: | 141 | put_hcd: |