]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: ixp4xx: Use parent dev for DMA pool
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 12 Jan 2020 12:04:50 +0000 (13:04 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sun, 12 Jan 2020 20:59:53 +0000 (12:59 -0800)
commitf716c8544d64e758e8034349d13204a9afc7b008
treeb0f3efc529c508f28e20c70a112e6adc4309dbf6
parent7a64d8707fdb3e10ca704acf53e15c04ebd1919c
net: ethernet: ixp4xx: Use parent dev for DMA pool

Use the netdevice struct device .parent field when calling
dma_pool_create(): the .dma_coherent_mask and .dma_mask
pertains to the bus device on the hardware (platform)
bus in this case, not the struct device inside the network
device. This makes the pool allocation work.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/xscale/ixp4xx_eth.c