[PATCH 2/3] net: e1000: Use virt_to_phys() instead of pci_virt_to_mem()

Tom Rini trini at konsulko.com
Wed Jan 27 20:21:41 CET 2021

On Mon, Nov 16, 2020 at 06:02:29PM +0100, Stefan Roese wrote:

> Using (dm_)pci_virt_to_mem() is incorrect to translate the virtual
> address in local DRAM to a physical address. The correct macro here
> is virt_to_phys() so switch to using this macro.
> As virt_to_bus() is now not used any more, this patch also removes
> both definitions (DM and non-DM).
> This issue was detected while testing the e1000 driver on the MIPS
> Octeon III platform, which needs address translation.
> Signed-off-by: Stefan Roese <sr at denx.de>
> Cc: Joe Hershberger <joe.hershberger at ni.com>
> Cc: Aaron Williams <awilliams at marvell.com>
> Cc: Chandrakala Chavva <cchavva at marvell.com>

Applied to u-boot/master, thanks!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210127/9b77d515/attachment.sig>

More information about the U-Boot mailing list