diff options
-rw-r--r-- | firmware/target/arm/as3525/usb-drv-as3525v2.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/firmware/target/arm/as3525/usb-drv-as3525v2.c b/firmware/target/arm/as3525/usb-drv-as3525v2.c index 066232e9a1..e324a168ac 100644 --- a/firmware/target/arm/as3525/usb-drv-as3525v2.c +++ b/firmware/target/arm/as3525/usb-drv-as3525v2.c | |||
@@ -197,19 +197,6 @@ static void flush_tx_fifos(int nums) | |||
197 | udelay(1); | 197 | udelay(1); |
198 | } | 198 | } |
199 | 199 | ||
200 | static void flush_rx_fifos(void) | ||
201 | { | ||
202 | unsigned int i = 0; | ||
203 | |||
204 | GRSTCTL = GRSTCTL_rxfflsh_flush; | ||
205 | while(GRSTCTL & GRSTCTL_rxfflsh_flush && i < 0x300) | ||
206 | i++; | ||
207 | if(GRSTCTL & GRSTCTL_rxfflsh_flush) | ||
208 | panicf("usb-drv: hang of flush rx fifos"); | ||
209 | /* wait 3 phy clocks */ | ||
210 | udelay(1); | ||
211 | } | ||
212 | |||
213 | static void prepare_setup_ep0(void) | 200 | static void prepare_setup_ep0(void) |
214 | { | 201 | { |
215 | logf("usb-drv: prepare EP0"); | 202 | logf("usb-drv: prepare EP0"); |
@@ -548,7 +535,7 @@ static void handle_ep_int(int ep, bool dir_in) | |||
548 | panicf("usb-drv: setup not on EP0, this is impossible"); | 535 | panicf("usb-drv: setup not on EP0, this is impossible"); |
549 | if((DOEPTSIZ(ep) & DEPTSIZ_xfersize_bits) != 0) | 536 | if((DOEPTSIZ(ep) & DEPTSIZ_xfersize_bits) != 0) |
550 | { | 537 | { |
551 | logf("usb-drv: ignore spurious setup (xfersize=%d)", DOEPTSIZ(ep) & DEPTSIZ_xfersize_bits); | 538 | logf("usb-drv: ignore spurious setup (xfersize=%ld)", DOEPTSIZ(ep) & DEPTSIZ_xfersize_bits); |
552 | } | 539 | } |
553 | else | 540 | else |
554 | { | 541 | { |