]> 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)
commitb12f68bb010135e74a6a9093f07d3c5f275d0dc7
tree54aca044ee2ba5685a84135e5a61eeae337b89c2
parent96e5d575fb4f29ab9d83b8471fc1a384c99dc02d
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