usb: chipidea: add hw_wait_phy_stable for getting stable status
authorPeter Chen <peter.chen@freescale.com>
Wed, 26 Nov 2014 05:44:28 +0000 (13:44 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Nov 2014 17:28:12 +0000 (09:28 -0800)
commitb82613cf09455d9a50fbb144ef07b68225f2b452
tree2b6a1d400d3bbf93244bf85d503fd66c303ae4da
parent6d037db6409c33738c7153e87ae1cf682ca2851b
usb: chipidea: add hw_wait_phy_stable for getting stable status

The phy needs some delay to output the stable status from low
power mode. And for OTGSC, the status inputs are debounced
using a 1 ms time constant, so, delay 2ms for controller to get
the stable status(like vbus and id) when the phy leaves low power.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/core.c