summaryrefslogtreecommitdiff
path: root/drivers/mailbox
diff options
context:
space:
mode:
authorXenia Ragiadakou <burzalodowa@gmail.com>2013-11-15 03:34:08 (GMT)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>2013-12-02 20:59:49 (GMT)
commite8b373326d8efcaf9ec1da8b618556c89bd5ffc4 (patch)
treef1c72d9427799f7dfcacbb7fe77ac35b60154c23 /drivers/mailbox
parent204b7793f2a9935e9a08524d0b4bb51b990d518e (diff)
downloadlinux-e8b373326d8efcaf9ec1da8b618556c89bd5ffc4.tar.xz
xhci: replace xhci_read_64() with readq()
Function xhci_read_64() is used to read 64bit xHC registers residing in MMIO. On 32bit systems, xHC registers need to be read with 32bit accesses by reading first the lower 32bits and then the higher 32bits. Replace all calls to xhci_read_64() with calls to readq() and include asm-generic/io-64-nonatomic-lo-hi.h header file, so that if the system is not 64bit, readq() will read registers in 32bit chunks with low-high order. This is done to reduce code duplication since 64bit low-high read logic is already implemented and to take advantage of inherent "atomic" 64bit read operations on 64bit systems. Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com> Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Diffstat (limited to 'drivers/mailbox')
0 files changed, 0 insertions, 0 deletions