diff mbox series

[v2,2/6] net: dsa: microchip: delete unused member ksz_port.sgmii

Message ID a39d6d4019f3274587719e239cfce788310e9b86.1597675604.git.helmut.grohne@intenta.de
State New
Headers show
Series net: dsa: microchip: delete dead code | expand

Commit Message

Helmut Grohne Aug. 17, 2020, 2:55 p.m. UTC
Link: https://lore.kernel.org/netdev/20200721083300.GA12970@laureti-dev/
Signed-off-by: Helmut Grohne <helmut.grohne@intenta.de>
---
 drivers/net/dsa/microchip/ksz9477.c    | 2 --
 drivers/net/dsa/microchip/ksz_common.h | 1 -
 2 files changed, 3 deletions(-)
diff mbox series

Patch

diff --git a/drivers/net/dsa/microchip/ksz9477.c b/drivers/net/dsa/microchip/ksz9477.c
index c548894553bc..0ff54ee4f963 100644
--- a/drivers/net/dsa/microchip/ksz9477.c
+++ b/drivers/net/dsa/microchip/ksz9477.c
@@ -1305,8 +1305,6 @@  static void ksz9477_config_cpu_port(struct dsa_switch *ds)
 		p->member = dev->port_mask;
 		ksz9477_port_stp_state_set(ds, i, BR_STATE_DISABLED);
 		p->on = 1;
-		if (dev->chip_id == 0x00947700 && i == 6)
-			p->sgmii = 1;
 	}
 }
 
diff --git a/drivers/net/dsa/microchip/ksz_common.h b/drivers/net/dsa/microchip/ksz_common.h
index 0432cd38bf0b..83247140b784 100644
--- a/drivers/net/dsa/microchip/ksz_common.h
+++ b/drivers/net/dsa/microchip/ksz_common.h
@@ -32,7 +32,6 @@  struct ksz_port {
 
 	u32 on:1;			/* port is not disabled by hardware */
 	u32 fiber:1;			/* port is fiber */
-	u32 sgmii:1;			/* port is SGMII */
 	u32 force:1;
 	u32 read:1;			/* read MIB counters in background */
 	u32 freeze:1;			/* MIB counter freeze is enabled */