Skip to contentSkip to conversation

phylib: add support for aquantia PHYs

PATCH New shh.xie at gmail.com 3 participants 4 messages Dec 30, 2014 – Jan 23, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 phylib: add support for aquantia PHYs

From: Shaohui Xie <[email protected]>

This patch supports AQ1202, AQ2104, AQR105 PHY.

---
 drivers/net/phy/Makefile   |   1 +
 drivers/net/phy/aquantia.c | 156 +++++++++++++++++++++++++++++++++++++++++++++
 drivers/net/phy/phy.c      |   3 +
 include/phy.h              |   1 +
 4 files changed, 161 insertions(+)
 create mode 100644 drivers/net/phy/aquantia.c
drivers/net/phy/Makefile +1 -0
index 9556536..87d5c9c 100644
@@ -11,6 +11,7 @@ obj-$(CONFIG_MV88E6352_SWITCH) += mv88e6352.o
 
 obj-$(CONFIG_PHYLIB) += phy.o
 obj-$(CONFIG_PHYLIB_10G) += generic_10g.o
+obj-$(CONFIG_PHY_AQUANTIA) += aquantia.o
 obj-$(CONFIG_PHY_ATHEROS) += atheros.o
 obj-$(CONFIG_PHY_BROADCOM) += broadcom.o
 obj-$(CONFIG_PHY_DAVICOM) += davicom.o
drivers/net/phy/aquantia.c new file +156 -0

156 lines not on this page · raw message

drivers/net/phy/phy.c +3 -0
index 1d6c14f..7b75f85 100644
@@ -442,6 +442,9 @@ static LIST_HEAD(phy_drivers);
 
 int phy_init(void)
 {
+#ifdef CONFIG_PHY_AQUANTIA
+	phy_aquantia_init();
+#endif
 #ifdef CONFIG_PHY_ATHEROS
 	phy_atheros_init();
 #endif
include/phy.h +1 -0
index 2fcc328..c84a441 100644
@@ -221,6 +221,7 @@ int gen10g_startup(struct phy_device *phydev);
 int gen10g_shutdown(struct phy_device *phydev);
 int gen10g_discover_mmds(struct phy_device *phydev);
 
+int phy_aquantia_init(void);
 int phy_atheros_init(void);
 int phy_broadcom_init(void);
 int phy_davicom_init(void);
Signature · 1 line
2.1.0.27.g96db324
#1 lore raw

PATCH 1/1 phylib: add support for aquantia PHYs

Quoted 4 lines · shh.xie at gmail.com

From: Shaohui Xie <[email protected]>

This patch supports AQ1202, AQ2104, AQR105 PHY.

Quoted 8 lines
---
 drivers/net/phy/Makefile   |   1 +
 drivers/net/phy/aquantia.c | 156 +++++++++++++++++++++++++++++++++++++++++++++
 drivers/net/phy/phy.c      |   3 +
 include/phy.h              |   1 +
 4 files changed, 161 insertions(+)
 create mode 100644 drivers/net/phy/aquantia.c

Joe,

Somehow this patch was delegated to me. Please comment or ack it. Or you can grab it if you want.

York