]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
USB: EHCI: add pointer to end of async-unlink list
authorAlan Stern <stern@rowland.harvard.edu>
Wed, 11 Jul 2012 15:21:43 +0000 (11:21 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Jul 2012 23:50:13 +0000 (16:50 -0700)
commit2f5bb665ba7a14c5842fa2e1cde2be039843a2a2
tree32a40c6858e39a56377b2964be5f90cda47bb801
parent99ac5b1e9536f142461681fa6143a947d66b4279
USB: EHCI: add pointer to end of async-unlink list

This patch (as1570) adds a pointer for the end of ehci-hcd's
async-unlink list.  The list (which is actually a queue) is singly
linked, so having a pointer to its end makes adding new entries easier
-- there's no longer any need to scan through the whole list.

In principle it could be changed to a standard doubly-linked list.  It
turns out that doing so actually makes the code less clear, so I'm
leaving it as is.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-hcd.c
drivers/usb/host/ehci-q.c
drivers/usb/host/ehci.h