usb: ehci: DMA buffer sync for qh/qtd descriptors
authorJC Kuo <jckuo@nvidia.com>
Tue, 17 Jul 2012 09:57:44 +0000 (17:57 +0800)
committerVarun Wadekar <vwadekar@nvidia.com>
Mon, 30 Jul 2012 11:08:10 +0000 (16:08 +0530)
commit4458df78f05c8c60b448d0d0ad18cd0a76c6b8b4
treed6c83bb5ad53c067fbde3ccb9b33487c36f4347f
parentd2f480810404dd8bacf45f34add81e54b4305c1d
usb: ehci: DMA buffer sync for qh/qtd descriptors

When EHCI host controller driver examines qh/qtd descriptors, driver
might see stale data in cache on some ARM CPU. This patch introduces
two helper functions, ehci_sync_qh() and ehci_sync_qtd(), to
invalidate cached descriptors so that driver can always read
up-to-date descriptors from memory.

Bug 1005403

Change-Id: I2345bda7dfe29c5fe7f9550066b518cd6624d263
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Reviewed-on: http://git-master/r/116406
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: WK Tsai <wtsai@nvidia.com>
Reviewed-by: ChihMin Cheng <ccheng@nvidia.com>
Reviewed-by: Joy Wang <joyw@nvidia.com>
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
drivers/usb/host/ehci-q.c
drivers/usb/host/ehci.h