Commit 8186f84c authored by Harald Welte's avatar Harald Welte Committed by laforge

icE1usb: Use USB_CTRL_SET_TIMEOUT (5s) instead of hand-coded 1s

This seems to be the kernel default for CTRL request timeout,
let's use it here.

Change-Id: I7b7c1a2b13f61372e839e34a376e66c91190bdb3
parent b9e2003b
......@@ -209,7 +209,8 @@ static int ice1usb_tx_config(struct ice1usb *ieu)
rc = usb_control_msg(ieu->usb_dev, usb_sndctrlpipe(ieu->usb_dev, 0),
ICE1USB_INTF_SET_TX_CFG, USB_RT_VEND_IF,
0, 0, &ieu->cfg.tx, sizeof(ieu->cfg.tx), 1000);
0, 0, &ieu->cfg.tx, sizeof(ieu->cfg.tx),
USB_CTRL_SET_TIMEOUT);
if (rc < 0)
return rc;
if (rc != sizeof(ieu->cfg.tx))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment