MLK-17312-4 usb: cdns3: gadget: fix the recognition issue when connection before...
authorPeter Chen <peter.chen@nxp.com>
Fri, 29 Dec 2017 08:43:59 +0000 (16:43 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:52:29 +0000 (14:52 -0500)
commit2c09814ff4d9eb6c684cebb611809a423916026f
treeb86339351925d075a14f301d55b6c5988177c56a
parente54bdbea09483ff9d7337486c8121a67b27af174
MLK-17312-4 usb: cdns3: gadget: fix the recognition issue when connection before load module

At imx8qm/imx8qxp A0 chip, there is a vbus toggle issue, so we need to
force the vbus as high before connection, otherwise, there will be endless
connect/disconnect interrupts for USB2 and causes enumeration failure.
The current work flow only cover this during the role switch, but omit
it when the connection has established at module probe routine.

This patch fixes it by moving force vbus operation to cdns_set_role to
cover both static and dynamic recognition issue.

Acked-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
drivers/usb/cdns3/core.c