9
0
Fork 0
barebox/include/usb
Steffen Trumtrar 10bb13e7fd usb: increase USB_CNTL_TIMEOUT to match linux
USB requests should be processed within a timeframe of 5s.
The linux kernel also uses this timeout value for the control packets.

For the musb the increase in timeout helps successfully probing USB devices
(at least on one test hardware), but on the other hand doesn't slow down the
system, if there are no devices, i.e. the timeout never hits. That means,
that the USB core correctly aborts instead of timing out.
Why and how the 100ms was chosen in the first place, can not be deduced from
the git history, just that it seems to work fine for most boards.

Change USB_CNTL_TIMEOUT to 5000ms and replace all occurences of
	`USB_CNTL_TIMEOUT * x`
with just
	`USB_CNTL_TIMEOUT`,
as the timeout is now large enough without it.

Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-05-04 09:23:08 +02:00
..
cdc.h Add USB device support 2009-09-25 14:31:26 +02:00
ch9.h USB: gadget: Update to 3.15 2014-07-22 08:08:44 +02:00
ch11.h USB: fixup usb_hub_descriptor length name 2014-07-24 08:57:57 +02:00
chipidea-imx.h USB: i.MX chipidea: Implement OTG support for the poor 2014-07-18 14:47:25 +02:00
composite.h USB: gadget: composite: Break out of potential endless loop 2014-07-22 08:09:04 +02:00
dfu.h USB: gadget: DFU: register as USB function 2014-07-22 08:11:49 +02:00
ehci.h USB ehci: Add platform specific init calls 2013-02-14 09:56:35 +01:00
fastboot.h USB: gadget: Add Android fastboot support 2014-07-24 08:32:56 +02:00
fsl_usb2.h USB i.MX: Add chipidea gadget support 2013-02-15 16:19:56 +01:00
gadget-multi.h USB: gadget: Add a multi function gadget 2014-07-24 08:32:56 +02:00
gadget.h usb: gadget: include common.h in header 2015-03-06 07:51:47 +01:00
musb.h USB: Add MUSB driver from Linux 2014-09-26 21:36:58 +02:00
phy.h USB: add usb phy header file 2014-09-26 08:49:21 +02:00
twl4030.h usb: add twl4030 phy support 2010-08-06 19:17:36 +02:00
ulpi.h USB ULPI: Add more register/bit defines 2012-12-17 08:42:13 +01:00
usb.h usb: increase USB_CNTL_TIMEOUT to match linux 2015-05-04 09:23:08 +02:00
usb_defs.h USB: remove redundant defines from usb_defs.h 2014-07-24 08:57:57 +02:00
usbnet.h Merge branch 'for-next/remove-fsf-address' 2012-10-03 21:12:48 +02:00
usbserial.h USB: gadget: specify vendor/product id with device parameters 2014-07-22 08:09:28 +02:00
xhci.h USB: host: add xHCI HCD, Hub, and platform driver 2014-07-28 07:31:18 +02:00