usb: musb: Disable pullup at init
authorPaul Cercueil <paul@crapouillou.net>
Tue, 7 Jan 2020 15:26:25 +0000 (09:26 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jan 2020 19:04:29 +0000 (20:04 +0100)
commit962e04ba8442d86cc5b5d38b343d2a72ebc87fdd
tree01c22b24c3d9221450da6a0498bd0ce0a2cd8f97
parent4a71db0fc51ec2ccece37ae3f6dcf2bd273d9968
usb: musb: Disable pullup at init

commit 96a0c12843109e5c4d5eb1e09d915fdd0ce31d25 upstream.

The pullup may be already enabled before the driver is initialized. This
happens for instance on JZ4740.

It has to be disabled at init time, as we cannot guarantee that a gadget
driver will be bound to the UDC.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Suggested-by: Bin Liu <b-liu@ti.com>
Cc: stable@vger.kernel.org
Signed-off-by: Bin Liu <b-liu@ti.com>
Link: https://lore.kernel.org/r/20200107152625.857-3-b-liu@ti.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/musb_core.c