public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] net: spacemit: display phy driver information
@ 2026-01-22  8:00 Chukun Pan
  2026-01-22 13:17 ` Andrew Lunn
  2026-01-22 15:12 ` Yao Zi
  0 siblings, 2 replies; 6+ messages in thread
From: Chukun Pan @ 2026-01-22  8:00 UTC (permalink / raw)
  To: Vivian Wang, Yixun Lan
  Cc: Paolo Abeni, Jakub Kicinski, Eric Dumazet, Andrew Lunn,
	David S . Miller, linux-riscv, linux-kernel, spacemit, netdev,
	Chukun Pan

Print the PHY driver used and interrupt status after connection.

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
---
 drivers/net/ethernet/spacemit/k1_emac.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/net/ethernet/spacemit/k1_emac.c b/drivers/net/ethernet/spacemit/k1_emac.c
index c85dc742c404..afb5b6a61c2c 100644
--- a/drivers/net/ethernet/spacemit/k1_emac.c
+++ b/drivers/net/ethernet/spacemit/k1_emac.c
@@ -1568,6 +1568,7 @@ static int emac_phy_connect(struct net_device *ndev)
 	struct device *dev = &priv->pdev->dev;
 	struct phy_device *phydev;
 	struct device_node *np;
+	char *irq_str;
 	int ret;
 
 	ret = of_get_phy_mode(dev->of_node, &priv->phy_interface);
@@ -1610,6 +1611,11 @@ static int emac_phy_connect(struct net_device *ndev)
 		goto err_node_put;
 	}
 
+	irq_str = phy_attached_info_irq(phydev);
+	netdev_info(ndev, "PHY driver [%s] (irq=%s)\n",
+		    phydev->drv->name, irq_str);
+	kfree(irq_str);
+
 	phydev->mac_managed_pm = true;
 
 	emac_update_delay_line(priv);
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-01-23  2:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-22  8:00 [PATCH 1/1] net: spacemit: display phy driver information Chukun Pan
2026-01-22 13:17 ` Andrew Lunn
2026-01-22 15:06   ` Chukun Pan
2026-01-22 15:18     ` Andrew Lunn
2026-01-23  2:10       ` Vivian Wang
2026-01-22 15:12 ` Yao Zi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox