summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/mediatek/mtk_eth_soc.h
diff options
context:
space:
mode:
authorSean Wang <sean.wang@mediatek.com>2016-09-14 18:13:21 +0300
committerDavid S. Miller <davem@davemloft.net>2016-09-16 09:22:58 +0300
commitdce6fa42199d493596315cddc0b4e7ac1d57475b (patch)
tree1d2a46291794c227357058f756fb26504f126a1d /drivers/net/ethernet/mediatek/mtk_eth_soc.h
parent2a8307aab373684e8c1067695310db4438621868 (diff)
downloadlinux-dce6fa42199d493596315cddc0b4e7ac1d57475b.tar.xz
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>
Diffstat (limited to 'drivers/net/ethernet/mediatek/mtk_eth_soc.h')
-rw-r--r--drivers/net/ethernet/mediatek/mtk_eth_soc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.h b/drivers/net/ethernet/mediatek/mtk_eth_soc.h
index 7efa00fa9c71..79954b419b53 100644
--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.h
+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.h
@@ -336,7 +336,8 @@ enum mtk_clks_map {
};
enum mtk_dev_state {
- MTK_HW_INIT
+ MTK_HW_INIT,
+ MTK_RESETTING
};
/* struct mtk_tx_buf - This struct holds the pointers to the memory pointed at