Chipidea: Set connect-at-fullspeed bit when entering host mode if CI_HDRC_FORCE_FULLS...
authorDaniel Tang <dt.tangr@gmail.com>
Wed, 11 Feb 2015 04:44:58 +0000 (12:44 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2015 15:19:11 +0000 (16:19 +0100)
commit905276c4319174d52de0e45fc9b22f599497be47
treeab9f3deb33459b81fdd12d371262b402eb0c5a76
parent89200448a01d9d07a1ee5cc42e8b847f86cdaf7c
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>
drivers/usb/chipidea/host.c