]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
net: dsa: lantiq_gswip: Don't manually call gswip_port_enable()
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Tue, 11 Jun 2024 13:54:27 +0000 (15:54 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 14 Jun 2024 00:07:10 +0000 (17:07 -0700)
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>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
Link: https://lore.kernel.org/r/20240611135434.3180973-6-ms@dev.tdt.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/lantiq_gswip.c

index 37cc0247dc7821ef0c8a19b7a8e37797cbd0ae58..c1f9419af35f6afef53711de4d2b73c782b2d629 100644 (file)
@@ -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;