Skip to contentSkip to conversation

net: phy: atheros: Fix masks for AR8035 and AR8021

PATCH New Fabio Estevam 1 participant 1 message Nov 2, 2013

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

PATCH 1/1 net: phy: atheros: Fix masks for AR8035 and AR8021

From: Fabio Estevam <[email protected]>

The masks were ignoring the last 4 bits which didn't allow detection differences between the ar8031 and ar8035.

---
This patch allows Ethernet to work on Solid Run Carrier1 board.

 drivers/net/phy/atheros.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/phy/atheros.c +2 -2
index 0f2dfd6..2d38bc1 100644
@@ -40,7 +40,7 @@ static int ar8035_config(struct phy_device *phydev)
 static struct phy_driver AR8021_driver =  {
 	.name = "AR8021",
 	.uid = 0x4dd040,
-	.mask = 0xfffff0,
+	.mask = 0x4fffff,
 	.features = PHY_GBIT_FEATURES,
 	.config = ar8021_config,
 	.startup = genphy_startup,
@@ -50,7 +50,7 @@ static struct phy_driver AR8021_driver =  {
 static struct phy_driver AR8031_driver =  {
 	.name = "AR8031",
 	.uid = 0x4dd074,
-	.mask = 0xfffff0,
+	.mask = 0x4fffff,
 	.features = PHY_GBIT_FEATURES,
 	.config = genphy_config,
 	.startup = genphy_startup,
Signature · 1 line
1.8.1.2