]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
net: ethernet: mediatek: fix issue of driver removal with interface is up
authorSean Wang <sean.wang@mediatek.com>
Thu, 1 Sep 2016 02:47:32 +0000 (10:47 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Sep 2016 03:53:48 +0000 (20:53 -0700)
commit79e9a41438527a4cc2b426a2dfb92cd0825d7d29
tree8ce6cbc46475cf7182a7a7c6550c8964896a983b
parent7c6b0d76fa02213393815e3b6d5e4a415bf3f0e2
net: ethernet: mediatek: fix issue of driver removal with interface is up

mtk_stop() must be called to stop for freeing DMA
resources acquired and restoring state changed by mtk_open()
firstly when module removal.

Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_eth_soc.c