OrangePi_CM5/drivers/net/ethernet/xscale
Linus Walleij 257f38e78a net: ethernet: ixp4xx: Set the DMA masks explicitly
[ Upstream commit 8d892d60941b00c86d2029c8a99db24ab4979673 ]

The former fix only papered over the actual problem: the
ethernet core expects the netdev .dev member to have the
proper DMA masks set, or there will be BUG_ON() triggered
in kernel/dma/mapping.c.

Fix this by simply copying dma_mask and dma_mask_coherent
from the parent device.

Fixes: e45d0fad4a ("net: ethernet: ixp4xx: Use parent dev for DMA pool")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-05-14 09:50:40 +02:00
..
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile ptp: ixp46x: move adjacent to ethernet driver 2020-01-12 12:59:52 -08:00
ixp4xx_eth.c net: ethernet: ixp4xx: Set the DMA masks explicitly 2021-05-14 09:50:40 +02:00
ixp46x_ts.h ixp4xx_eth: move platform_data definition 2020-01-12 12:59:53 -08:00
ptp_ixp46x.c ptp: ixp46x: move adjacent to ethernet driver 2020-01-12 12:59:52 -08:00