Recent commit (14aec589327a6fc4035f5327d90ac5548f501c4c) added the
"can_do_streams" field to the hcd structure but only set it to 1
for the XHCI driver.

dummy_hcd can also do streams so set can_do_streams = 1 for that
as well.

This fixes the regression that uas host driver stopped accepting
to bind to the tcm_usb_gadget under dummy_hcd after the offending
commit above.

Signed-off-by: Pantelis Koukousoulas <pkt...@gmail.com>
Acked-by: Alan Stern <st...@rowland.harvard.edu>
---
 drivers/usb/gadget/dummy_hcd.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/usb/gadget/dummy_hcd.c b/drivers/usb/gadget/dummy_hcd.c
index dbbee3e..e80a01e 100644
--- a/drivers/usb/gadget/dummy_hcd.c
+++ b/drivers/usb/gadget/dummy_hcd.c
@@ -2525,6 +2525,8 @@ static int dummy_hcd_probe(struct platform_device *pdev)
                        goto dealloc_usb2_hcd;
                }
 
+               ss_hcd->can_do_streams = 1;
+
                retval = usb_add_hcd(ss_hcd, 0, 0);
                if (retval)
                        goto put_usb3_hcd;
-- 
1.9.1

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

Reply via email to