Skip to contentSkip to conversation

rndis_host: longer timeout (bugzilla 10590)

PATCH New David Brownell 1 participant 1 message May 11, 2008

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rndis_host: longer timeout (bugzilla 10590)

From: Pierre Ynard <[email protected]>

Some devices running some WinCE firmware (with SC_* Samsung processors according to the SynCE project, verified on a HTC P3600 device) fail to register because they apparently need extra time to respond correctly to requests. Increase the existing delay to satisfy them. Based on code from the SynCE project, on a suggestion of David Brownell.

This patch Works For Me(tm).

Resoves: http://bugzilla.kernel.org/show_bug.cgi?id=10590

drivers/net/usb/rndis_host.c +1 -1
@@ -194,7 +194,7 @@ int rndis_command(struct usbnet *dev, struct rndis_msg_hdr *buf)
 			dev_dbg(&info->control->dev,
 				"rndis response error, code %d\n", retval);
 		}
-		msleep(2);
+		msleep(20);
 	}
 	dev_dbg(&info->control->dev, "rndis response timeout\n");
 	return -ETIMEDOUT;