From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Wed, 27 Jan 2021 14:21:41 -0500 Subject: [PATCH 2/3] net: e1000: Use virt_to_phys() instead of pci_virt_to_mem() In-Reply-To: <20201116170230.1148457-2-sr@denx.de> References: <20201116170230.1148457-1-sr@denx.de> <20201116170230.1148457-2-sr@denx.de> Message-ID: <20210127192141.GE7530@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > Cc: Joe Hershberger > Cc: Aaron Williams > Cc: Chandrakala Chavva Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: