diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2021-04-18 20:28:53 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-05-14 10:52:59 +0200 |
commit | 53a032f047693cd0316f68cbdfcfda0501b9051a (patch) | |
tree | 25966f77f91732e4d3c75e8606429055e4027ce2 /net/core/dev.c | |
parent | 1b57024de437dfbadd8087ea151833f0c1855144 (diff) |
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: e45d0fad4a5f ("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>
Diffstat (limited to 'net/core/dev.c')
0 files changed, 0 insertions, 0 deletions