diff options
author | Sergei Antonov <saproj@gmail.com> | 2022-08-12 20:13:39 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-08-16 05:54:27 +0300 |
commit | 3a12df22a8f68954a4ba48435c06b3d1791c87c4 (patch) | |
tree | 4c814e6f26b82ac863d71db6e86593fad3caecd1 /net | |
parent | 5061e34c67446f73842391f9b3275e1be5491871 (diff) | |
download | linux-3a12df22a8f68954a4ba48435c06b3d1791c87c4.tar.xz |
net: moxa: pass pdev instead of ndev to DMA functions
dma_map_single() calls fail in moxart_mac_setup_desc_ring() and
moxart_mac_start_xmit() which leads to an incessant output of this:
[ 16.043925] moxart-ethernet 92000000.mac eth0: DMA mapping error
[ 16.050957] moxart-ethernet 92000000.mac eth0: DMA mapping error
[ 16.058229] moxart-ethernet 92000000.mac eth0: DMA mapping error
Passing pdev to DMA is a common approach among net drivers.
Fixes: 6c821bd9edc9 ("net: Add MOXA ART SoCs ethernet driver")
Signed-off-by: Sergei Antonov <saproj@gmail.com>
Suggested-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20220812171339.2271788-1-saproj@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions