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/usbstack/usb_core.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'firmware/usbstack') diff --git a/firmware/usbstack/usb_core.c b/firmware/usbstack/usb_core.c index 1ea70ee..eb17073 100644 --- a/firmware/usbstack/usb_core.c +++ b/firmware/usbstack/usb_core.c @@ -559,11 +559,6 @@ static void request_handler_device_get_descriptor(struct usb_ctrlrequest* req) case USB_DT_DEVICE: ptr = &device_descriptor; size = sizeof(struct usb_device_descriptor); -#ifdef USB_DETECT_BY_CORE - /* Something requested a device descriptor; consider this a legit - connection */ - usb_drv_usb_detect_event(); -#endif break; case USB_DT_OTHER_SPEED_CONFIG: -- cgit v1.1