linux-stable/drivers/net/ethernet/chelsio
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
..
cxgb chelsio: cxgb: Use dma_set_mask_and_coherent() and simplify code 2022-01-02 16:14:30 +00:00
cxgb3 net: cxgb3: fix typos in kernel doc 2021-11-30 12:17:46 +00:00
cxgb4 cxgb4: allow reading unrecognized port module eeprom 2021-11-24 17:27:07 -08:00
cxgb4vf Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-11-26 13:45:19 -08:00
inline_crypto tcp: switch orphan_count to bare per-cpu counters 2021-10-15 11:28:34 +01:00
libcxgb net/chelsio: Delete drive and module versions 2020-03-03 17:54:54 -08:00
Kconfig ethernet: fix PTP_1588_CLOCK dependencies 2021-08-13 17:49:05 -07:00
Makefile chelsio/chtls: separate chelsio tls driver from crypto driver 2020-08-21 14:15:15 -07:00