diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2020-02-14 13:32:36 +0000 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2020-06-29 01:20:10 +0100 |
commit | e037d1d99b3d34cde3b73cebdd50682d7afe40f7 (patch) | |
tree | 799f45860b637df4f8d5696e18f8a9488aa3a040 /net/dsa/port.c | |
parent | 852d91c1edc668cc9f44e2a52e3504a10b849152 (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.c | 6 |
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); |