mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
don't treat extremely quick transfers as errors
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22294 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3ebf602968
commit
e98c198fd8
1 changed files with 10 additions and 3 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue