]> git.sur5r.net Git - u-boot/commitdiff
net: phy: atheros: Fix masks for AR8035 and AR8021
authorFabio Estevam <fabio.estevam@freescale.com>
Sat, 2 Nov 2013 18:40:42 +0000 (16:40 -0200)
committerJoe Hershberger <joe.hershberger@ni.com>
Fri, 22 Nov 2013 23:03:18 +0000 (17:03 -0600)
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>
Patch: 288018

drivers/net/phy/atheros.c

index 215658ab286882ee4275b1a61b3a3f590f680104..b20b4df981e21c27417d351723842c084a2dcd42 100644 (file)
@@ -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,