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 b69e0c2..467d416 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);