]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: xhci: xhci_mem_init: Use cpu_to_le64() and not xhci_writeq()
authorStefan Roese <sr@denx.de>
Tue, 21 Jul 2020 08:46:03 +0000 (10:46 +0200)
committerMarek Vasut <marex@denx.de>
Wed, 5 Aug 2020 07:30:46 +0000 (09:30 +0200)
commit61a1acb55e8e1da71c1c9a0046942b4a945e444c
treec6e6b36cd2e8538b5a02d8b67a3bbe7b7ded5457
parent543eb12ecd91df324554b8abc8d52e965bd4922b
usb: xhci: xhci_mem_init: Use cpu_to_le64() and not xhci_writeq()

xhci_writeq() makes the CPU->LE swapping only when addressing registers
in the xHCI controller address range and not in the local memory (RAM).
We need to use cpu_to_le64() here to ensure that the conversion is done
correctly.

Signed-off-by: Stefan Roese <sr@denx.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
Cc: Bin Meng <bmeng.cn@gmail.com>
Cc: Marek Vasut <marex@denx.de>
drivers/usb/host/xhci-mem.c