[PATCH] usb: gadget: tcm_usb_gadget: fix UASP_SS_EP_COMP_NUM_STREAMS

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

 



USB Streams are number from 0 to 15, not from 1
to 16. If we keep the original definition, streams
will not be able to be started out properly.

Cc: Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx>
Signed-off-by: Felipe Balbi <balbi@xxxxxx>
---
 drivers/usb/gadget/tcm_usb_gadget.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/gadget/tcm_usb_gadget.h b/drivers/usb/gadget/tcm_usb_gadget.h
index bb18999..4413b26 100644
--- a/drivers/usb/gadget/tcm_usb_gadget.h
+++ b/drivers/usb/gadget/tcm_usb_gadget.h
@@ -14,7 +14,7 @@
 
 #define fuas_to_gadget(f)	(f->function.config->cdev->gadget)
 #define UASP_SS_EP_COMP_LOG_STREAMS 4
-#define UASP_SS_EP_COMP_NUM_STREAMS (1 << UASP_SS_EP_COMP_LOG_STREAMS)
+#define UASP_SS_EP_COMP_NUM_STREAMS ((1 << UASP_SS_EP_COMP_LOG_STREAMS) - 1)
 
 #define USB_G_STR_MANUFACTOR    1
 #define USB_G_STR_PRODUCT       2
-- 
1.7.10.3

--
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