mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
Sansa Connect: Working USB Mass Storage
Acknowledge SYS_USB_CONNECTED in all queues so USB task can gain exclusive access to the storage. Reduce CPPI requeue timeout to speed up disk access. Change-Id: I322aae4cac679696bb8186ccacf838a18f0715e9
This commit is contained in:
parent
a11c88e0df
commit
163e3507f8
5 changed files with 59 additions and 31 deletions
|
|
@ -1034,7 +1034,7 @@ static int cppi_timeout_cb(struct timeout *tmo)
|
|||
int flags = disable_irq_save();
|
||||
bool requeue = tnetv_handle_cppi();
|
||||
restore_irq(flags);
|
||||
return requeue ? HZ/10 : 0;
|
||||
return requeue ? 1 : 0;
|
||||
}
|
||||
|
||||
void VLYNQ(void) __attribute__ ((section(".icode")));
|
||||
|
|
@ -1205,7 +1205,7 @@ void VLYNQ(void)
|
|||
|
||||
if (tnetv_handle_cppi())
|
||||
{
|
||||
timeout_register(&cppi_timeout, cppi_timeout_cb, HZ/10, 0);
|
||||
timeout_register(&cppi_timeout, cppi_timeout_cb, 1, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue