phy-sun4i-usb: Add workaround for missing Vbus det interrupts on A31
authorHans de Goede <hdegoede@redhat.com>
Wed, 29 Jun 2016 18:14:10 +0000 (20:14 +0200)
committerKishon Vijay Abraham I <kishon@ti.com>
Mon, 4 Jul 2016 12:37:39 +0000 (18:07 +0530)
commit91d96f06a760f5f36586e972281e239bb9508596
treead49c647d292c51f02079f4e3d5608d8ea323319
parent956bc8696ecfb9ec56edd3cd2d8eb9492c34229f
phy-sun4i-usb: Add workaround for missing Vbus det interrupts on A31

The A31 companion pmic (axp221) does not generate vbus change interrupts
when the board is driving vbus, so we must poll when using the pmic for
vbus-det _and_ we're driving vbus.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/phy-sun4i-usb.c