mediatek: fix wps button for nokia ea0326gmp
[openwrt/staging/pepe2k.git] / target / linux / lantiq / patches-6.1 / 0741-net-dsa-lantiq_gswip-Fix-comments-in-gswip_port_vlan.patch
1 From 45a0371568b1f050d787564875653f41a1f6fb98 Mon Sep 17 00:00:00 2001
2 From: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
3 Date: Fri, 14 Oct 2022 14:06:40 +0200
4 Subject: [PATCH 741/768] net: dsa: lantiq_gswip: Fix comments in
5 gswip_port_vlan_filtering()
6
7 Update the comments in gswip_port_vlan_filtering() so it's clear that
8 there are two separate cases, one for "tag based VLAN" and another one
9 for "port based VLAN".
10
11 Suggested-by: Martin Schiller <ms@dev.tdt.de>
12 Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
13 ---
14 drivers/net/dsa/lantiq_gswip.c | 4 ++--
15 1 file changed, 2 insertions(+), 2 deletions(-)
16
17 --- a/drivers/net/dsa/lantiq_gswip.c
18 +++ b/drivers/net/dsa/lantiq_gswip.c
19 @@ -779,7 +779,7 @@ static int gswip_port_vlan_filtering(str
20 }
21
22 if (vlan_filtering) {
23 - /* Use port based VLAN tag */
24 + /* Use tag based VLAN */
25 gswip_switch_mask(priv,
26 GSWIP_PCE_VCTRL_VSR,
27 GSWIP_PCE_VCTRL_UVR | GSWIP_PCE_VCTRL_VIMR |
28 @@ -788,7 +788,7 @@ static int gswip_port_vlan_filtering(str
29 gswip_switch_mask(priv, GSWIP_PCE_PCTRL_0_TVM, 0,
30 GSWIP_PCE_PCTRL_0p(port));
31 } else {
32 - /* Use port based VLAN tag */
33 + /* Use port based VLAN */
34 gswip_switch_mask(priv,
35 GSWIP_PCE_VCTRL_UVR | GSWIP_PCE_VCTRL_VIMR |
36 GSWIP_PCE_VCTRL_VEMR,