[PATCH v1 4/4] usb: xhci: Add virt_to_phys() to support mapped platforms

Bin Meng bmeng.cn at gmail.com
Fri Jul 17 13:19:44 CEST 2020


On Thu, Jul 2, 2020 at 4:47 PM Stefan Roese <sr at denx.de> wrote:
>
> 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 at denx.de>
> Cc: Bin Meng <bmeng.cn at gmail.com>
> Cc: Marek Vasut <marex at denx.de>
>
> ---
>
>  drivers/usb/host/xhci-mem.c  | 19 +++++++++----------
>  drivers/usb/host/xhci-ring.c |  8 ++++----
>  drivers/usb/host/xhci.c      |  3 +--
>  3 files changed, 14 insertions(+), 16 deletions(-)
>

Tested-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list