On CC pandora after host cable replug, not only ID but also VBUS bit
gets set for whatever reason too (this is not the case on 1GHz).
What's even worse, on ID bit is even delayed and is_driving_vbus()
won't work because PHY is off, so the driver wrongly thinks VBUS
is suppled by something.
Must delay HW_CONDITIONS read to avoid this..
* signal is active, the OTG module is activated, and
* its interrupt may be raised (may wake the system).
*/
* signal is active, the OTG module is activated, and
* its interrupt may be raised (may wake the system).
*/
status = twl4030_readb(twl, TWL4030_MODULE_PM_MASTER,
STS_HW_CONDITIONS);
if (status < 0)
status = twl4030_readb(twl, TWL4030_MODULE_PM_MASTER,
STS_HW_CONDITIONS);
if (status < 0)