summaryrefslogtreecommitdiff
path: root/firmware/target/arm/tms320dm320/sansa-connect/tnetv105_usb_drv.c
diff options
context:
space:
mode:
authorTomasz Moń <desowin@gmail.com>2021-06-09 20:50:30 +0200
committerTomasz Moń <desowin@gmail.com>2021-06-09 20:52:36 +0200
commit163e3507f87b7de7b9e1bdfc7b2c5d5e0357da51 (patch)
tree78c666fe344cb9491870a1162fd69dd3bf25a58e /firmware/target/arm/tms320dm320/sansa-connect/tnetv105_usb_drv.c
parenta11c88e0df66b4020ef4d9025b9fb07f04402852 (diff)
downloadrockbox-163e3507f87b7de7b9e1bdfc7b2c5d5e0357da51.tar.gz
rockbox-163e3507f87b7de7b9e1bdfc7b2c5d5e0357da51.zip
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
Diffstat (limited to 'firmware/target/arm/tms320dm320/sansa-connect/tnetv105_usb_drv.c')
-rw-r--r--firmware/target/arm/tms320dm320/sansa-connect/tnetv105_usb_drv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/tms320dm320/sansa-connect/tnetv105_usb_drv.c b/firmware/target/arm/tms320dm320/sansa-connect/tnetv105_usb_drv.c
index 56251a96db..00c9c2b80d 100644
--- a/firmware/target/arm/tms320dm320/sansa-connect/tnetv105_usb_drv.c
+++ b/firmware/target/arm/tms320dm320/sansa-connect/tnetv105_usb_drv.c
@@ -1034,7 +1034,7 @@ static int cppi_timeout_cb(struct timeout *tmo)
1034 int flags = disable_irq_save(); 1034 int flags = disable_irq_save();
1035 bool requeue = tnetv_handle_cppi(); 1035 bool requeue = tnetv_handle_cppi();
1036 restore_irq(flags); 1036 restore_irq(flags);
1037 return requeue ? HZ/10 : 0; 1037 return requeue ? 1 : 0;
1038} 1038}
1039 1039
1040void VLYNQ(void) __attribute__ ((section(".icode"))); 1040void VLYNQ(void) __attribute__ ((section(".icode")));
@@ -1205,7 +1205,7 @@ void VLYNQ(void)
1205 1205
1206 if (tnetv_handle_cppi()) 1206 if (tnetv_handle_cppi())
1207 { 1207 {
1208 timeout_register(&cppi_timeout, cppi_timeout_cb, HZ/10, 0); 1208 timeout_register(&cppi_timeout, cppi_timeout_cb, 1, 0);
1209 } 1209 }
1210 } 1210 }
1211} 1211}