Patchwork [U-Boot] net: phy: atheros: Fix masks for AR8035 and AR8021

login
register
mail settings
Submitter Fabio Estevam
Date Nov. 2, 2013, 6:40 p.m.
Message ID <1383417642-16511-1-git-send-email-festevam@gmail.com>
Download mbox | patch
Permalink /patch/288018/
State Accepted
Delegated to: Joe Hershberger
Headers show

Comments

Fabio Estevam - Nov. 2, 2013, 6:40 p.m.
From: Fabio Estevam <fabio.estevam@freescale.com>

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

Signed-off-by: Jon Nettleton <jon.nettleton@gmail.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
This patch allows Ethernet to work on Solid Run Carrier1 board.

 drivers/net/phy/atheros.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/drivers/net/phy/atheros.c b/drivers/net/phy/atheros.c
index 0f2dfd6..2d38bc1 100644
--- a/drivers/net/phy/atheros.c
+++ b/drivers/net/phy/atheros.c
@@ -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,