aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHao Wu <hao.wu@intel.com>2010-12-09 10:37:46 +0000
committerAlan Cox <alan@linux.intel.com>2010-12-09 10:37:46 +0000
commitaf27295dacc7f65fde0940e115d6eb5440a2d72d (patch)
tree71097ca8fa63bc328673819458bb4308ad9d312c
parent1a0a53c98e0975b910ac71700437b911e07afb24 (diff)
downloadmrst-s0i3-test-af27295dacc7f65fde0940e115d6eb5440a2d72d.tar.gz
mrst-s0i3-test-af27295dacc7f65fde0940e115d6eb5440a2d72d.tar.xz
mrst-s0i3-test-af27295dacc7f65fde0940e115d6eb5440a2d72d.zip
usb: penwell_otg: put back PHY to normal mode before charger detection
This patch puts PHY back to normal mode before access MSIC register for charger detection. This fixed issue, boot up with connected to PC case. Signed-off-by: Hao Wu <hao.wu@intel.com>
-rw-r--r--drivers/usb/otg/penwell_otg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/otg/penwell_otg.c b/drivers/usb/otg/penwell_otg.c
index 890dcc70b8b..3f6b2bc211a 100644
--- a/drivers/usb/otg/penwell_otg.c
+++ b/drivers/usb/otg/penwell_otg.c
@@ -1323,6 +1323,8 @@ static void penwell_otg_work(struct work_struct *work)
penwell_update_transceiver();
} else if (hsm->b_sess_vld) {
+ penwell_otg_phy_low_power(0);
+
/* Check it is caused by ACA attachment */
if (hsm->id == ID_ACA_B) {
/* in this case, update current limit*/