usb: chipidea: imx: enable OTG overcurrent in case USB subsystem is already started
authorNicolas Adell <nicolas.adell@actia.fr>
Mon, 27 Aug 2018 13:59:56 +0000 (15:59 +0200)
committerPeter Chen <peter.chen@nxp.com>
Thu, 20 Sep 2018 09:04:21 +0000 (17:04 +0800)
commit1dedbdf2bbb1ede8d96f35f9845ecae179dc1988
tree90b935cbe12a941401ee34854e6982825c15ef87
parent9f644a64884f97f0d92f0689afc7fcf177b6ee92
usb: chipidea: imx: enable OTG overcurrent in case USB subsystem is already started

When initializing the USB subsystem before starting the kernel,
OTG overcurrent detection is disabled. In case the OTG polarity of
overcurrent is low active, the overcurrent detection is never enabled
again and events cannot be reported as expected. Because imx usb
overcurrent polarity is low active by default, only detection needs
to be enable in usbmisc init function.

Signed-off-by: Nicolas Adell <nicolas.adell@actia.fr>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
drivers/usb/chipidea/usbmisc_imx.c