Skip to contentSkip to conversation

usb_storage: Adjust time-outs

PATCH New Benoît Thébaudeau 2 participants 4 messages Jul 19, 2012 – Aug 9, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 5/5 usb_storage: Adjust time-outs

Adjust time-out value for the new EHCI mechanism.

Cc Marek Vasut <[email protected]>
Cc Ilya Yanok <[email protected]>
Cc Stefan Herbrechtsmeier <[email protected]>
---
 .../common/usb_storage.c                           |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
common/usb_storage.c +1 -1
index 135c940..3cd2e22 100644
@@ -712,7 +712,7 @@ int usb_stor_BBB_transport(ccb *srb, struct us_data *us)
 	else
 		pipe = pipeout;
 	result = usb_bulk_msg(us->pusb_dev, pipe, srb->pdata, srb->datalen,
-			      &data_actlen, USB_CNTL_TIMEOUT * 5);
+			      &data_actlen, USB_CNTL_TIMEOUT * 100);
 	/* special handling of STALL in DATA phase */
 	if ((result < 0) && (us->pusb_dev->status & USB_ST_STALLED)) {
 		USB_STOR_PRINTF("DATA:stall\n");
#1 lore raw

PATCH 5/5 usb_storage: Adjust time-outs

Dear Beno?t Th?baudeau,

Quoted 2 lines

Adjust time-out value for the new EHCI mechanism.

[...]

Ok, I really like this set. I believe it's only one or two reposts away from upstream and I'd love to have it in next release (not this one, as we can't test it in 3 days). I admit I'm not the easiest and fastest custodian, so pardon me at that.

Best regards,
Marek Vasut

#2 lore raw

PATCH 5/5 usb_storage: Adjust time-outs

Dear Marek,

Quoted 5 lines · Marek Vasut
Quoted 2 lines

Adjust time-out value for the new EHCI mechanism.

[...]

Ok, I really like this set.

Nice to read.

Quoted 7 lines

I believe it's only one or two reposts
away from
upstream and I'd love to have it in next release (not this one, as we can't test
it in 3 days). I admit I'm not the easiest and fastest custodian, so pardon me
at that.

I pardon you.

Regards,
Beno?t

#3 lore raw

PATCH v3 6/8 usb_storage: Adjust time-outs

In reply to Benoît Thébaudeau

Adjust time-out value for the new EHCI mechanism.

Cc Marek Vasut <[email protected]>
Cc Ilya Yanok <[email protected]>
Cc Stefan Herbrechtsmeier <[email protected]>

---
Changes for v2: None.
Changes for v3: None.

 .../common/usb_storage.c                           |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
common/usb_storage.c +1 -1
index 822bd64..f0798b2 100644
@@ -712,7 +712,7 @@ int usb_stor_BBB_transport(ccb *srb, struct us_data *us)
 	else
 		pipe = pipeout;
 	result = usb_bulk_msg(us->pusb_dev, pipe, srb->pdata, srb->datalen,
-			      &data_actlen, USB_CNTL_TIMEOUT * 5);
+			      &data_actlen, USB_CNTL_TIMEOUT * 100);
 	/* special handling of STALL in DATA phase */
 	if ((result < 0) && (us->pusb_dev->status & USB_ST_STALLED)) {
 		USB_STOR_PRINTF("DATA:stall\n");