net: stmmac: xgmac: Fix VLAN register handling
authorJose Abreu <Jose.Abreu@synopsys.com>
Thu, 2 Apr 2020 13:57:07 +0000 (15:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Apr 2020 14:04:45 +0000 (07:04 -0700)
commit21f64e72e7073199a6f8d7d8efe52cd814d7d665
tree5641f7e01154db01e7e4a37bc96bdf764a7ec0f1
parenta7d40cbb24900c0a9b2bbcff25b44e2dd14eeee1
net: stmmac: xgmac: Fix VLAN register handling

Commit 907a076881f1, forgot that we need to clear old values of
XGMAC_VLAN_TAG register when we switch from VLAN perfect matching to
HASH matching.

Fix it.

Fixes: 907a076881f1 ("net: stmmac: xgmac: fix incorrect XGMAC_VLAN_TAG register writting")
Signed-off-by: Jose Abreu <Jose.Abreu@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c