linux/drivers/net/ethernet/chelsio/cxgb
Christophe JAILLET 1aae5cc0a5 chelsio: cxgb: 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, 'pci_using_dac' can only be 1 after a successful
dma_set_mask_and_coherent().

Simplify code and remove some dead code accordingly.

[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-02 16:14:30 +00:00
..
common.h chelsio: cxgb: Disable the card on error in threaded interrupt 2021-02-03 17:41:01 -08:00
cphy.h
cpl5_cmd.h
cxgb2.c chelsio: cxgb: Use dma_set_mask_and_coherent() and simplify code 2022-01-02 16:14:30 +00:00
elmer0.h
espi.c
espi.h
fpga_defs.h
gmac.h ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
mv88e1xxx.c
mv88e1xxx.h
mv88x201x.c
my3126.c chelsio: Fix a typo in a function name 2019-07-21 11:48:25 -07:00
pm3393.c ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
regs.h
sge.c net: cxgb: fix a typo in kernel doc 2021-11-30 12:18:08 +00:00
sge.h chelsio: cxgb: Disable the card on error in threaded interrupt 2021-02-03 17:41:01 -08:00
subr.c ethernet: chelsio: use eth_hw_addr_set() 2021-10-02 14:18:25 +01:00
suni1x10gexp_regs.h
tp.c
tp.h
vsc7326_reg.h
vsc7326.c ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00