Commit 9424c073 authored by Russell King (Oracle)'s avatar Russell King (Oracle) Committed by Jakub Kicinski
parent 95fe2662
...@@ -54,9 +54,9 @@ int ksz8_reset_switch(struct ksz_device *dev); ...@@ -54,9 +54,9 @@ int ksz8_reset_switch(struct ksz_device *dev);
int ksz8_switch_init(struct ksz_device *dev); int ksz8_switch_init(struct ksz_device *dev);
void ksz8_switch_exit(struct ksz_device *dev); void ksz8_switch_exit(struct ksz_device *dev);
int ksz8_change_mtu(struct ksz_device *dev, int port, int mtu); int ksz8_change_mtu(struct ksz_device *dev, int port, int mtu);
void ksz8_phylink_mac_link_up(struct ksz_device *dev, int port, void ksz8_phylink_mac_link_up(struct phylink_config *config,
unsigned int mode, phy_interface_t interface, struct phy_device *phydev, unsigned int mode,
struct phy_device *phydev, int speed, int duplex, phy_interface_t interface, int speed, int duplex,
bool tx_pause, bool rx_pause); bool tx_pause, bool rx_pause);
#endif #endif
...@@ -1702,11 +1702,15 @@ static void ksz8_cpu_port_link_up(struct ksz_device *dev, int speed, int duplex, ...@@ -1702,11 +1702,15 @@ static void ksz8_cpu_port_link_up(struct ksz_device *dev, int speed, int duplex,
SW_10_MBIT, ctrl); SW_10_MBIT, ctrl);
} }
void ksz8_phylink_mac_link_up(struct ksz_device *dev, int port, void ksz8_phylink_mac_link_up(struct phylink_config *config,
unsigned int mode, phy_interface_t interface, struct phy_device *phydev, unsigned int mode,
struct phy_device *phydev, int speed, int duplex, phy_interface_t interface, int speed, int duplex,
bool tx_pause, bool rx_pause) bool tx_pause, bool rx_pause)
{ {
struct dsa_port *dp = dsa_phylink_to_port(config);
struct ksz_device *dev = dp->ds->priv;
int port = dp->index;
/* If the port is the CPU port, apply special handling. Only the CPU /* If the port is the CPU port, apply special handling. Only the CPU
* port is configured via global registers. * port is configured via global registers.
*/ */
......
This diff is collapsed.
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
struct ksz_device; struct ksz_device;
struct ksz_port; struct ksz_port;
struct phylink_mac_ops;
enum ksz_regmap_width { enum ksz_regmap_width {
KSZ_REGMAP_8, KSZ_REGMAP_8,
...@@ -61,6 +62,7 @@ struct ksz_chip_data { ...@@ -61,6 +62,7 @@ struct ksz_chip_data {
bool tc_cbs_supported; bool tc_cbs_supported;
bool tc_ets_supported; bool tc_ets_supported;
const struct ksz_dev_ops *ops; const struct ksz_dev_ops *ops;
const struct phylink_mac_ops *phylink_mac_ops;
bool ksz87xx_eee_link_erratum; bool ksz87xx_eee_link_erratum;
const struct ksz_mib_names *mib_names; const struct ksz_mib_names *mib_names;
int mib_cnt; int mib_cnt;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment