kernel-hacking-2024-linux-s.../drivers/usb/host
Alan Stern e9df41c5c5 USB: make HCDs responsible for managing endpoint queues
This patch (as954) implements a suggestion of David Brownell's.  Now
the host controller drivers are responsible for linking and unlinking
URBs to/from their endpoint queues.  This eliminates the possiblity of
strange situations where usbcore thinks an URB is linked but the HCD
thinks it isn't.  It also means HCDs no longer have to check for URBs
being dequeued before they were fully enqueued.

In addition to the core changes, this requires changing every host
controller driver and the root-hub URB handler.  For the most part the
required changes are fairly small; drivers have to call
usb_hcd_link_urb_to_ep() in their urb_enqueue method,
usb_hcd_check_unlink_urb() in their urb_dequeue method, and
usb_hcd_unlink_urb_from_ep() before giving URBs back.  A few HCDs make
matters more complicated by the way they split up the flow of control.

In addition some method interfaces get changed.  The endpoint argument
for urb_enqueue is now redundant so it is removed.  The unlink status
is required by usb_hcd_check_unlink_urb(), so it has been added to
urb_dequeue.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
CC: David Brownell <david-b@pacbell.net>
CC: Olav Kongas <ok@artecdesign.ee>
CC: Tony Olech <tony.olech@elandigitalsystems.com>
CC: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2007-10-12 14:55:10 -07:00
..
ehci-au1xxx.c USB: make EHCI initialize properly on PPC SOCs 2007-08-22 14:28:01 -07:00
ehci-dbg.c
ehci-fsl.c
ehci-fsl.h
ehci-hcd.c USB: make HCDs responsible for managing endpoint queues 2007-10-12 14:55:10 -07:00
ehci-hub.c
ehci-mem.c
ehci-pci.c
ehci-ppc-soc.c USB: make EHCI initialize properly on PPC SOCs 2007-08-22 14:28:01 -07:00
ehci-ps3.c
ehci-q.c USB: make HCDs responsible for managing endpoint queues 2007-10-12 14:55:10 -07:00
ehci-sched.c USB: make HCDs responsible for managing endpoint queues 2007-10-12 14:55:10 -07:00
ehci.h
isp116x-hcd.c USB: make HCDs responsible for managing endpoint queues 2007-10-12 14:55:10 -07:00
isp116x.h
Kconfig usb: typo in usb R8A66597 HCD config 2007-08-22 14:27:49 -07:00
Makefile
ohci-at91.c
ohci-au1xxx.c
ohci-dbg.c USB: ohci, fix oddball gcc warning 2007-08-22 14:27:52 -07:00
ohci-ep93xx.c
ohci-hcd.c USB: make HCDs responsible for managing endpoint queues 2007-10-12 14:55:10 -07:00
ohci-hub.c
ohci-lh7a404.c
ohci-mem.c USB: OHCI handles more ZFMicro quirks 2007-10-12 14:54:59 -07:00
ohci-omap.c
ohci-pci.c USB: OHCI handles more ZFMicro quirks 2007-10-12 14:54:59 -07:00
ohci-pnx4008.c
ohci-pnx8550.c
ohci-ppc-of.c
ohci-ppc-soc.c
ohci-ps3.c
ohci-pxa27x.c
ohci-q.c USB: make HCDs responsible for managing endpoint queues 2007-10-12 14:55:10 -07:00
ohci-s3c2410.c
ohci-sa1111.c
ohci.h USB: OHCI handles more ZFMicro quirks 2007-10-12 14:54:59 -07:00
pci-quirks.c
pci-quirks.h
r8a66597-hcd.c USB: make HCDs responsible for managing endpoint queues 2007-10-12 14:55:10 -07:00
r8a66597.h
sl811-hcd.c USB: make HCDs responsible for managing endpoint queues 2007-10-12 14:55:10 -07:00
sl811.h
sl811_cs.c
u132-hcd.c USB: make HCDs responsible for managing endpoint queues 2007-10-12 14:55:10 -07:00
uhci-debug.c
uhci-hcd.c drivers/firmware: const-ify DMI API and internals 2007-10-09 20:22:20 -04:00
uhci-hcd.h
uhci-hub.c
uhci-q.c USB: make HCDs responsible for managing endpoint queues 2007-10-12 14:55:10 -07:00