]> git.ipfire.org Git - people/arne_f/kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Nov 2019 17:00:18 +0000 (18:00 +0100)
commitc4d64f2d93e1f16c3d8efc3d95461f7f6dbdff65
tree2860dfe99128b6c6875cd18ed9df0b4b4fb0778e
parent93c6eddad8473bc6582b865200add350ddab40ea
usb: chipidea: imx: enable OTG overcurrent in case USB subsystem is already started

[ Upstream commit 1dedbdf2bbb1ede8d96f35f9845ecae179dc1988 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/chipidea/usbmisc_imx.c