summaryrefslogtreecommitdiffstats
path: root/firmware/usbstack/usb_storage.c
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2009-10-19 16:21:50 +0000
committerFrank Gevaerts <frank@gevaerts.be>2009-10-19 16:21:50 +0000
commitbad510ad10294083f502e32d55eea568d08b3ccb (patch)
tree6dbac2e084c2bcf84b13b4e969a16c7aaa86c547 /firmware/usbstack/usb_storage.c
parentee6557eeda8aeefa6db169f633ecdb7755dba247 (diff)
downloadrockbox-bad510ad10294083f502e32d55eea568d08b3ccb.tar.gz
rockbox-bad510ad10294083f502e32d55eea568d08b3ccb.tar.bz2
rockbox-bad510ad10294083f502e32d55eea568d08b3ccb.zip
Change control handling to start expecting host packets before sending data to the host. This makes the handling less timing sensitive on some controllers
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23263 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/usbstack/usb_storage.c')
-rw-r--r--firmware/usbstack/usb_storage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/usbstack/usb_storage.c b/firmware/usbstack/usb_storage.c
index 4ca4366e79..d16277a5f1 100644
--- a/firmware/usbstack/usb_storage.c
+++ b/firmware/usbstack/usb_storage.c
@@ -659,8 +659,8 @@ bool usb_storage_control_request(struct usb_ctrlrequest* req, unsigned char* des
*tb.max_lun --;
#endif
logf("ums: getmaxlun");
- usb_drv_send(EP_CONTROL, tb.max_lun, 1);
usb_drv_recv(EP_CONTROL, NULL, 0); /* ack */
+ usb_drv_send(EP_CONTROL, tb.max_lun, 1);
handled = true;
break;
}