]> git.sur5r.net Git - u-boot/commitdiff
net: phy: atheros: Fix the masks for AR8031/8035
authorFabio Estevam <fabio.estevam@freescale.com>
Fri, 3 Jan 2014 17:55:59 +0000 (15:55 -0200)
committerJoe Hershberger <joe.hershberger@ni.com>
Tue, 14 Jan 2014 20:00:41 +0000 (14:00 -0600)
Use the same masks as used in the kernel:
https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/tree/drivers/net/phy/at803x.c?id=refs/tags/v3.12.6

With such changes Ethernet is functional on hummingboard solo.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Stefano Babic <sbabic@denx.de>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Acked-by: Marek Vasut <marex@denx.de>
Patch: 306640

drivers/net/phy/atheros.c

index b20b4df981e21c27417d351723842c084a2dcd42..32c2ab9944e1dfd15cf2153a55c9035d7444589c 100644 (file)
@@ -50,7 +50,7 @@ static struct phy_driver AR8021_driver =  {
 static struct phy_driver AR8031_driver =  {
        .name = "AR8031/AR8033",
        .uid = 0x4dd074,
-       .mask = 0x4fffff,
+       .mask = 0xffffffef,
        .features = PHY_GBIT_FEATURES,
        .config = ar8021_config,
        .startup = genphy_startup,
@@ -60,7 +60,7 @@ static struct phy_driver AR8031_driver =  {
 static struct phy_driver AR8035_driver =  {
        .name = "AR8035",
        .uid = 0x4dd072,
-       .mask = 0x4fffff,
+       .mask = 0xffffffef,
        .features = PHY_GBIT_FEATURES,
        .config = ar8035_config,
        .startup = genphy_startup,