diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2012-01-04 21:55:09 +0000 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2012-01-04 21:55:09 +0000 |
commit | 4fcffcbdf34fc7a619c0626f8478cf06cdf1a043 (patch) | |
tree | ad3a951e3ec9566b315807af8ab4045529c8878c /firmware/target/arm/as3525 | |
parent | fd5524ff92b49d9fb14d3feaca4d26d86a05b2b2 (diff) |
Reorganise USB initialisation to not depend on a specific enumeration sequence, by Bartosz Fabianowski, with minor tweaks by Michael Sevakis (FS#12497)
FreeBSD apparently sends a SET_ADDRESS first, which confused our code.
This patch fixes that, and also simplifies the connection handling a bit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31582 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/as3525')
-rw-r--r-- | firmware/target/arm/as3525/usb-as3525.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/firmware/target/arm/as3525/usb-as3525.c b/firmware/target/arm/as3525/usb-as3525.c index 508906965e..99ae66dc15 100644 --- a/firmware/target/arm/as3525/usb-as3525.c +++ b/firmware/target/arm/as3525/usb-as3525.c @@ -58,22 +58,6 @@ void usb_remove_int(void) #endif } -void usb_drv_usb_detect_event(void) -{ -#if (CONFIG_CPU != AS3525v2 || defined(USE_ROCKBOX_USB)) \ - && defined (USB_STATUS_BY_EVENT) -/* Rebooting on USB plug can crash these players in a state where - * hardware power off (pressing the power button) doesn't work anymore - * TODO: Implement USB in rockbox for these players */ - int oldstatus = disable_irq_save(); /* May come via USB thread */ - - if (usb_status == USB_INSERTED) - usb_status_event(USB_HOSTED); - - restore_irq(oldstatus); -#endif -} - int usb_detect(void) { return usb_status; |