smsc911x.c (c13aca79ff3c4af5fd31a5b2743a90eba6e36a26) | smsc911x.c (58056c1e1b0e4951f3486bd552d8278194f8b84b) |
---|---|
1/*************************************************************************** 2 * 3 * Copyright (C) 2004-2008 SMSC 4 * Copyright (C) 2005-2008 ARM 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * as published by the Free Software Foundation; either version 2 --- 1034 unchanged lines hidden (view full) --- 1043 1044 if (ret) { 1045 netdev_err(dev, "Could not attach to PHY\n"); 1046 return ret; 1047 } 1048 1049 phy_attached_info(phydev); 1050 | 1/*************************************************************************** 2 * 3 * Copyright (C) 2004-2008 SMSC 4 * Copyright (C) 2005-2008 ARM 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * as published by the Free Software Foundation; either version 2 --- 1034 unchanged lines hidden (view full) --- 1043 1044 if (ret) { 1045 netdev_err(dev, "Could not attach to PHY\n"); 1046 return ret; 1047 } 1048 1049 phy_attached_info(phydev); 1050 |
1051 phy_set_max_speed(phydev, SPEED_100); 1052 |
|
1051 /* mask with MAC supported features */ | 1053 /* mask with MAC supported features */ |
1052 phydev->supported &= (PHY_BASIC_FEATURES | SUPPORTED_Pause | 1053 SUPPORTED_Asym_Pause); | 1054 phydev->supported &= (SUPPORTED_Pause | SUPPORTED_Asym_Pause); |
1054 phydev->advertising = phydev->supported; 1055 1056 pdata->last_duplex = -1; 1057 pdata->last_carrier = -1; 1058 1059#ifdef USE_PHY_WORK_AROUND 1060 if (smsc911x_phy_loopbacktest(dev) < 0) { 1061 SMSC_WARN(pdata, hw, "Failed Loop Back Test"); --- 1636 unchanged lines hidden --- | 1055 phydev->advertising = phydev->supported; 1056 1057 pdata->last_duplex = -1; 1058 pdata->last_carrier = -1; 1059 1060#ifdef USE_PHY_WORK_AROUND 1061 if (smsc911x_phy_loopbacktest(dev) < 0) { 1062 SMSC_WARN(pdata, hw, "Failed Loop Back Test"); --- 1636 unchanged lines hidden --- |