source: trunk/target/linux/brcm63xx/patches-3.3/411-bcm63xx_enet-implement-reset_autoneg-ethtool.patch @ 31129

Last change on this file since 31129 was 31129, checked in by jogo, 5 years ago

bcm63xx: add ethernet support for bcm6368

Add basic support for the internal ethernet switch on bcm6368. It behaves
as a dumb switch for now, but allows basic connectivity.

Also drop the ethernet patch for bcm6345 for now, it needs rework.

File size: 1.2 KB
  • drivers/net/ethernet/broadcom/bcm63xx_enet.c

    From accc558f334662c8b16c121b4819931c028e8eb0 Mon Sep 17 00:00:00 2001
    From: Maxime Bizon <mbizon@freebox.fr>
    Date: Mon, 8 Jun 2009 16:12:10 +0200
    Subject: [PATCH 27/63] bcm63xx_enet: implement reset_autoneg ethtool.
    
    ---
     drivers/net/ethernet/broadcom/bcm63xx_enet.c |   15 +++++++++++++++
     1 files changed, 15 insertions(+), 0 deletions(-)
    
    a b static void bcm_enet_get_ethtool_stats(s 
    12901290        mutex_unlock(&priv->mib_update_lock); 
    12911291} 
    12921292 
     1293static int bcm_enet_nway_reset(struct net_device *dev) 
     1294{ 
     1295        struct bcm_enet_priv *priv; 
     1296 
     1297        priv = netdev_priv(dev); 
     1298        if (priv->has_phy) { 
     1299                if (!priv->phydev) 
     1300                        return -ENODEV; 
     1301                return genphy_restart_aneg(priv->phydev); 
     1302        } 
     1303 
     1304        return -EOPNOTSUPP; 
     1305} 
     1306 
    12931307static int bcm_enet_get_settings(struct net_device *dev, 
    12941308                                 struct ethtool_cmd *cmd) 
    12951309{ 
    static const struct ethtool_ops bcm_enet 
    14321446        .get_strings            = bcm_enet_get_strings, 
    14331447        .get_sset_count         = bcm_enet_get_sset_count, 
    14341448        .get_ethtool_stats      = bcm_enet_get_ethtool_stats, 
     1449        .nway_reset             = bcm_enet_nway_reset, 
    14351450        .get_settings           = bcm_enet_get_settings, 
    14361451        .set_settings           = bcm_enet_set_settings, 
    14371452        .get_drvinfo            = bcm_enet_get_drvinfo, 
Note: See TracBrowser for help on using the repository browser.