mirror_ubuntu-kernels/drivers/net/ethernet
Christophe JAILLET 9aaa82d2e8 bna: Simplify DMA setting
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.

So, if dma_set_mask_and_coherent() succeeds, 'using_dac' is known to be
'true'. This variable can be removed.

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/1d5a7b3f4fa735f1233c3eb3fa07e71df95fad75.1641658516.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-01-09 16:52:18 -08:00
..
3com
8390
actions
adaptec
aeroflex
agere
alacritech
allwinner net: allwinner: Fix print format 2022-01-09 16:52:12 -08:00
alteon net: alteon: Simplify DMA setting 2022-01-09 16:52:18 -08:00
altera net: altera: set a couple error code in probe() 2021-12-03 14:23:11 +00:00
amazon net: ena: Extract recurring driver reset code into a function 2022-01-07 19:25:52 -08:00
amd net: amd-xgbe: Disable the CDR workaround path for Yellow Carp Devices 2021-12-20 18:42:40 -08:00
apm
apple
aquantia Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-12-30 12:12:12 -08:00
arc
asix Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-11-26 13:45:19 -08:00
atheros Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-12-30 12:12:12 -08:00
broadcom bnxt_en: improve firmware timeout messaging 2022-01-09 16:27:24 -08:00
brocade bna: Simplify DMA setting 2022-01-09 16:52:18 -08:00
cadence net: macb: use .mac_select_pcs() interface 2022-01-06 12:31:49 +00:00
calxeda
cavium Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next 2021-12-31 14:35:40 +00:00
chelsio chelsio: cxgb: Use dma_set_mask_and_coherent() and simplify code 2022-01-02 16:14:30 +00:00
cirrus
cisco enic: Remove usage of the deprecated "pci-dma-compat.h" API 2022-01-02 16:14:30 +00:00
cortina net: gemini: allow any RGMII interface mode 2022-01-05 10:31:22 -08:00
davicom
dec
dlink
emulex
engleder tsnep: Fix s390 devm_ioremap_resource warning 2021-12-17 19:22:57 -08:00
ezchip
faraday
freescale dpaa2-switch: check if the port priv is valid 2022-01-06 19:49:10 -08:00
fujitsu
google gve: Correct order of processing device options 2021-12-20 18:47:56 -08:00
hisilicon net: hns3: create new common cmd code for PF and VF modules 2022-01-05 14:36:37 +00:00
huawei net: Don't include filter.h from net/sock.h 2021-12-29 08:48:14 -08:00
i825xx
ibm ethernet: ibmveth: use default_groups in kobj_type 2022-01-06 13:46:23 +00:00
intel iavf: remove an unneeded variable 2022-01-07 09:04:21 -08:00
litex
marvell Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next 2021-12-31 14:35:40 +00:00
mediatek net: ethernet: mtk_eth_soc: implement Clause 45 MDIO access 2022-01-05 11:22:17 +00:00
mellanox net/mlx5e: Fix build error in fec_set_block_stats() 2022-01-09 16:29:55 -08:00
micrel Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-12-23 16:09:58 -08:00
microchip net: lan966x: Extend switchdev with mdb support 2022-01-05 11:25:13 +00:00
microsoft Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next 2021-12-31 14:35:40 +00:00
moxa
mscc net: dsa: felix: add port fast age support 2022-01-07 18:58:25 -08:00
myricom myri10ge: Simplify DMA setting 2022-01-09 16:52:18 -08:00
natsemi Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-12-02 11:44:56 -08:00
neterion net: vxge: Use dma_set_mask_and_coherent() and simplify code 2022-01-03 10:42:58 +00:00
netronome Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next 2021-12-31 14:35:40 +00:00
ni
nvidia
nxp
oki-semi net_tstamp: add new flag HWTSTAMP_FLAG_BONDED_PHC_INDEX 2021-12-14 12:28:24 +00:00
packetengines
pasemi
pensando Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-12-30 12:12:12 -08:00
qlogic qlcnic: Simplify DMA setting 2022-01-09 16:52:18 -08:00
qualcomm
rdc
realtek r8169: don't use pci_irq_vector() in atomic context 2021-12-28 15:59:05 -08:00
renesas net_tstamp: add new flag HWTSTAMP_FLAG_BONDED_PHC_INDEX 2021-12-14 12:28:24 +00:00
rocker
samsung
seeq
sfc sfc: Use swap() instead of open coding it 2022-01-06 12:39:36 +00:00
sgi
silan
sis
smsc Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-12-23 16:09:58 -08:00
socionext Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next 2021-12-31 14:35:40 +00:00
stmicro Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next 2021-12-31 14:35:40 +00:00
sun sun/cassini: Use dma_set_mask_and_coherent() and simplify code 2022-01-02 16:14:30 +00:00
synopsys
tehuti tehuti: Use dma_set_mask_and_coherent() and simplify code 2022-01-02 12:21:16 +00:00
ti Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next 2021-12-31 14:35:40 +00:00
toshiba net: spider_net: Use non-atomic bitmap API when applicable 2021-12-01 18:45:46 -08:00
tundra
vertexcom net: vertexcom: default to disabled on kbuild 2022-01-03 10:41:32 +00:00
via
wiznet
xilinx net: xilinx: emaclite: Use platform_get_irq() to get the interrupt 2021-12-27 12:22:19 +00:00
xircom
xscale net_tstamp: add new flag HWTSTAMP_FLAG_BONDED_PHC_INDEX 2021-12-14 12:28:24 +00:00
dnet.c
dnet.h
ec_bhf.c
ethoc.c net: ethoc: Use platform_get_irq() to get the interrupt 2021-12-27 12:22:19 +00:00
fealnx.c
jme.c
jme.h
Kconfig net: vertexcom: Add MSE102x SPI support 2021-12-13 14:15:41 +00:00
korina.c
lantiq_etop.c net: lantiq_etop: remove unnecessary space in cast 2021-12-30 13:20:23 +00:00
lantiq_xrx200.c net: lantiq_xrx200: convert to build_skb 2022-01-05 17:18:04 -08:00
Makefile net: vertexcom: Add MSE102x SPI support 2021-12-13 14:15:41 +00:00