From: Greg KH <greg@kroah.com>
To: Ian Molton <spyro@armlinux.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: usb-uhci *BUG*
Date: Sun, 14 Apr 2002 09:43:55 -0700 [thread overview]
Message-ID: <20020414164355.GA18040@kroah.com> (raw)
In-Reply-To: <20020414004022.6450f038.spyro@armlinux.org> <20020414150719.GA17826@kroah.com> <20020414183247.016a2ec3.spyro@armlinux.org>
On Sun, Apr 14, 2002 at 06:32:47PM +0100, Ian Molton wrote:
>
> > What devices do you have plugged in?
>
> one alcatel usb speedtouch ADSL modem, using the 'user mode' driver.
Ah, please try using the patch below from David Brownell to fix this
problem. I've already applied this to my trees, and will get pushed to
the main kernels soon.
Let me know if this helps or not.
thanks,
greg k-h
--- drivers/usb-dist/devio.c Tue Nov 20 22:39:48 2001
+++ drivers/usb/devio.c Wed Mar 20 08:47:37 2002
@@ -286,7 +286,9 @@
}
/*
- * interface claiming
+ * interface claims are made only at the request of user level code,
+ * which can also release them (explicitly or by closing files).
+ * they're also undone when devices disconnect.
*/
static void *driver_probe(struct usb_device *dev, unsigned int intf,
@@ -299,7 +301,20 @@
{
struct dev_state *ps = (struct dev_state *)context;
+ if (!ps)
+ return;
+
+ /* this waits till synchronous requests complete */
+ down_write (&ps->devsem);
+
+ /* prevent new I/O requests */
+ ps->dev = 0;
ps->ifclaimed = 0;
+
+ /* force async requests to complete */
+ destroy_all_async (ps);
+
+ up_write (&ps->devsem);
}
struct usb_driver usbdevfs_driver = {
next prev parent reply other threads:[~2002-04-14 17:44 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-13 23:40 usb-uhci *BUG* Ian Molton
2002-04-13 23:44 ` Ian Molton
2002-04-14 0:11 ` Keith Owens
2002-04-14 9:26 ` Russell King
2002-04-14 9:49 ` Keith Owens
2002-04-14 15:07 ` Greg KH
2002-04-14 17:32 ` Ian Molton
2002-04-14 16:43 ` Greg KH [this message]
2002-04-14 18:25 ` Ian Molton
2002-04-14 17:52 ` Greg KH
2002-04-14 19:01 ` Pierre Rousselet
2002-04-14 19:21 ` Ian Molton
2002-04-14 19:32 ` Pierre Rousselet
2002-04-14 20:43 ` Ian Molton
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=20020414164355.GA18040@kroah.com \
--to=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=spyro@armlinux.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