mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
net: dsa: rtl8366: Skip PVID setting if not requested
[ Upstream commit 3dfe8dde093a07e82fa472c0f8c29a7f6a2006a5 ]
We go to lengths to determine whether the PVID should be set
for this port or not, and then fail to take it into account.
Fix this oversight.
Fixes: d8652956cf ("net: dsa: realtek-smi: Add Realtek SMI driver")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
11064fef1b
commit
26751638ff
1 changed files with 3 additions and 0 deletions
|
|
@ -436,6 +436,9 @@ void rtl8366_vlan_add(struct dsa_switch *ds, int port,
|
|||
"failed to set up VLAN %04x",
|
||||
vid);
|
||||
|
||||
if (!pvid)
|
||||
continue;
|
||||
|
||||
ret = rtl8366_set_pvid(smi, port, vid);
|
||||
if (ret)
|
||||
dev_err(smi->dev,
|
||||
|
|
|
|||
Loading…
Reference in a new issue