Thread (98 messages) 98 messages, 9 authors, 2015-01-26

Re: [PATCH v5 4/5] can: kvaser_usb: Retry the first bulk transfer on -ETIMEDOUT

From: Sergei Shtylyov <hidden>
Date: 2015-01-21 12:24:56
Also in: lkml, netdev

Hello.

On 1/21/2015 12:48 AM, Ahmed S. Darwish wrote:
From: Ahmed S. Darwish <redacted>
On some x86 laptops, plugging a Kvaser device again after an
unplug makes the firmware always ignore the very first command.
For such a case, provide some room for retries instead of
completly exiting the driver init code.
    Completely.
Signed-off-by: Ahmed S. Darwish <redacted>
---
  drivers/net/can/usb/kvaser_usb.c | 12 ++++++++++--
  1 file changed, 10 insertions(+), 2 deletions(-)
quoted hunk ↗ jump to hunk
diff --git a/drivers/net/can/usb/kvaser_usb.c b/drivers/net/can/usb/kvaser_usb.c
index 640b0eb..068e76c 100644
--- a/drivers/net/can/usb/kvaser_usb.c
+++ b/drivers/net/can/usb/kvaser_usb.c
[...]
quoted hunk ↗ jump to hunk
@@ -1632,7 +1632,15 @@ static int kvaser_usb_probe(struct usb_interface *intf,

  	usb_set_intfdata(intf, dev);

-	err = kvaser_usb_get_software_info(dev);
+	/* On some x86 laptops, plugging a Kvaser device again after
+	 * an unplug makes the firmware always ignore the very first
+	 * command. For such a case, provide some room for retries
+	 * instead of completly exiting the driver.
    Completely.

[...]

WBR, Sergei
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help