et131x.c (664b0bae0b87f69bc9deb098f5e0158b9cf18e04) et131x.c (58056c1e1b0e4951f3486bd552d8278194f8b84b)
1/* Agere Systems Inc.
2 * 10/100/1000 Base-T Ethernet Driver for the ET1301 and ET131x series MACs
3 *
4 * Copyright © 2005 Agere Systems Inc.
5 * All rights reserved.
6 * http://www.agere.com
7 *
8 * Copyright (c) 2011 Mark Einon <mark.einon@gmail.com>

--- 3244 unchanged lines hidden (view full) ---

3253 phydev = phy_connect(netdev, phydev_name(phydev),
3254 &et131x_adjust_link, PHY_INTERFACE_MODE_MII);
3255
3256 if (IS_ERR(phydev)) {
3257 dev_err(&adapter->pdev->dev, "Could not attach to PHY\n");
3258 return PTR_ERR(phydev);
3259 }
3260
1/* Agere Systems Inc.
2 * 10/100/1000 Base-T Ethernet Driver for the ET1301 and ET131x series MACs
3 *
4 * Copyright © 2005 Agere Systems Inc.
5 * All rights reserved.
6 * http://www.agere.com
7 *
8 * Copyright (c) 2011 Mark Einon <mark.einon@gmail.com>

--- 3244 unchanged lines hidden (view full) ---

3253 phydev = phy_connect(netdev, phydev_name(phydev),
3254 &et131x_adjust_link, PHY_INTERFACE_MODE_MII);
3255
3256 if (IS_ERR(phydev)) {
3257 dev_err(&adapter->pdev->dev, "Could not attach to PHY\n");
3258 return PTR_ERR(phydev);
3259 }
3260
3261 phydev->supported &= (SUPPORTED_10baseT_Half |
3262 SUPPORTED_10baseT_Full |
3263 SUPPORTED_100baseT_Half |
3264 SUPPORTED_100baseT_Full |
3265 SUPPORTED_Autoneg |
3266 SUPPORTED_MII |
3267 SUPPORTED_TP);
3261 phy_set_max_speed(phydev, SPEED_100);
3268
3269 if (adapter->pdev->device != ET131X_PCI_DEVICE_ID_FAST)
3262
3263 if (adapter->pdev->device != ET131X_PCI_DEVICE_ID_FAST)
3270 phydev->supported |= SUPPORTED_1000baseT_Half |
3271 SUPPORTED_1000baseT_Full;
3264 phy_set_max_speed(phydev, SPEED_1000);
3272
3265
3273 phydev->advertising = phydev->supported;
3274 phydev->autoneg = AUTONEG_ENABLE;
3275
3276 phy_attached_info(phydev);
3277
3278 return 0;
3279}
3280
3281static struct et131x_adapter *et131x_adapter_init(struct net_device *netdev,

--- 804 unchanged lines hidden ---
3266 phydev->autoneg = AUTONEG_ENABLE;
3267
3268 phy_attached_info(phydev);
3269
3270 return 0;
3271}
3272
3273static struct et131x_adapter *et131x_adapter_init(struct net_device *netdev,

--- 804 unchanged lines hidden ---