MLK-13308-2 usb: phy: phy-mxs-usb: handle USB PHY event
authorPeter Chen <peter.chen@nxp.com>
Tue, 18 Oct 2016 08:36:39 +0000 (16:36 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:52:27 +0000 (14:52 -0500)
commitf021ea9bdced35cff4e97fb6daca1ec5350df5ca
tree1ebde6e19cfae50194e6393e4f54f218aada5135
parent0771088da0203daf90675fc7cbe7d0619cb24bb7
MLK-13308-2 usb: phy: phy-mxs-usb: handle USB PHY event

For mxs PHY, if there is a vbus but the bus is not enumerated,
force the dp/dm as SE0 from the consider side. If not, there
is possible USB wakeup due to unstable dp/dm, since there is
possible no pull on dp/dm, eg, there is a USB charger on the
port. Note, the vbus event is only occurred at device mode,
and sent by udc driver.

Signed-off-by: Peter Chen <peter.chen@nxp.com>
drivers/usb/phy/phy-mxs-usb.c