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/pp/usb-fw-pp502x.c | |
parent | fd5524ff92b49d9fb14d3feaca4d26d86a05b2b2 (diff) | |
download | rockbox-4fcffcbdf34fc7a619c0626f8478cf06cdf1a043.tar.gz rockbox-4fcffcbdf34fc7a619c0626f8478cf06cdf1a043.zip |
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/pp/usb-fw-pp502x.c')
-rw-r--r-- | firmware/target/arm/pp/usb-fw-pp502x.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/firmware/target/arm/pp/usb-fw-pp502x.c b/firmware/target/arm/pp/usb-fw-pp502x.c index 5272102fad..010cdb718c 100644 --- a/firmware/target/arm/pp/usb-fw-pp502x.c +++ b/firmware/target/arm/pp/usb-fw-pp502x.c | |||
@@ -224,15 +224,6 @@ void usb_insert_int(void) | |||
224 | USB_GPIO_INT_CLR = USB_GPIO_MASK; | 224 | USB_GPIO_INT_CLR = USB_GPIO_MASK; |
225 | timeout_register(&usb_oneshot, usb_timeout_event, HZ/5, val); | 225 | timeout_register(&usb_oneshot, usb_timeout_event, HZ/5, val); |
226 | } | 226 | } |
227 | |||
228 | /* USB_DETECT_BY_CORE: Called when device descriptor is requested */ | ||
229 | void usb_drv_usb_detect_event(void) | ||
230 | { | ||
231 | /* Filter for invalid bus reset when unplugging by checking the pin state. */ | ||
232 | if(usb_plugged()) { | ||
233 | usb_status_event(USB_HOSTED); | ||
234 | } | ||
235 | } | ||
236 | #endif /* USB_STATUS_BY_EVENT */ | 227 | #endif /* USB_STATUS_BY_EVENT */ |
237 | 228 | ||
238 | #ifdef HAVE_BOOTLOADER_USB_MODE | 229 | #ifdef HAVE_BOOTLOADER_USB_MODE |