phy: rockchip-inno-usb2: don't power on otg phy in ls irq handler
authorWilliam Wu <wulf@rock-chips.com>
Wed, 15 Mar 2017 09:28:18 +0000 (17:28 +0800)
committerWilliam Wu <wulf@rock-chips.com>
Wed, 15 Mar 2017 09:38:47 +0000 (17:38 +0800)
commit7cc91d50e9cf6726870f40cb73924128a1149311
treec36ee5f6a5aee5786c7151dcc2cbafa282ca6346
parentedd7917229fdc03d09f45758ea674913af20a19d
phy: rockchip-inno-usb2: don't power on otg phy in ls irq handler

The commit c590056b6ab8 ("phy: rockchip-inno-usb2: usb remote
wakeup support") power on otg phy in linestate irq handler,
this will cause usb peripheral fail to connect to PC in the
following case:
1. enable otg linestate irq
2. set system enter deep sleep
3. wakeup system by power key
4. connect usb peripheral to PC, pull up D+ to ~3V, trigger
   linestate irq and power on otg phy.
5. usb peripheral do BC1.2 detect, but PC try to enumerate
   the usb peripheral at the same time and fail at last.

Actually the usb controller drivers (e.g. dwc3 driver)
and otg_sm_work can manage the otg phy power consumption, so
it doesn't need to power on otg phy in linestate irq handler.

Change-Id: Ifd78e4d44ab96f07f75f063ed20af153b4027028
Signed-off-by: William Wu <wulf@rock-chips.com>
drivers/phy/phy-rockchip-inno-usb2.c