From 5f4f72844194949c73457d0943ff5d4d1bb1f3ac Mon Sep 17 00:00:00 2001 From: Quinn Jensen Date: Wed, 24 Oct 2007 21:25:14 -0600 Subject: USB: USBCV 1.3 HaltEndpointTest fails. Bugzilla 783. USBCV 1.3 HaltEndpointTest fails. Fix this by porting ch9getstatus() from fsl_usb2_udc.c. Applies to linux 2.6.22 kernel for MX platforms. http://www.bitshrine.org/gpp/linux-2.6.22-mx-USB-USBCV-1.3-HaltEndpointTest-fails.patch --- drivers/usb/gadget/arcotg_udc.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'drivers/usb/gadget/arcotg_udc.h') diff --git a/drivers/usb/gadget/arcotg_udc.h b/drivers/usb/gadget/arcotg_udc.h index dee374743aaa..46cf84a45ddd 100644 --- a/drivers/usb/gadget/arcotg_udc.h +++ b/drivers/usb/gadget/arcotg_udc.h @@ -517,6 +517,7 @@ struct arcotg_udc { unsigned softconnect:1; unsigned vbus_active:1; unsigned stopped:1; + unsigned remote_wakeup:1; struct ep_queue_head *ep_qh; /* Endpoints Queue-Head */ int ep_qh_size; /* Endpoints Queue-Head */ @@ -591,6 +592,8 @@ static void dump_msg(const char *label, const u8 * buf, unsigned int length) #define get_ep_by_pipe(udc, pipe) ((pipe == 1)? &udc->eps[0]: \ &udc->eps[pipe]) +#define get_pipe_by_windex(windex) ((windex & USB_ENDPOINT_NUMBER_MASK) \ + * 2 + ((windex & USB_DIR_IN) ? 1 : 0)) /* Bulk only class request */ #define USB_BULK_RESET_REQUEST 0xff -- cgit v1.2.3