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)
commitdce6fa42199d493596315cddc0b4e7ac1d57475b
tree1d2a46291794c227357058f756fb26504f126a1d
parent2a8307aab373684e8c1067695310db4438621868
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