From 4fcffcbdf34fc7a619c0626f8478cf06cdf1a043 Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Wed, 4 Jan 2012 21:55:09 +0000 Subject: 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 --- firmware/target/arm/pp/usb-fw-pp502x.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'firmware/target/arm/pp/usb-fw-pp502x.c') 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) USB_GPIO_INT_CLR = USB_GPIO_MASK; timeout_register(&usb_oneshot, usb_timeout_event, HZ/5, val); } - -/* USB_DETECT_BY_CORE: Called when device descriptor is requested */ -void usb_drv_usb_detect_event(void) -{ - /* Filter for invalid bus reset when unplugging by checking the pin state. */ - if(usb_plugged()) { - usb_status_event(USB_HOSTED); - } -} #endif /* USB_STATUS_BY_EVENT */ #ifdef HAVE_BOOTLOADER_USB_MODE -- cgit v1.2.3