summaryrefslogtreecommitdiff
path: root/drivers/net/dsa/mv88e6xxx/chip.h
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2020-02-16 18:16:52 +0000
committerRussell King <rmk+kernel@armlinux.org.uk>2020-10-12 21:52:14 +0100
commitab2e5046153fad0d9be339e86ca3ae90f7e1dbc5 (patch)
treebfe4bddebb662512c2ef39227f71666e9b4280da /drivers/net/dsa/mv88e6xxx/chip.h
parent4be1dde456950e0bd9dee43648c0132d89abe1d0 (diff)
net: dsa: mv88e6xxx: split out SPEED_MAX setting
Currently, all the device specific speed setting functions convert SPEED_MAX to the actual speed of the port. This is used to default CPU and DSA interfaces which do not have a fixed-link specification in DT, which doesn't work correctly with the phylink integration. In order to resolve this, we need access to this value, so make this a separate function, and update mv88e6xxx_port_setup_mac() to use it. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'drivers/net/dsa/mv88e6xxx/chip.h')
-rw-r--r--drivers/net/dsa/mv88e6xxx/chip.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/dsa/mv88e6xxx/chip.h b/drivers/net/dsa/mv88e6xxx/chip.h
index 823ae89e5fca..1c1b4fac6d48 100644
--- a/drivers/net/dsa/mv88e6xxx/chip.h
+++ b/drivers/net/dsa/mv88e6xxx/chip.h
@@ -424,6 +424,7 @@ struct mv88e6xxx_ops {
/* What interface mode should be used for maximum speed? */
phy_interface_t (*port_max_speed_mode)(int port);
+ int (*port_max_speed)(int port);
int (*port_tag_remap)(struct mv88e6xxx_chip *chip, int port);