OpenCloudOS-Kernel/drivers/net/ethernet/neterion/vxge
Christophe JAILLET 3d694552fd net: vxge: Use dma_set_mask_and_coherent() and simplify code
Use dma_set_mask_and_coherent() instead of unrolling it with some
dma_set_mask()+dma_set_coherent_mask().

Moreover, as stated in [1], dma_set_mask() with a 64-bit mask will never
fail if dev->dma_mask is non-NULL.
So, if it fails, the 32 bits case will also fail for the same reason.

That said, 'high_dma' can only be 1 after a successful
dma_set_mask_and_coherent().

Simplify code and remove some dead code accordingly, including a now
useless parameter to vxge_device_register().

[1]: https://lkml.org/lkml/2021/6/7/398

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
2022-01-03 10:42:58 +00:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
vxge-config.c Networking changes for 5.14. 2021-06-30 15:51:09 -07:00
vxge-config.h net: vxge: Remove in_interrupt() conditionals 2020-09-29 14:02:54 -07:00
vxge-ethtool.c drivers/net/ethernet: clean up mis-targeted comments 2020-09-25 16:29:00 -07:00
vxge-ethtool.h
vxge-main.c net: vxge: Use dma_set_mask_and_coherent() and simplify code 2022-01-03 10:42:58 +00:00
vxge-main.h vxge: avoid -Wemtpy-body warnings 2021-04-22 13:27:36 -07:00
vxge-reg.h
vxge-traffic.c drivers/net/ethernet: clean up mis-targeted comments 2020-09-25 16:29:00 -07:00
vxge-traffic.h
vxge-version.h