mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pete Zaitcev <zaitcev@redhat.com>
To: Sebastien Chaumat <schaumat@free.fr>
Cc: linux-usb-devel@lists.sourceforge.net, zaitcev@redhat.com,
	linux-kernel@vger.kernel.org
Subject: Re: please apply the old patch from Georg Acher in 2.4 tree
Date: Mon, 17 May 2004 12:09:25 -0700	[thread overview]
Message-ID: <20040517120925.44ae3af1.zaitcev@redhat.com> (raw)
In-Reply-To: <1083011181.982.6.camel@muetdhiver>

On Mon, 26 Apr 2004 22:26:21 +0200
Sebastien Chaumat <schaumat@free.fr> wrote:

>  I tried the patch from Georg Acher (posted 2001/08). It saved me from a
> lot of troubles with a brand news USB2 hub that refuses to take an
> address with  my nforce2 motherboard.
> 
> @@ -2177,18 +2178,31 @@
>  	dev->epmaxpacketin [0] = 8;
>  	dev->epmaxpacketout[0] = 8;
>  
> -	err = usb_set_address(dev);
> -	if (err < 0) {
> -		err("USB device not accepting new address=%d (error=%d)",
> -			dev->devnum, err);
> -		clear_bit(dev->devnum, &dev->bus->devmap.devicemap);
> -		dev->devnum = -1;
> -		return 1;
> -	}
> +	for(m=0;m<2;m++) {
> +		for(n=0;n<2;n++) {			
> +			err = usb_set_address(dev);
> +			if (err>=0)
> +				break;
> +			wait_ms(200);
> +		}

I see this was admitted to 2.6, with nice symbolic constants, too.
But before taking this, I would like someone to do this:
 1. posess a device which flakes like the above
 2. take the 2.6 version rediff and test it
 3. explain to me why he or she cannot just run 2.6 and be content

If Sebastien is willing to clear these hurdles I erected (and mentions the
vendor and device number of his hub), I'll think about it. But it would be
best if someone else came forward.

-- Pete

           reply	other threads:[~2004-05-17 19:09 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <1083011181.982.6.camel@muetdhiver>]

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=20040517120925.44ae3af1.zaitcev@redhat.com \
    --to=zaitcev@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb-devel@lists.sourceforge.net \
    --cc=schaumat@free.fr \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®