projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd92f17
)
net: dsa: rtl8366: Skip PVID setting if not requested
author
Linus Walleij
<linus.walleij@linaro.org>
Fri, 18 Sep 2020 22:29:54 +0000
(
00:29
+0200)
committer
David S. Miller
<davem@davemloft.net>
Sun, 20 Sep 2020 21:10:58 +0000
(14:10 -0700)
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:
d8652956cf37
("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>
drivers/net/dsa/rtl8366.c
patch
|
blob
|
history
diff --git
a/drivers/net/dsa/rtl8366.c
b/drivers/net/dsa/rtl8366.c
index
2dcde7a
..
7c09ed7
100644
(file)
--- a/
drivers/net/dsa/rtl8366.c
+++ b/
drivers/net/dsa/rtl8366.c
@@
-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,