diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2021-04-18 20:28:53 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-04-19 15:47:56 -0700 |
commit | 8d892d60941b00c86d2029c8a99db24ab4979673 (patch) | |
tree | 8bea4781f52df41b32006c6ca6c385c0c11ec34c /net/core/dev.c | |
parent | ed8157f1ebf1ae81a8fa2653e3f20d2076fad1c9 (diff) | |
download | linux-8d892d60941b00c86d2029c8a99db24ab4979673.tar.bz2 |
net: ethernet: ixp4xx: Set the DMA masks explicitly
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>
Diffstat (limited to 'net/core/dev.c')
0 files changed, 0 insertions, 0 deletions