sun4i-emac.c (c25141062a82ae8bddced1b3ce2b57a1c0efabe0) | sun4i-emac.c (58056c1e1b0e4951f3486bd552d8278194f8b84b) |
---|---|
1/* 2 * Allwinner EMAC Fast Ethernet driver for Linux. 3 * 4 * Copyright 2012-2013 Stefan Roese <sr@denx.de> 5 * Copyright 2013 Maxime Ripard <maxime.ripard@free-electrons.com> 6 * 7 * Based on the Linux driver provided by Allwinner: 8 * Copyright (C) 1997 Sten Wang --- 158 unchanged lines hidden (view full) --- 167 &emac_handle_link_change, 0, 168 db->phy_interface); 169 if (!phydev) { 170 netdev_err(db->ndev, "could not find the PHY\n"); 171 return -ENODEV; 172 } 173 174 /* mask with MAC supported features */ | 1/* 2 * Allwinner EMAC Fast Ethernet driver for Linux. 3 * 4 * Copyright 2012-2013 Stefan Roese <sr@denx.de> 5 * Copyright 2013 Maxime Ripard <maxime.ripard@free-electrons.com> 6 * 7 * Based on the Linux driver provided by Allwinner: 8 * Copyright (C) 1997 Sten Wang --- 158 unchanged lines hidden (view full) --- 167 &emac_handle_link_change, 0, 168 db->phy_interface); 169 if (!phydev) { 170 netdev_err(db->ndev, "could not find the PHY\n"); 171 return -ENODEV; 172 } 173 174 /* mask with MAC supported features */ |
175 phydev->supported &= PHY_BASIC_FEATURES; 176 phydev->advertising = phydev->supported; | 175 phy_set_max_speed(phydev, SPEED_100); |
177 178 db->link = 0; 179 db->speed = 0; 180 db->duplex = -1; 181 182 return 0; 183} 184 --- 803 unchanged lines hidden --- | 176 177 db->link = 0; 178 db->speed = 0; 179 db->duplex = -1; 180 181 return 0; 182} 183 --- 803 unchanged lines hidden --- |