mirror-linux/drivers/net/ethernet/broadcom/bnx2x
Christophe JAILLET 3aa440503b bnx2x: Remove useless DMA-32 fallback configuration
As stated in [1], dma_set_mask() with a 64-bit mask never fails if
dev->dma_mask is non-NULL.
So, if it fails, the 32 bits case will also fail for the same reason.

Moreover, dma_set_mask_and_coherent() returns 0 or -EIO, so the return
code of the function can be used directly.

Finally, inline bnx2x_set_coherency_mask() because it is now only a wrapper
for a single dma_set_mask_and_coherent() call.

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>
Link: https://lore.kernel.org/r/29608a525876afddceabf8f11b2ba606da8748fc.1641730747.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-01-09 16:52:19 -08:00
..
Makefile
bnx2x.h bnx2x: Utilize firmware 7.13.21.0 2021-12-20 11:29:20 +00:00
bnx2x_cmn.c bnx2x: Utilize firmware 7.13.21.0 2021-12-20 11:29:20 +00:00
bnx2x_cmn.h
bnx2x_dcb.c
bnx2x_dcb.h
bnx2x_dump.h
bnx2x_ethtool.c ethtool: extend ringparam setting/getting API with rx_buf_len 2021-11-22 12:31:49 +00:00
bnx2x_fw_defs.h bnx2x: Utilize firmware 7.13.21.0 2021-12-20 11:29:20 +00:00
bnx2x_fw_file_hdr.h
bnx2x_hsi.h bnx2x: Utilize firmware 7.13.21.0 2021-12-20 11:29:20 +00:00
bnx2x_init.h
bnx2x_init_ops.h net: bnx2x: fix variable dereferenced before check 2021-11-15 13:28:49 +00:00
bnx2x_link.c
bnx2x_link.h
bnx2x_main.c bnx2x: Remove useless DMA-32 fallback configuration 2022-01-09 16:52:19 -08:00
bnx2x_mfw_req.h
bnx2x_reg.h
bnx2x_self_test.c
bnx2x_sp.c net: broadcom: bnx2x: Fix wrong function name in comments 2021-05-17 14:12:38 -07:00
bnx2x_sp.h
bnx2x_sriov.c bnx2x: Invalidate fastpath HSI version for VFs 2021-12-20 11:29:20 +00:00
bnx2x_sriov.h bnx2x: constify static inline stub for dev_addr 2021-11-20 12:25:56 +00:00
bnx2x_stats.c bnx2x: Use struct_group() for memcpy() region 2021-11-19 11:18:08 +00:00
bnx2x_stats.h bnx2x: Use struct_group() for memcpy() region 2021-11-19 11:18:08 +00:00
bnx2x_vfpf.c ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
bnx2x_vfpf.h