diff options
author | Felipe Balbi <balbi@ti.com> | 2015-02-26 15:42:19 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-03-10 16:33:30 -0400 |
commit | 0244336f812583299291e18b69a75be5674e819f (patch) | |
tree | bdd8a892b72f5c392af04b4466b13ed763d83821 /drivers/usb/musb | |
parent | 06753fe115c517b715616ef7ef4f56b1b46ecc69 (diff) |
usb: musb: core: disable irqs inside babble recovery
There's no point is splitting those anymore.
We're now also able to drop another forward
declaration.
Tested-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/musb')
-rw-r--r-- | drivers/usb/musb/musb_core.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index ecf2219ebc78..3916e73abf7d 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c | |||
@@ -507,7 +507,6 @@ void musb_hnp_stop(struct musb *musb) | |||
507 | musb->port1_status &= ~(USB_PORT_STAT_C_CONNECTION << 16); | 507 | musb->port1_status &= ~(USB_PORT_STAT_C_CONNECTION << 16); |
508 | } | 508 | } |
509 | 509 | ||
510 | static void musb_disable_interrupts(struct musb *musb); | ||
511 | static void musb_recover_from_babble(struct musb *musb); | 510 | static void musb_recover_from_babble(struct musb *musb); |
512 | 511 | ||
513 | /* | 512 | /* |
@@ -883,10 +882,8 @@ b_host: | |||
883 | if (power & MUSB_POWER_HSMODE) { | 882 | if (power & MUSB_POWER_HSMODE) { |
884 | dev_err(musb->controller, "Babble\n"); | 883 | dev_err(musb->controller, "Babble\n"); |
885 | 884 | ||
886 | if (is_host_active(musb)) { | 885 | if (is_host_active(musb)) |
887 | musb_disable_interrupts(musb); | ||
888 | musb_recover_from_babble(musb); | 886 | musb_recover_from_babble(musb); |
889 | } | ||
890 | } | 887 | } |
891 | } else { | 888 | } else { |
892 | dev_dbg(musb->controller, "BUS RESET as %s\n", | 889 | dev_dbg(musb->controller, "BUS RESET as %s\n", |
@@ -1835,6 +1832,8 @@ static void musb_recover_from_babble(struct musb *musb) | |||
1835 | int ret; | 1832 | int ret; |
1836 | u8 devctl; | 1833 | u8 devctl; |
1837 | 1834 | ||
1835 | musb_disable_interrupts(musb); | ||
1836 | |||
1838 | /* | 1837 | /* |
1839 | * wait at least 320 cycles of 60MHz clock. That's 5.3us, we will give | 1838 | * wait at least 320 cycles of 60MHz clock. That's 5.3us, we will give |
1840 | * it some slack and wait for 10us. | 1839 | * it some slack and wait for 10us. |