Files
linux/drivers/net
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
..
2019-07-26 09:14:17 +02:00
2018-05-28 23:02:22 -04:00
2018-12-21 14:15:20 +01:00
2019-05-25 18:23:19 +02:00
2018-09-16 15:33:50 -07:00