mirror of https://gitee.com/openkylin/linux.git
net: stmmac: xgmac: Reinitialize correctly a variable
'value' was being or'ed with a value from another register. This is a typo and could cause new written value to be wrong. Fix it. Signed-off-by: Jose Abreu <joabreu@synopsys.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c1be0022df
commit
afdf26ab3c
|
@ -568,7 +568,7 @@ static void dwxgmac2_update_vlan_hash(struct mac_device_info *hw, u32 hash,
|
||||||
|
|
||||||
writel(value, ioaddr + XGMAC_PACKET_FILTER);
|
writel(value, ioaddr + XGMAC_PACKET_FILTER);
|
||||||
|
|
||||||
value |= XGMAC_VLAN_VTHM | XGMAC_VLAN_ETV;
|
value = XGMAC_VLAN_VTHM | XGMAC_VLAN_ETV;
|
||||||
if (is_double) {
|
if (is_double) {
|
||||||
value |= XGMAC_VLAN_EDVLP;
|
value |= XGMAC_VLAN_EDVLP;
|
||||||
value |= XGMAC_VLAN_ESVL;
|
value |= XGMAC_VLAN_ESVL;
|
||||||
|
|
Loading…
Reference in New Issue