All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Brownell <david-b@pacbell.net>
To: Network development list <netdev@vger.kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	Pierre Ynard <linkfanel@yahoo.fr>
Subject: [patch 2.6.26-rc1-git] rndis_host:  longer timeout (bugzilla 10590)
Date: Sat, 10 May 2008 22:54:38 -0700	[thread overview]
Message-ID: <200805102254.38665.david-b@pacbell.net> (raw)

From: Pierre Ynard <linkfanel@yahoo.fr>

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

Signed-off-by: Pierre Ynard <linkfanel@yahoo.fr>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>

--- a/drivers/net/usb/rndis_host.c
+++ b/drivers/net/usb/rndis_host.c
@@ -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;



                 reply	other threads:[~2008-05-11  5:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200805102254.38665.david-b@pacbell.net \
    --to=david-b@pacbell.net \
    --cc=akpm@linux-foundation.org \
    --cc=linkfanel@yahoo.fr \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.