LF-3319 net: stmmac: enable rx_clk when killing the vlan
authorShenwei Wang <shenwei.wang@nxp.com>
Tue, 9 Feb 2021 17:06:48 +0000 (11:06 -0600)
committerJason Liu <jason.hui.liu@nxp.com>
Mon, 22 Feb 2021 16:38:24 +0000 (00:38 +0800)
commit64e6646afa9841989e09e3d4d6cfe4592185e7a4
tree99595dd520f634a8cb35100acebc05395f69221b
parent685dc11fceb5676b3f141b612d40b0d5f42c81ee
LF-3319 net: stmmac: enable rx_clk when killing the vlan

when killing the vlan, the rx_clk from the phy need to be enabled.
The patch checks the phy's status before killing the vlan. If the phy
is stopped, enable it, remove the vlan, and then stop the phy.

Reviewed-by: Frank Li <frank.li@nxp.com>
Signed-off-by: Shenwei Wang <shenwei.wang@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
drivers/net/ethernet/stmicro/stmmac/stmmac.h
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c