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 a58fdd362574..ebd2b805680d 100644
--- a/net/dsa/port.c
+++ b/net/dsa/port.c
@@ -496,6 +496,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);
}
@@ -518,6 +520,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_is_user_port(ds, dp->index))
phydev = dp->slave->phydev;
@@ -540,6 +544,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);