net: stmmac: xgmac: fix incorrect XGMAC_VLAN_TAG register writting
authorOng Boon Leong <boon.leong.ong@intel.com>
Fri, 7 Feb 2020 07:33:40 +0000 (15:33 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Feb 2020 10:36:21 +0000 (11:36 +0100)
commit907a076881f171254219faad05f46ac5baabedfb
treea573f9477a76e60b6a10c1353f3f600b50fee1d2
parent9eeeb3c9de4e3aeaa2bec097162f09305dd9f4c3
net: stmmac: xgmac: fix incorrect XGMAC_VLAN_TAG register writting

We should always do a read of current value of XGMAC_VLAN_TAG instead of
directly overwriting the register value.

Fixes: 3cd1cfcba26e2 ("net: stmmac: Implement VLAN Hash Filtering in XGMAC")
Signed-off-by: Ong Boon Leong <boon.leong.ong@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c