]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: microchip: lan743x: Fix dma allocation failure by using dma_set_mask_a...
authorYuiko Oshino <yuiko.oshino@microchip.com>
Fri, 22 Oct 2021 15:53:43 +0000 (11:53 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 24 Oct 2021 12:38:56 +0000 (13:38 +0100)
commit9ff3b6909f931c6076dbef5810da24c3d2480767
tree67e637fa2a35f05e0584b4015d269c0d05fbb833
parentf06ce4eeef24b84071c7d86b5c0a507493fd3b11
net: ethernet: microchip: lan743x: Fix dma allocation failure by using dma_set_mask_and_coherent

The dma failure was reported in the raspberry pi github (issue #4117).
https://github.com/raspberrypi/linux/issues/4117
The use of dma_set_mask_and_coherent fixes the issue.
Tested on 32/64-bit raspberry pi CM4 and 64-bit ubuntu x86 PC with EVB-LAN7430.

Fixes: 6c21071c28d2 ("lan743x: Add main source files for new lan743x driver")
Signed-off-by: Yuiko Oshino <yuiko.oshino@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microchip/lan743x_main.c