From: Andries.Brouwer@cwi.nl
To: linux-kernel@vger.kernel.org, linux-usb-devel@lists.sourceforge.net
Subject: [PATCHlet] 2.5.23 usb, ide
Date: Thu, 20 Jun 2002 18:16:00 +0200 (MEST) [thread overview]
Message-ID: <UTC200206201616.g5KGG0J08669.aeb@smtp.cwi.nl> (raw)
Earlier, I reported that 2.5.22 and 2.5.23 do not boot.
With Marcin's IDE-93 this is corrected, and the system boots.
Earlier, I reported an oops at shutdown. I just looked at
what causes the oops and find that the call
hcd->driver->stop()
is executed while hcd->driver->stop is NULL.
So, applying
diff -r -u linux-2.5.23/linux/drivers/usb/core/hcd-pci.c linux-2.5.23a/linux/drivers/usb/core/hcd-pci.c
--- linux-2.5.23/linux/drivers/usb/core/hcd-pci.c Mon Jun 17 19:35:40 2002
+++ linux-2.5.23a/linux/drivers/usb/core/hcd-pci.c Thu Jun 20 17:48:09 2002
@@ -209,13 +209,16 @@
if (in_interrupt ()) BUG ();
+ if (!hcd->driver) BUG ();
+
hub = hcd->self.root_hub;
hcd->state = USB_STATE_QUIESCING;
dbg ("%s: roothub graceful disconnect", hcd->self.bus_name);
usb_disconnect (&hub);
- hcd->driver->stop (hcd);
+ if (hcd->driver->stop)
+ hcd->driver->stop (hcd);
hcd->state = USB_STATE_HALT;
free_irq (hcd->irq, hcd);
@@ -232,7 +235,8 @@
if (atomic_read (&hcd->self.refcnt) != 1)
err ("usb_hcd_pci_remove %s, count != 1", hcd->self.bus_name);
- hcd->driver->hcd_free (hcd);
+ if (hcd->driver->hcd_free)
+ hcd->driver->hcd_free (hcd);
}
EXPORT_SYMBOL (usb_hcd_pci_remove);
stops the oops.
USB people may worry whether hcd->driver->stop should
have been non-NULL.
Andries
with a somewhat working 2.5
next reply other threads:[~2002-06-20 16:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-20 16:16 Andries.Brouwer [this message]
2002-06-20 17:07 ` [linux-usb-devel] " David Brownell
2002-06-20 18:49 ` Andries.Brouwer
2002-06-20 19:40 ` Petr Vandrovec
2002-06-20 22:06 ` Greg KH
2002-06-20 22:05 ` Greg KH
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=UTC200206201616.g5KGG0J08669.aeb@smtp.cwi.nl \
--to=andries.brouwer@cwi.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb-devel@lists.sourceforge.net \
/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®