diff options
Diffstat (limited to 'net/dsa/port.c')
-rw-r--r-- | net/dsa/port.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/dsa/port.c b/net/dsa/port.c index f8499c50dd40..eb703c14406c 100644 --- a/net/dsa/port.c +++ b/net/dsa/port.c @@ -1593,6 +1593,8 @@ static void dsa_port_phylink_mac_config(struct phylink_config *config, if (!ds->ops->phylink_mac_config) return; + dev_printk(KERN_DEBUG, ds->dev, "p%d: %s()\n", dp->index, __func__); + ds->ops->phylink_mac_config(ds, dp->index, mode, state); } @@ -1619,6 +1621,8 @@ static void dsa_port_phylink_mac_link_down(struct phylink_config *config, struct phy_device *phydev = NULL; struct dsa_switch *ds = dp->ds; + dev_printk(KERN_DEBUG, ds->dev, "p%d: %s()\n", dp->index, __func__); + if (dsa_port_is_user(dp)) phydev = dp->user->phydev; @@ -1641,6 +1645,8 @@ static void dsa_port_phylink_mac_link_up(struct phylink_config *config, struct dsa_port *dp = dsa_phylink_to_port(config); struct dsa_switch *ds = dp->ds; + dev_printk(KERN_DEBUG, ds->dev, "p%d: %s()\n", dp->index, __func__); + if (!ds->ops->phylink_mac_link_up) { if (ds->ops->adjust_link && phydev) ds->ops->adjust_link(ds, dp->index, phydev); |