summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/chelsio
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2022-01-01 20:04:45 +0100
committerDavid S. Miller <davem@davemloft.net>2022-01-02 16:14:30 +0000
commit584c61cedb12f983e97a01762457b75dfdef626b (patch)
treeb0b8ef3bb068a24e2986b789e088135f6d4c0c46 /drivers/net/ethernet/chelsio
parent1f52a9380ff19b6fc00c1614488d5940773ba3ab (diff)
downloadlinux-584c61cedb12f983e97a01762457b75dfdef626b.tar.bz2
sun/cassini: 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>
Diffstat (limited to 'drivers/net/ethernet/chelsio')
0 files changed, 0 insertions, 0 deletions