diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2009-08-13 18:50:43 +0000 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2009-08-13 18:50:43 +0000 |
commit | e98c198fd8ffd62dfa7b4d388b4fcf6c90b966e0 (patch) | |
tree | bd045210372e88ba01bf68a9069edb8131aa9844 | |
parent | 3ebf602968d12e08244ce1e7e4a6928f575a5e7e (diff) |
don't treat extremely quick transfers as errors
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22294 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/target/arm/usb-drv-arc.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/firmware/target/arm/usb-drv-arc.c b/firmware/target/arm/usb-drv-arc.c index 973a227423..3d17cc56c2 100644 --- a/firmware/target/arm/usb-drv-arc.c +++ b/firmware/target/arm/usb-drv-arc.c @@ -748,9 +748,16 @@ static int prime_transfer(int ep_num, void* ptr, int len, bool send, bool wait) } if (!(REG_ENDPTSTATUS & mask)) { - logf("no prime! %d %d %x", ep_num, pipe, qh->dtd.size_ioc_sts & 0xff); - rc = -3; - goto pt_error; + if(REG_ENDPTCOMPLETE & mask) + { + logf("endpoint completed fast! %d %d %x", ep_num, pipe, qh->dtd.size_ioc_sts & 0xff); + } + else + { + logf("no prime! %d %d %x", ep_num, pipe, qh->dtd.size_ioc_sts & 0xff); + rc = -3; + goto pt_error; + } } if(ep_num == EP_CONTROL && (REG_ENDPTSETUPSTAT & EPSETUP_STATUS_EP0)) { /* 32.14.3.2.2 */ |