original_kernel/drivers/net/ethernet/qlogic/qed
Christophe JAILLET 4f9f531e15 qed: 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.

Simplify code and remove some dead code accordingly.

Now that qed_set_coherency_mask() is mostly a single call to
dma_set_mask_and_coherent(), fold it in its only caller.

[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
..
Makefile
qed.h
qed_chain.c
qed_cxt.c
qed_cxt.h
qed_dbg_hsi.h
qed_dcbx.c
qed_dcbx.h
qed_debug.c
qed_debug.h
qed_dev.c
qed_dev_api.h
qed_devlink.c
qed_devlink.h
qed_fcoe.c
qed_fcoe.h
qed_hsi.h
qed_hw.c
qed_hw.h
qed_init_fw_funcs.c
qed_init_ops.c
qed_init_ops.h
qed_int.c
qed_int.h
qed_iro_hsi.h
qed_iscsi.c
qed_iscsi.h
qed_iwarp.c
qed_iwarp.h
qed_l2.c
qed_l2.h
qed_ll2.c
qed_ll2.h
qed_main.c
qed_mcp.c
qed_mcp.h
qed_mfw_hsi.h
qed_mng_tlv.c
qed_nvmetcp.c
qed_nvmetcp.h
qed_nvmetcp_fw_funcs.c
qed_nvmetcp_fw_funcs.h
qed_nvmetcp_ip_services.c
qed_ooo.c
qed_ooo.h
qed_ptp.c
qed_ptp.h
qed_rdma.c
qed_rdma.h
qed_reg_addr.h
qed_roce.c
qed_roce.h
qed_selftest.c
qed_selftest.h
qed_sp.h
qed_sp_commands.c
qed_spq.c
qed_sriov.c
qed_sriov.h
qed_vf.c
qed_vf.h