net: stmmac: xgmac: Fix VLAN register handling
authorJose Abreu <Jose.Abreu@synopsys.com>
Thu, 2 Apr 2020 13:57:07 +0000 (15:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Apr 2020 07:06:34 +0000 (09:06 +0200)
commit2251eab4df74fdd9f25c3ff6bc76946948c426b9
treea3c91107297c1f212417326cd351c2df8a27ac35
parentf5f2221a19ce648d4eb413cd3f10cea3b7fddbd1
net: stmmac: xgmac: Fix VLAN register handling

commit 21f64e72e7073199a6f8d7d8efe52cd814d7d665 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c