]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: chipidea: add proper delay for waiting correct PHY status
authorPeter Chen <peter.chen@freescale.com>
Wed, 23 Apr 2014 07:56:41 +0000 (15:56 +0800)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:18:07 +0000 (21:18 -0600)
commita54790f306da59c815404374ee0af52caf99ca57
treee000668a221bb7ef0a15c9e787f0584faad71111
parent2c99e40d74c162a1206e70d8873de19316365730
usb: chipidea: add proper delay for waiting correct PHY status

After the PHY has powered and initialized, it needs some delay
for controller to reflect PHY's status. Some status and values
for id, vbus, dp/dm are only stable after this delay. The current
code tries to clear id/vbus status without enough delay, it
causes the status are not cleared properly.

This patch add 2ms delay after phy has initialized, and clear the
unexpected status after that.

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