]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: mediatek: avoid race condition during the reset process
authorSean Wang <sean.wang@mediatek.com>
Wed, 14 Sep 2016 15:13:21 +0000 (23:13 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Sep 2016 06:22:58 +0000 (02:22 -0400)
commitee92393c13ff7492c196523bc62a6c2e39270c1c
tree1d2a46291794c227357058f756fb26504f126a1d
parent2778db87d62870d5a33b9ba905c047c0ea862bdd
net: ethernet: mediatek: avoid race condition during the reset process

add the protection of the race condition between
the reset process and hardware access happening
on the related callbacks.

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
drivers/net/ethernet/mediatek/mtk_eth_soc.h