Skip to contentSkip to conversation

net: phy: implements probe for Cortina phy

PATCH Superseded shh.xie at gmail.com 2 participants 2 messages Jan 12, 2016 – Jan 27, 2016

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 net: phy: implements probe for Cortina phy

From: Shaohui Xie <[email protected]>

Cortine phy cannot support soft reset, this commit implements probe for Cortina PHY to tell phylib to skip phy soft reset by setting PHY_BROKEN_RESET in flags.

---
 drivers/net/phy/cortina.c | 7 +++++++
 1 file changed, 7 insertions(+)
drivers/net/phy/cortina.c +7 -0
index 3a2b3bb..2d04f62 100644
@@ -256,6 +256,12 @@ int cs4340_config(struct phy_device *phydev)
 	return 0;
 }
 
+int cs4340_probe(struct phy_device *phydev)
+{
+	phydev->flags = PHY_BROKEN_RESET;
+	return 0;
+}
+
 int cs4340_startup(struct phy_device *phydev)
 {
 	phydev->link = 1;
@@ -275,6 +281,7 @@ struct phy_driver cs4340_driver = {
 		 MDIO_DEVS_PHYXS | MDIO_DEVS_AN |
 		 MDIO_DEVS_VEND1 | MDIO_DEVS_VEND2),
 	.config = &cs4340_config,
+	.probe	= &cs4340_probe,
 	.startup = &cs4340_startup,
 	.shutdown = &gen10g_shutdown,
 };
Signature · 1 line
2.1.0.27.g96db324