summaryrefslogtreecommitdiff
path: root/net/dsa/port.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2020-02-14 13:32:36 +0000
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2024-04-27 16:55:26 +0100
commita98a469e79c72ce3b4d0d35d9f4c6799c2848749 (patch)
treeff106aa54fe56216972f598a00dd3dbcd4d2aa59 /net/dsa/port.c
parent7fbcc5f13bc15e229dd2abe3faddd67877a984ed (diff)
net: dsa: debugging prints
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
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 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);