RE: CSW endpoint status returned STALL after BOT MSC Reset

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> From: Alan Stern
> Sent: Friday, November 01, 2013 7:09 AM
> 
> Now DELAYED_STATUS isn't used anywhere.  You should add the following
> hunk to this patch:
> 
> Index: usb-3.12/drivers/usb/gadget/storage_common.c
> ===================================================================
> --- usb-3.12.orig/drivers/usb/gadget/storage_common.c
> +++ usb-3.12/drivers/usb/gadget/storage_common.c
> @@ -156,7 +156,6 @@ static inline struct fsg_lun *fsg_lun_fr
> 
>  /* Big enough to hold our biggest descriptor */
>  #define EP0_BUFSIZE	256
> -#define DELAYED_STATUS	(EP0_BUFSIZE + 999)	/* An impossibly large value */
> 
>  #ifdef CONFIG_USB_GADGET_DEBUG_FILES

And after that, EP0_BUFSIZE isn't used anywhere that I can see. So I
think that should be:

--- usb-3.12.orig/drivers/usb/gadget/storage_common.c
+++ usb-3.12/drivers/usb/gadget/storage_common.c
@@ -156,7 +156,3 @@ static inline struct fsg_lun *fsg_lun_fr
 
-/* Big enough to hold our biggest descriptor */
-#define EP0_BUFSIZE	256
-#define DELAYED_STATUS	(EP0_BUFSIZE + 999)	/* An impossibly large value */
-
 #ifdef CONFIG_USB_GADGET_DEBUG_FILES
 
-- 
Paul

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux