]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: cleared __FPE_REMOVING bit in stmmac_fpe_start_wq()
authorMohammad Athari Bin Ismail <mohammad.athari.ismail@intel.com>
Thu, 29 Apr 2021 23:01:04 +0000 (07:01 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Apr 2021 21:43:53 +0000 (14:43 -0700)
commitda629452217634f980e30e1ed41cbc782f1b8f3c
treebe01138045e2065013bc19fcd7765fa901b2be6f
parent6be2a5dc99a301e5bd9c6a05f3f13d4c420f6c0c
net: stmmac: cleared __FPE_REMOVING bit in stmmac_fpe_start_wq()

An issue found when network interface is down and up again, FPE handshake
fails to trigger. This is due to __FPE_REMOVING bit remains being set in
stmmac_fpe_stop_wq() but not cleared in stmmac_fpe_start_wq(). This
cause FPE workqueue task, stmmac_fpe_lp_task() not able to be executed.

To fix this, add clearing __FPE_REMOVING bit in stmmac_fpe_start_wq().

Fixes: 1d0a218e559c ("net: stmmac: support FPE link partner hand-shaking procedure")
Signed-off-by: Mohammad Athari Bin Ismail <mohammad.athari.ismail@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c