]> git.baikalelectronics.ru Git - kernel.git/commit
usb: ehci: remove wmb in qh_update
authorMing Lei <tom.leiming@gmail.com>
Mon, 5 Sep 2011 13:05:55 +0000 (21:05 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 18 Sep 2011 08:38:59 +0000 (01:38 -0700)
commitd65fec314cce7213f5a9171182f1ea30ed8d4b3e
tree54aca044ee2ba5685a84135e5a61eeae337b89c2
parent4dc19f01798667988f158c23fe5557a08b866205
usb: ehci: remove wmb in qh_update

qh_refresh is always called when the qh is idle and has not been
linked into hardware queue, so EHCI will not access overlay of
the qh at this time. Just before linking qh into hardware queue, there
has already one wmb to order writing qh descriptor and writing dma
address of the qh into hardware queue, so HC can always see
up-to-date qh descriptor once the qh is fetched with its dma address
by EHCI.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/ehci-q.c