Message ID | 20240611135434.3180973-6-ms@dev.tdt.de (mailing list archive) |
---|---|
State | Accepted |
Commit | f5ebf9ab60940b00c36dfe64add41c80f3daff6a |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | net: dsa: lantiq_gswip: code improvements | expand |
On Tue, Jun 11, 2024 at 03:54:27PM +0200, Martin Schiller wrote: > From: Martin Blumenstingl <martin.blumenstingl@googlemail.com> > > We don't need to manually call gswip_port_enable() from within > gswip_setup() for the CPU port. DSA does this automatically for us. > > Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> > Acked-by: Hauke Mehrtens <hauke@hauke-m.de> > --- Needs your sign off. Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
On 2024-06-13 13:52, Vladimir Oltean wrote: > On Tue, Jun 11, 2024 at 03:54:27PM +0200, Martin Schiller wrote: >> From: Martin Blumenstingl <martin.blumenstingl@googlemail.com> >> >> We don't need to manually call gswip_port_enable() from within >> gswip_setup() for the CPU port. DSA does this automatically for us. >> >> Signed-off-by: Martin Blumenstingl >> <martin.blumenstingl@googlemail.com> >> Acked-by: Hauke Mehrtens <hauke@hauke-m.de> >> --- > > Needs your sign off. > > Reviewed-by: Vladimir Oltean <olteanv@gmail.com> Signed-off-by: Martin Schiller <ms@dev.tdt.de>
diff --git a/drivers/net/dsa/lantiq_gswip.c b/drivers/net/dsa/lantiq_gswip.c index 37cc0247dc78..c1f9419af35f 100644 --- a/drivers/net/dsa/lantiq_gswip.c +++ b/drivers/net/dsa/lantiq_gswip.c @@ -898,8 +898,6 @@ static int gswip_setup(struct dsa_switch *ds) ds->mtu_enforcement_ingress = true; - gswip_port_enable(ds, cpu_port, NULL); - ds->configure_vlan_while_not_filtering = false; return 0;