ravb: Add disable 10base
authorKazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com>
Sun, 13 Dec 2015 15:15:58 +0000 (00:15 +0900)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Dec 2015 05:26:31 +0000 (00:26 -0500)
Ethernet AVB does not support 10 Mbps transfer speed.

Signed-off-by: Kazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com>
Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/ravb_main.c

index b69e0c249c4fd488bc9d3ea16313fe31799fa1a9..467d41698fd534e724d53ce03e35091bd01cdcdb 100644 (file)
@@ -905,6 +905,9 @@ static int ravb_phy_init(struct net_device *ndev)
                netdev_info(ndev, "limited PHY to 100Mbit/s\n");
        }
 
+       /* 10BASE is not supported */
+       phydev->supported &= ~PHY_10BT_FEATURES;
+
        netdev_info(ndev, "attached PHY %d (IRQ %d) to driver %s\n",
                    phydev->addr, phydev->irq, phydev->drv->name);