usb: otg: twl4030-usb: poll for ID disconnect
authorGrazvydas Ignotas <notasas@gmail.com>
Mon, 25 Feb 2013 23:46:06 +0000 (01:46 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Tue, 12 Mar 2013 21:45:55 +0000 (23:45 +0200)
commit8c69d4565caf2b74eed11e45a35fec713c7d140c
treef2d132e3cfa42bb578d1bab9c491aa6a756651ca
parent2655e6ac0981113fe8a3833f6a739337f3638650
usb: otg: twl4030-usb: poll for ID disconnect

On pandora, STS_USB interrupt doesn't arrive on USB host cable disconnect
for some reason while VBUS is driven by twl itself, but STS_HW_CONDITIONS
is updated correctly. It does work fine when PHY is powered down though.
To work around that we have to poll.

TI PSP kernels have similar workarounds, so (many?) more boards are likely
affected.
drivers/usb/otg/twl4030-usb.c