sfc: simplify DMA mask setting
authorEdward Cree <ecree@solarflare.com>
Mon, 7 Sep 2020 16:15:48 +0000 (17:15 +0100)
committerJakub Kicinski <kuba@kernel.org>
Mon, 7 Sep 2020 21:46:13 +0000 (14:46 -0700)
commit08bdbcae290ba89fe451b3a186d7c1409397838d
tree1570d14255127ff410973c7bdf1a55cdec8a7520
parent60bd2a2d1f601a7c0efbf8a956f6c920bbee9ad9
sfc: simplify DMA mask setting

Christoph says[1] that dma_set_mask_and_coherent() is smart enough to
 truncate the mask itself if it's too long.  So we can get rid of our
 "lop off one bit and retry" loop in efx_init_io().

[1]: https://www.spinics.net/lists/netdev/msg677266.html

Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/sfc/efx_common.c