linux/drivers/net/ethernet
Jiangfeng Xiao e0c030221b net: hisilicon: Fix dma_map_single failed on arm64
[ Upstream commit 96a50c0d90 ]

On the arm64 platform, executing "ifconfig eth0 up" will fail,
returning "ifconfig: SIOCSIFFLAGS: Input/output error."

ndev->dev is not initialized, dma_map_single->get_dma_ops->
dummy_dma_ops->__dummy_map_page will return DMA_ERROR_CODE
directly, so when we use dma_map_single, the first parameter
is to use the device of platform_device.

Signed-off-by: Jiangfeng Xiao <xiaojiangfeng@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-08-29 08:28:44 +02:00
..
3com net: prevent ISA drivers from building on PPC32 2018-07-22 11:12:29 -07:00
8390 net: phy: rename Asix Electronics PHY driver 2019-07-14 08:11:08 +02:00
adaptec net: adaptec: Replace mdelay() with msleep() in starfire_init_one() 2018-07-26 21:24:23 -07:00
aeroflex
agere
alacritech
allwinner
alteon alteon: acenic: mark expected switch fall-through 2018-08-07 17:54:19 -07:00
altera net: altera_tse: fix msgdma_tx_completion on non-zero fill_level case 2019-03-13 14:02:29 -07:00
amazon net: ena: gcc 8: fix compilation warning 2019-05-31 06:46:09 -07:00
amd amd-xgbe: Fix mdio access for non-zero ports and clause 45 PHYs 2019-01-31 08:14:30 +01:00
apm drivers: net: xgene: Remove unnecessary forward declarations 2019-01-13 09:51:00 +01:00
apple net: apple: fix return type of ndo_start_xmit function 2018-09-21 19:15:15 -07:00
aquantia net: aquantia: fix LRO with FCS error 2019-06-22 08:15:17 +02:00
arc
atheros net: set static variable an initial value in atl2_probe() 2019-03-23 20:09:52 +01:00
aurora
broadcom bnx2x: Fix VF's VLAN reconfiguration in reload. 2019-08-25 10:48:03 +02:00
brocade
cadence net: macb: Change interrupt and napi enable order in open 2019-05-16 19:41:29 +02:00
calxeda Merge 4.18-rc5 into char-misc-next 2018-07-16 09:04:54 +02:00
cavium net: lio_core: fix potential sign-extension overflow on large shift 2019-07-14 08:11:14 +02:00
chelsio net: cxgb3_main: Fix a resource leak in a error path in 'init_one()' 2019-08-29 08:28:42 +02:00
cirrus net: cirrus: fix return type of ndo_start_xmit function 2018-09-21 19:15:14 -07:00
cisco enic: fix build warning without CONFIG_CPUMASK_OFFSTACK 2019-04-05 22:32:57 +02:00
cortina net: gemini: Fix copy/paste error 2018-12-05 19:31:58 +01:00
davicom
dec net: tulip: de4x5: Drop redundant MODULE_DEVICE_TABLE() 2019-06-22 08:15:17 +02:00
dlink
emulex be2net: Signal that the device cannot transmit during reconfiguration 2019-08-06 19:06:51 +02:00
ezchip
faraday net: faraday: ftmac100: remove netif_running(netdev) check before disabling interrupts 2018-12-13 09:16:14 +01:00
freescale net: fec: Do not use netdev messages too early 2019-07-26 09:14:04 +02:00
fujitsu
hisilicon net: hisilicon: Fix dma_map_single failed on arm64 2019-08-29 08:28:44 +02:00
hp net: hp100: fix always-true check for link up state 2018-09-17 07:55:19 -07:00
huawei hinic: remove ndo_poll_controller 2018-09-28 11:12:28 -07:00
i825xx net: i825xx: fix return type of ndo_start_xmit function 2018-09-21 19:15:15 -07:00
ibm ibmvnic: Fix unchecked return codes of memory allocations 2019-07-14 08:11:08 +02:00
intel iavf: fix dereference of null rx_buffer pointer 2019-07-26 09:14:17 +02:00
marvell net: mvpp2: Don't check for 3 consecutive Idle frames for 10G links 2019-08-29 08:28:29 +02:00
mediatek net: ethernet: mediatek: Use NET_IP_ALIGN to judge if HW RX_2BYTE_OFFSET is enabled 2019-06-25 11:35:57 +08:00
mellanox net/mlx5e: Use flow keys dissector to parse packets for ARFS 2019-08-25 10:48:05 +02:00
micrel net: ks8851: Set initial carrier state to down 2019-05-04 09:20:16 +02:00
microchip lan743x: Fix TX Stall Issue 2019-03-19 13:12:38 +01:00
moxa
mscc ocelot: Cancel delayed work before wq destruction 2019-08-09 17:52:33 +02:00
myricom
natsemi
neterion vxge: fix return of a free'd memblock on a failed dma mapping 2019-05-16 19:41:21 +02:00
netronome nfp: flower: add rcu locks when accessing netdev for tunnels 2019-05-25 18:23:20 +02:00
ni net: nixge: Don't store skb in app4 field of descriptor 2018-08-13 08:49:37 -07:00
nuvoton w90p910_ether: remove incorrect __init annotation 2019-01-13 09:51:00 +01:00
nvidia net: nvidia: forcedeth: Replace GFP_ATOMIC with GFP_KERNEL in nv_probe() 2018-07-27 13:45:14 -07:00
nxp
oki-semi
packetengines
pasemi
qlogic net/ethernet/qlogic/qed: force the string buffer NULL-terminated 2019-08-29 08:28:38 +02:00
qualcomm net: qualcomm: rmnet: Fix incorrect UL checksum offload logic 2019-08-09 17:52:32 +02:00
rdc
realtek r8169: don't use MSI before RTL8168d 2019-08-09 17:52:33 +02:00
renesas net: sh_eth: fix mdio access in sh_eth_close() for R-Car Gen2 and RZ/A1 SoCs 2019-06-22 08:15:20 +02:00
rocker
samsung net: ethernet: sxgbe: mark expected switch fall-throughs 2018-08-07 17:54:20 -07:00
seeq net: seeq: fix crash caused by not set dev.parent 2019-05-16 19:41:30 +02:00
sfc sfc-falcon: remove ndo_poll_controller 2018-09-28 11:12:29 -07:00
sgi net: sgi: fix return type of ndo_start_xmit function 2018-09-21 19:15:14 -07:00
silan
sis sis900: fix TX completion 2019-07-21 09:03:07 +02:00
smsc ARM: 32-bit SoC platform updates 2018-08-23 13:44:43 -07:00
socionext net: ethernet: ave: Replace NET_IP_ALIGN with AVE_FRAME_HEADROOM 2018-12-21 14:15:14 +01:00
stmicro net: stmmac: tc: Do not return a fragment entry 2019-08-29 08:28:43 +02:00
sun niu: fix missing checks of niu_pci_eeprom_read 2019-02-12 19:47:17 +01:00
synopsys net: ethernet: Use existing define with polynomial 2018-07-27 19:16:37 +08:00
tehuti
ti net: ethernet: ti: cpsw_ethtool: fix ethtool ring param set 2019-06-11 12:20:48 +02:00
toshiba
tundra
via
wiznet net: wiznet: fix return type of ndo_start_xmit function 2018-09-21 19:15:15 -07:00
xilinx net: axienet: Fix race condition causing TX hang 2019-07-26 09:14:04 +02:00
xircom
xscale
dnet.c
dnet.h
ec_bhf.c
ethoc.c
fealnx.c
jme.c net: jme: Replace mdelay() with msleep() and usleep_range() in jme_wait_link() 2018-07-27 13:45:14 -07:00
jme.h
Kconfig net: change Exar/Neterion menu items to be alphabetical 2018-08-01 09:49:02 -07:00
korina.c
lantiq_etop.c MIPS: lantiq: dma: add dev pointer 2018-09-11 23:33:19 -07:00
Makefile net: change Exar/Neterion menu items to be alphabetical 2018-08-01 09:49:02 -07:00
netx-eth.c