]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: xhci: Add virt_to_phys() to support mapped platforms
authorStefan Roese <sr@denx.de>
Tue, 21 Jul 2020 08:46:05 +0000 (10:46 +0200)
committerMarek Vasut <marex@denx.de>
Wed, 5 Aug 2020 07:30:46 +0000 (09:30 +0200)
commitb5152a653d36c67a34b54c4c1e9eb182e7e5b9d6
tree65d623d98b25cfbcc0fa1d047398e3e93ef1f917
parentd96f6e1c0b49eb94f78b662e828e557ba943ee54
usb: xhci: Add virt_to_phys() to support mapped platforms

Some platforms, like MIPS Octeon, use mapped addresses (virtual address
!= physical address). On these platforms we need to make sure, that the
local virtual addresses are converted to physical (DMA) addresses for
the xHCI controller. This patch adds the missing virt_to_phys() calls,
so that the correct addresses are used.

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
drivers/usb/host/xhci-ring.c
drivers/usb/host/xhci.c