--- usb_quirks.c.orig Mon Dec 5 01:27:30 2005 +++ usb_quirks.c Mon Dec 5 01:44:34 2005 @@ -79,6 +79,7 @@ { USB_VENDOR_TELEX, USB_PRODUCT_TELEX_MIC1, 0x009, { UQ_AU_NO_FRAC }}, { USB_VENDOR_SILICONPORTALS, USB_PRODUCT_SILICONPORTALS_YAPPHONE, 0x100, { UQ_AU_INP_ASYNC }}, + { USB_VENDOR_APPLE, USB_PRODUCT_APPLE_IPOD3G, ANY, { UQ_BROKEN_IPOD }}, /* XXX These should have a revision number, but I don't know what they are. */ { USB_VENDOR_HP, USB_PRODUCT_HP_895C, ANY, { UQ_BROKEN_BIDIR }}, { USB_VENDOR_HP, USB_PRODUCT_HP_880C, ANY, { UQ_BROKEN_BIDIR }}, --- usb_quirks.h.orig Mon Dec 5 01:27:26 2005 +++ usb_quirks.h Mon Dec 5 01:28:14 2005 @@ -54,6 +54,7 @@ #define UQ_AU_INP_ASYNC 0x0800 /* input is async despite claim of adaptive */ #define UQ_ASSUME_CM_OVER_DATA 0x1000 /* modem device breaks on cm over data */ #define UQ_BROKEN_BIDIR 0x2000 /* printer has broken bidir mode */ +#define UQ_BROKEN_IPOD 0x4000 /* XXX - iPod has something broken (this comment sucks) */ }; extern const struct usbd_quirks usbd_no_quirk; --- usb_subr.c.orig Mon Dec 5 01:35:54 2005 +++ usb_subr.c Mon Dec 5 01:38:41 2005 @@ -778,20 +778,24 @@ free(p, M_USB); return (err); } - /* Clear any stall and make sure DATA0 toggle will be used next. */ - if (UE_GET_ADDR(ep->edesc->bEndpointAddress) != USB_CONTROL_ENDPOINT) { - err = usbd_clear_endpoint_stall(p); - /* - * Some devices reject this command, so ignore a STALL. - * Some device just time out on this command, so ignore - * that too. - */ - if (err && err != USBD_STALLED && err != USBD_TIMEOUT) { - printf("usbd_setup_pipe: failed to start " - "endpoint, %s\n", usbd_errstr(err)); - return (err); + + if (!(dev->quirks->uq_flags & UQ_BROKEN_IPOD)) { + /* Clear any stall and make sure DATA0 toggle will be used next. */ + if (UE_GET_ADDR(ep->edesc->bEndpointAddress) != USB_CONTROL_ENDPOINT) { + err = usbd_clear_endpoint_stall(p); + /* + * Some devices reject this command, so ignore a STALL. + * Some device just time out on this command, so ignore + * that too. + */ + if (err && err != USBD_STALLED && err != USBD_TIMEOUT) { + printf("usbd_setup_pipe: failed to start " + "endpoint, %s\n", usbd_errstr(err)); + return (err); + } } } + *pipe = p; return (USBD_NORMAL_COMPLETION); } --- usbdevs.orig Mon Dec 5 01:42:57 2005 +++ usbdevs Mon Dec 5 01:44:14 2005 @@ -642,6 +642,7 @@ /* Apple Computer products */ product APPLE OPTMOUSE 0x0302 Optical mouse product APPLE SPEAKERS 0x1101 Speakers +product APPLE IPOD3G 0x1201 iPod 3G /* Asahi Optical products */ product ASAHIOPTICAL OPTIO230 0x0004 Digital camera