MLK-14285-3 usb: phy: mxs: optimize disconnect line condition
authorLi Jun <jun.li@nxp.com>
Tue, 11 Apr 2017 21:41:21 +0000 (05:41 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:21:55 +0000 (15:21 -0500)
commit85110afbf3ef21b743f28111e9e34e11ddabcf3e
treef2dccc91d0ad8e4652d2206e7b4e6a1ad3be8a78
parent14c7357e6ed5af4d7ab7875765141bcd578bf2ea
MLK-14285-3 usb: phy: mxs: optimize disconnect line condition

We only have below cases to disconnect line when suspend:
1. Device mode without connection to any host/charger(no vbus).
2. Device mode connect to a charger(w/ vbus), usb suspend when
   system is entering suspend.
This patch can fix usb phy wrongly does disconnect line in case
some usb host enters suspend but vbus is off.

Signed-off-by: Li Jun <jun.li@nxp.com>
(cherry picked from commit 2af48913f77cec3658f5863b13f63619d8101279)
drivers/usb/phy/phy-mxs-usb.c