summaryrefslogtreecommitdiff
path: root/net/dsa/port.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/dsa/port.c')
-rw-r--r--net/dsa/port.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/dsa/port.c b/net/dsa/port.c
index 8c52d5a87c17..01478b13c991 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 = container_of(config, struct dsa_port, pl_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);