From: "Peter E. Berger" <pber...@brimson.com>

The io_ti driver fails to download firmware to Edgeport devices such as
the EP/416.  One of the problems is that the default 1 second timeout
in ti_vsend_sync() is insufficient for download operations.  This patch
increases the download timeout to 10 seconds.

Signed-off-by: Peter E. Berger <pber...@brimson.com>
---
 drivers/usb/serial/io_ti.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/usb/serial/io_ti.c b/drivers/usb/serial/io_ti.c
index ddbb8fe..3206a6f 100644
--- a/drivers/usb/serial/io_ti.c
+++ b/drivers/usb/serial/io_ti.c
@@ -232,10 +232,13 @@ static int ti_vsend_sync(struct usb_device *dev, __u8 
request,
                                __u16 value, __u16 index, u8 *data, int size)
 {
        int status;
+       int timeout = 1000;     /* Timeout in msecs */
 
+       if (request == UMPC_COPY_DNLD_TO_I2C)   /* Downloads take longer */
+               timeout = 10000;
        status = usb_control_msg(dev, usb_sndctrlpipe(dev, 0), request,
                        (USB_TYPE_VENDOR | USB_RECIP_DEVICE | USB_DIR_OUT),
-                       value, index, data, size, 1000);
+                       value, index, data, size, timeout);
        if (status < 0)
                return status;
        if (status != size) {
-- 
1.8.3.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