提交 7b8a3f5e 编写于 作者: R Rasmus Villemoes 提交者: Xie XiuQi

net: dsa: mv88e6xxx: fix shift of FID bits in mv88e6185_g1_vtu_loadpurge()

[ Upstream commit 48620e34 ]

The comment is correct, but the code ends up moving the bits four
places too far, into the VTUOp field.

Fixes: 11ea809f (net: dsa: mv88e6xxx: support 256 databases)
Signed-off-by: NRasmus Villemoes <rasmus.villemoes@prevas.dk>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 6440cc77
...@@ -419,7 +419,7 @@ int mv88e6185_g1_vtu_loadpurge(struct mv88e6xxx_chip *chip, ...@@ -419,7 +419,7 @@ int mv88e6185_g1_vtu_loadpurge(struct mv88e6xxx_chip *chip,
* VTU DBNum[7:4] are located in VTU Operation 11:8 * VTU DBNum[7:4] are located in VTU Operation 11:8
*/ */
op |= entry->fid & 0x000f; op |= entry->fid & 0x000f;
op |= (entry->fid & 0x00f0) << 8; op |= (entry->fid & 0x00f0) << 4;
} }
return mv88e6xxx_g1_vtu_op(chip, op); return mv88e6xxx_g1_vtu_op(chip, op);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册