From: Andrew Morton <akpm@kernel.org>
To: Gerd Luyten <gluyten@skynet.be>
Cc: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org
Subject: Re: [PATCH] usbcore, kernel 2.6.18.1
Date: Thu, 3 Apr 2008 21:34:34 -0700 [thread overview]
Message-ID: <20080403213434.05362b67.akpm@kernel.org> (raw)
In-Reply-To: <1207228494.8542.9.camel@workstation.dyn.nu>
On Thu, 03 Apr 2008 15:14:54 +0200 Gerd Luyten <gluyten@skynet.be> wrote:
> This patch is to eventually detect a Velleman K8055 USB device.
> Without the patch it will fail detection with following errors:
> usb 1-2: can't read configurations, error -110
> => probably because of usb non-conformance reason of the K8055 card.
> (timing issues...)
>
> With this patch, detection will keep on trying until usb card gets
> recognized.
> This patch adds a device reset in the "fail:" sequence instead of just
> marking the device state as NOTATTACHED.
>
> [gluyten@workstation pup214]$ diff -u
> linux-2.6.18.1/drivers/usb/core/hub.c hub.c
> --- linux-2.6.18.1/drivers/usb/core/hub.c 2006-10-14
> 05:34:03.000000000 +0200
> +++ hub.c 2008-04-03 14:47:49.000000000 +0200
> @@ -1450,7 +1450,9 @@
> return 0;
>
> fail:
> - usb_set_device_state(udev, USB_STATE_NOTATTACHED);
> +// usb_set_device_state(udev, USB_STATE_NOTATTACHED);
> + usb_lock_device_for_reset(udev, NULL);
> + usb_reset_composite_device(udev, NULL);
> return err;
> }
>
2.6.18 is very old. Does 2.6.24 (or later) also need fixing?
Thanks.
prev parent reply other threads:[~2008-04-04 4:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-03 13:14 Gerd Luyten
2008-04-04 4:34 ` Andrew Morton [this message]
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=20080403213434.05362b67.akpm@kernel.org \
--to=akpm@kernel.org \
--cc=gluyten@skynet.be \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome