]> Git Repo - linux.git/commit
au1000_eth: stop using virt_to_bus()
authorArnd Bergmann <[email protected]>
Tue, 7 Jun 2022 09:01:46 +0000 (11:01 +0200)
committerJakub Kicinski <[email protected]>
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 <[email protected]>
Tested-by: Manuel Lauss <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
drivers/net/ethernet/amd/au1000_eth.c
drivers/net/ethernet/amd/au1000_eth.h
This page took 0.053893 seconds and 4 git commands to generate.