summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2021-11-23 16:16:08 +0000
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2022-01-18 10:05:29 +0000
commit127253b3d8cfc6028ee74980367d0c1c889aa015 (patch)
treee2669616c6241e77879460a01b8a72e417a2e4eb
parenta274a53631bb8a0c0fd639c61309a4fa16a48f02 (diff)
net: dsa: remove pcs_poll
With drivers converted over to using phylink PCS, there is no need for the struct dsa_switch member "pcs_poll" to exist anymore - there is a flag in the struct phylink_pcs which indicates whether this PCS needs to be polled which supersedes this. Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
-rw-r--r--include/net/dsa.h5
-rw-r--r--net/dsa/port.c1
2 files changed, 0 insertions, 6 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h
index 637b85d2b5d1..39c90ce2309e 100644
--- a/include/net/dsa.h
+++ b/include/net/dsa.h
@@ -394,11 +394,6 @@ struct dsa_switch {
*/
bool vlan_filtering;
- /* MAC PCS does not provide link state change interrupt, and requires
- * polling. Flag passed on to PHYLINK.
- */
- bool pcs_poll;
-
/* For switches that only have the MRU configurable. To ensure the
* configured MTU is not exceeded, normalization of MRU on all bridged
* interfaces is needed.
diff --git a/net/dsa/port.c b/net/dsa/port.c
index b8da2bb82e0b..60bec34c4cb5 100644
--- a/net/dsa/port.c
+++ b/net/dsa/port.c
@@ -1209,7 +1209,6 @@ static int dsa_port_phylink_register(struct dsa_port *dp)
dp->pl_config.dev = ds->dev;
dp->pl_config.type = PHYLINK_DEV;
- dp->pl_config.pcs_poll = ds->pcs_poll;
err = dsa_port_phylink_create(dp);
if (err)