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:
Frank Gevaerts 2009-08-13 18:50:43 +00:00
parent 3ebf602968
commit e98c198fd8

View file

@ -748,10 +748,17 @@ static int prime_transfer(int ep_num, void* ptr, int len, bool send, bool wait)
}
if (!(REG_ENDPTSTATUS & mask)) {
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 */
logf("new setup arrived");