ethoc.c (415d2b3392d7a80903e0f97f051201aa02bf20e9) ethoc.c (58056c1e1b0e4951f3486bd552d8278194f8b84b)
1/*
2 * linux/drivers/net/ethernet/ethoc.c
3 *
4 * Copyright (C) 2007-2008 Avionic Design Development GmbH
5 * Copyright (C) 2008-2009 Avionic Design GmbH
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as

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

716
717 err = phy_connect_direct(dev, phy, ethoc_mdio_poll,
718 PHY_INTERFACE_MODE_GMII);
719 if (err) {
720 dev_err(&dev->dev, "could not attach to PHY\n");
721 return err;
722 }
723
1/*
2 * linux/drivers/net/ethernet/ethoc.c
3 *
4 * Copyright (C) 2007-2008 Avionic Design Development GmbH
5 * Copyright (C) 2008-2009 Avionic Design GmbH
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as

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

716
717 err = phy_connect_direct(dev, phy, ethoc_mdio_poll,
718 PHY_INTERFACE_MODE_GMII);
719 if (err) {
720 dev_err(&dev->dev, "could not attach to PHY\n");
721 return err;
722 }
723
724 phy->advertising &= ~(ADVERTISED_1000baseT_Full |
725 ADVERTISED_1000baseT_Half);
726 phy->supported &= ~(SUPPORTED_1000baseT_Full |
727 SUPPORTED_1000baseT_Half);
724 phy_set_max_speed(phy, SPEED_100);
728
729 return 0;
730}
731
732static int ethoc_open(struct net_device *dev)
733{
734 struct ethoc *priv = netdev_priv(dev);
735 int ret;

--- 584 unchanged lines hidden ---
725
726 return 0;
727}
728
729static int ethoc_open(struct net_device *dev)
730{
731 struct ethoc *priv = netdev_priv(dev);
732 int ret;

--- 584 unchanged lines hidden ---