[PATCH v2 1/1] net: spacemit: display phy driver information
Chukun Pan
amadeus at jmu.edu.cn
Sun Feb 1 02:00:01 PST 2026
Print the PHY driver used and interrupt status after connection.
Signed-off-by: Chukun Pan <amadeus at jmu.edu.cn>
---
Changes in v2:
- Simplify using phy_attached_info()
- Link to v1: https://lore.kernel.org/lkml/20260122080001.73921-1-amadeus@jmu.edu.cn/
---
drivers/net/ethernet/spacemit/k1_emac.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/ethernet/spacemit/k1_emac.c b/drivers/net/ethernet/spacemit/k1_emac.c
index c85dc742c404..b308e97d6bf2 100644
--- a/drivers/net/ethernet/spacemit/k1_emac.c
+++ b/drivers/net/ethernet/spacemit/k1_emac.c
@@ -1614,6 +1614,8 @@ static int emac_phy_connect(struct net_device *ndev)
emac_update_delay_line(priv);
+ phy_attached_info(phydev);
+
err_node_put:
of_node_put(np);
return ret;
--
2.25.1
More information about the linux-riscv
mailing list