]> git.neil.brown.name Git - history.git/commit
[PATCH] usbcore: rm hub oops, message cleanups, unlink
authorDavid Brownell <david-b@pacbell.net>
Thu, 19 Dec 2002 07:14:03 +0000 (23:14 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Thu, 19 Dec 2002 07:14:03 +0000 (23:14 -0800)
commit399b19dc1ec84a07d9de3ec14dbaa01384042538
tree7867e1e15cd93abf7563210e1eb4fc26025ff46c
parent30a0384940f58629fb2c9648246d088ae0d127e7
[PATCH] usbcore: rm hub oops, message cleanups, unlink

These changes are unrelated except I ran into them all at once:

- Fixes an oops from a partial hub_configure() clean; let
   hub_disconnect() do the whole thing, simpler.

- Since I was there, modify that routine's err() messages
   to use dev_err().  Then eliminate a redundant diagnostic
   in hub_probe(), and merge the "bad descriptor" cases into
   one diagnostic.  Saves a few hundred rodata bytes, and
   the messages now say what hub's involved.

- Unlink fixes:  if lower level code reports a submit error,
   make sure the urb gets unlinked from the device's urb_list;
   and report "it's already being unlinked" as -EBUSY so callers
   can do something smarter than wonder "what did I do wrong".
drivers/usb/core/hcd.c
drivers/usb/core/hub.c