diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2008-03-02 00:15:02 +0000 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2008-03-02 00:15:02 +0000 |
commit | f18d20ee36f8a23e0f37fd342cf186e3b6a91408 (patch) | |
tree | d5917d19491bc5fa80c61ea440279c4ed168c91f /firmware/usbstack/usb_core.c | |
parent | 5f1e1a5e5efd9051c9aeda5a8cd671e523bac6e9 (diff) | |
download | rockbox-f18d20ee36f8a23e0f37fd342cf186e3b6a91408.tar.gz rockbox-f18d20ee36f8a23e0f37fd342cf186e3b6a91408.zip |
Only show the usb screen once a real usb connection is established. In case other threads are slow in acknowledging the SYS_USB_CONNECTED message, tell the OS that the disk is not ready yet (the OS interprets this as "spinning up")
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16471 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/usbstack/usb_core.c')
-rw-r--r-- | firmware/usbstack/usb_core.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/usbstack/usb_core.c b/firmware/usbstack/usb_core.c index aa0f06e4f6..f40d76bee0 100644 --- a/firmware/usbstack/usb_core.c +++ b/firmware/usbstack/usb_core.c | |||
@@ -460,6 +460,10 @@ static void usb_core_control_request_handler(struct usb_ctrlrequest* req) | |||
460 | { | 460 | { |
461 | if(usb_state == DEFAULT) { | 461 | if(usb_state == DEFAULT) { |
462 | set_serial_descriptor(); | 462 | set_serial_descriptor(); |
463 | #ifdef USB_STORAGE | ||
464 | if(usb_core_storage_enabled) | ||
465 | usb_request_exclusive_ata(); | ||
466 | #endif | ||
463 | } | 467 | } |
464 | 468 | ||
465 | #ifdef USB_BENCHMARK | 469 | #ifdef USB_BENCHMARK |