]> git.proxmox.com Git - mirror_ubuntu-focal-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)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 24 Nov 2021 11:09:23 +0000 (12:09 +0100)
commit7f0223623f6347cee58d1b573e4caca324f07315
treebce8e34ccf1ba97e2630ea1bb99aa00630281ebb
parent610126de70191b96bdf3b5484e7839946c0edcc8
net: ethernet: microchip: lan743x: Fix dma allocation failure by using dma_set_mask_and_coherent

BugLink: https://bugs.launchpad.net/bugs/1951883
commit 95a359c9553342d36d408d35331ff0bfce75272f upstream.

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: 23f0703c125b ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/net/ethernet/microchip/lan743x_main.c