OSDN Git Service

au1000_eth: stop using virt_to_bus()
authorArnd Bergmann <arnd@arndb.de>
Tue, 7 Jun 2022 09:01:46 +0000 (11:01 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 8 Jun 2022 18:32:02 +0000 (11:32 -0700)
commita6958951ebe7db60e84b2437ee53aa4843028726
tree465057cb6a8975b61356e083546e4faa62f7d226
parentf638a84afef3dfe10554c51820c16e39a278c915
au1000_eth: stop using virt_to_bus()

The conversion to the dma-mapping API in linux-2.6.11 was incomplete
and left a virt_to_bus() call around. There have been a number of
fixes for DMA mapping API abuse in this driver, but this one always
slipped through.

Change it to just use the existing dma_addr_t pointer, and make it
use the correct types throughout the driver to make it easier to
understand the virtual vs dma address spaces.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Tested-by: Manuel Lauss <manuel.lauss@gmail.com>
Link: https://lore.kernel.org/r/20220607090206.19830-1-arnd@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/amd/au1000_eth.c
drivers/net/ethernet/amd/au1000_eth.h