aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/chipidea
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@freescale.com>2014-11-26 00:44:27 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-11-26 12:28:12 -0500
commit6d037db6409c33738c7153e87ae1cf682ca2851b (patch)
tree5b52971cfbbdf5c4f587b2d78165b93ceae5ea78 /drivers/usb/chipidea
parent4a1d6cf156dcf436e5037375007116197f03bfb1 (diff)
usb: chipidea: remove the unnecessary delay after clear portsc.phcd
The individual PHY driver should take this responsibility if it needs to delay between clear portsc.phcd and let the phy leave low power mode. Signed-off-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/chipidea')
-rw-r--r--drivers/usb/chipidea/core.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c
index cde3d24ebd10..d87caea261d9 100644
--- a/drivers/usb/chipidea/core.c
+++ b/drivers/usb/chipidea/core.c
@@ -196,18 +196,12 @@ static void ci_hdrc_enter_lpm(struct ci_hdrc *ci, bool enable)
196 enum ci_hw_regs reg = ci->hw_bank.lpm ? OP_DEVLC : OP_PORTSC; 196 enum ci_hw_regs reg = ci->hw_bank.lpm ? OP_DEVLC : OP_PORTSC;
197 bool lpm = !!(hw_read(ci, reg, PORTSC_PHCD(ci->hw_bank.lpm))); 197 bool lpm = !!(hw_read(ci, reg, PORTSC_PHCD(ci->hw_bank.lpm)));
198 198
199 if (enable && !lpm) { 199 if (enable && !lpm)
200 hw_write(ci, reg, PORTSC_PHCD(ci->hw_bank.lpm), 200 hw_write(ci, reg, PORTSC_PHCD(ci->hw_bank.lpm),
201 PORTSC_PHCD(ci->hw_bank.lpm)); 201 PORTSC_PHCD(ci->hw_bank.lpm));
202 } else if (!enable && lpm) { 202 else if (!enable && lpm)
203 hw_write(ci, reg, PORTSC_PHCD(ci->hw_bank.lpm), 203 hw_write(ci, reg, PORTSC_PHCD(ci->hw_bank.lpm),
204 0); 204 0);
205 /*
206 * the PHY needs some time (less
207 * than 1ms) to leave low power mode.
208 */
209 usleep_range(1000, 1100);
210 }
211} 205}
212 206
213static int hw_device_init(struct ci_hdrc *ci, void __iomem *base) 207static int hw_device_init(struct ci_hdrc *ci, void __iomem *base)