diff options
author | David S. Miller <davem@davemloft.net> | 2013-07-03 17:50:41 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-07-03 17:55:13 -0400 |
commit | 0c1072ae0242fbdffd9a0bba36e7a7033d287f9c (patch) | |
tree | e0f4dbdbf5078d4a707911177e7bdc17a70bdce5 /drivers/net/ethernet/freescale | |
parent | c50cd357887acf9fd7af3a5d492911bd825555a2 (diff) | |
parent | 8bb495e3f02401ee6f76d1b1d77f3ac9f079e376 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts:
drivers/net/ethernet/freescale/fec_main.c
drivers/net/ethernet/renesas/sh_eth.c
net/ipv4/gre.c
The GRE conflict is between a bug fix (kfree_skb --> kfree_skb_list)
and the splitting of the gre.c code into seperate files.
The FEC conflict was two sets of changes adding ethtool support code
in an "!CONFIG_M5272" CPP protected block.
Finally the sh_eth.c conflict was between one commit add bits set
in the .eesr_err_check mask whilst another commit removed the
.tx_error_check member and assignments.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale')
-rw-r--r-- | drivers/net/ethernet/freescale/fec_main.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c index b6768821757b..1f7ff2268bd0 100644 --- a/drivers/net/ethernet/freescale/fec_main.c +++ b/drivers/net/ethernet/freescale/fec_main.c | |||
@@ -516,6 +516,7 @@ fec_restart(struct net_device *ndev, int duplex) | |||
516 | /* Set MII speed */ | 516 | /* Set MII speed */ |
517 | writel(fep->phy_speed, fep->hwp + FEC_MII_SPEED); | 517 | writel(fep->phy_speed, fep->hwp + FEC_MII_SPEED); |
518 | 518 | ||
519 | #if !defined(CONFIG_M5272) | ||
519 | /* set RX checksum */ | 520 | /* set RX checksum */ |
520 | val = readl(fep->hwp + FEC_RACC); | 521 | val = readl(fep->hwp + FEC_RACC); |
521 | if (fep->csum_flags & FLAG_RX_CSUM_ENABLED) | 522 | if (fep->csum_flags & FLAG_RX_CSUM_ENABLED) |
@@ -523,6 +524,7 @@ fec_restart(struct net_device *ndev, int duplex) | |||
523 | else | 524 | else |
524 | val &= ~FEC_RACC_OPTIONS; | 525 | val &= ~FEC_RACC_OPTIONS; |
525 | writel(val, fep->hwp + FEC_RACC); | 526 | writel(val, fep->hwp + FEC_RACC); |
527 | #endif | ||
526 | 528 | ||
527 | /* | 529 | /* |
528 | * The phy interface and speed need to get configured | 530 | * The phy interface and speed need to get configured |
@@ -575,6 +577,7 @@ fec_restart(struct net_device *ndev, int duplex) | |||
575 | #endif | 577 | #endif |
576 | } | 578 | } |
577 | 579 | ||
580 | #if !defined(CONFIG_M5272) | ||
578 | /* enable pause frame*/ | 581 | /* enable pause frame*/ |
579 | if ((fep->pause_flag & FEC_PAUSE_FLAG_ENABLE) || | 582 | if ((fep->pause_flag & FEC_PAUSE_FLAG_ENABLE) || |
580 | ((fep->pause_flag & FEC_PAUSE_FLAG_AUTONEG) && | 583 | ((fep->pause_flag & FEC_PAUSE_FLAG_AUTONEG) && |
@@ -592,6 +595,7 @@ fec_restart(struct net_device *ndev, int duplex) | |||
592 | } else { | 595 | } else { |
593 | rcntl &= ~FEC_ENET_FCE; | 596 | rcntl &= ~FEC_ENET_FCE; |
594 | } | 597 | } |
598 | #endif /* !defined(CONFIG_M5272) */ | ||
595 | 599 | ||
596 | writel(rcntl, fep->hwp + FEC_R_CNTRL); | 600 | writel(rcntl, fep->hwp + FEC_R_CNTRL); |
597 | 601 | ||
@@ -1211,7 +1215,9 @@ static int fec_enet_mii_probe(struct net_device *ndev) | |||
1211 | /* mask with MAC supported features */ | 1215 | /* mask with MAC supported features */ |
1212 | if (id_entry->driver_data & FEC_QUIRK_HAS_GBIT) { | 1216 | if (id_entry->driver_data & FEC_QUIRK_HAS_GBIT) { |
1213 | phy_dev->supported &= PHY_GBIT_FEATURES; | 1217 | phy_dev->supported &= PHY_GBIT_FEATURES; |
1218 | #if !defined(CONFIG_M5272) | ||
1214 | phy_dev->supported |= SUPPORTED_Pause; | 1219 | phy_dev->supported |= SUPPORTED_Pause; |
1220 | #endif | ||
1215 | } | 1221 | } |
1216 | else | 1222 | else |
1217 | phy_dev->supported &= PHY_BASIC_FEATURES; | 1223 | phy_dev->supported &= PHY_BASIC_FEATURES; |
@@ -1396,6 +1402,8 @@ static int fec_enet_get_ts_info(struct net_device *ndev, | |||
1396 | } | 1402 | } |
1397 | } | 1403 | } |
1398 | 1404 | ||
1405 | #if !defined(CONFIG_M5272) | ||
1406 | |||
1399 | static void fec_enet_get_pauseparam(struct net_device *ndev, | 1407 | static void fec_enet_get_pauseparam(struct net_device *ndev, |
1400 | struct ethtool_pauseparam *pause) | 1408 | struct ethtool_pauseparam *pause) |
1401 | { | 1409 | { |
@@ -1442,7 +1450,6 @@ static int fec_enet_set_pauseparam(struct net_device *ndev, | |||
1442 | return 0; | 1450 | return 0; |
1443 | } | 1451 | } |
1444 | 1452 | ||
1445 | #ifndef CONFIG_M5272 | ||
1446 | static const struct fec_stat { | 1453 | static const struct fec_stat { |
1447 | char name[ETH_GSTRING_LEN]; | 1454 | char name[ETH_GSTRING_LEN]; |
1448 | u16 offset; | 1455 | u16 offset; |
@@ -1541,7 +1548,7 @@ static int fec_enet_get_sset_count(struct net_device *dev, int sset) | |||
1541 | return -EOPNOTSUPP; | 1548 | return -EOPNOTSUPP; |
1542 | } | 1549 | } |
1543 | } | 1550 | } |
1544 | #endif | 1551 | #endif /* !defined(CONFIG_M5272) */ |
1545 | 1552 | ||
1546 | static int fec_enet_nway_reset(struct net_device *dev) | 1553 | static int fec_enet_nway_reset(struct net_device *dev) |
1547 | { | 1554 | { |
@@ -1555,8 +1562,10 @@ static int fec_enet_nway_reset(struct net_device *dev) | |||
1555 | } | 1562 | } |
1556 | 1563 | ||
1557 | static const struct ethtool_ops fec_enet_ethtool_ops = { | 1564 | static const struct ethtool_ops fec_enet_ethtool_ops = { |
1565 | #if !defined(CONFIG_M5272) | ||
1558 | .get_pauseparam = fec_enet_get_pauseparam, | 1566 | .get_pauseparam = fec_enet_get_pauseparam, |
1559 | .set_pauseparam = fec_enet_set_pauseparam, | 1567 | .set_pauseparam = fec_enet_set_pauseparam, |
1568 | #endif | ||
1560 | .get_settings = fec_enet_get_settings, | 1569 | .get_settings = fec_enet_get_settings, |
1561 | .set_settings = fec_enet_set_settings, | 1570 | .set_settings = fec_enet_set_settings, |
1562 | .get_drvinfo = fec_enet_get_drvinfo, | 1571 | .get_drvinfo = fec_enet_get_drvinfo, |
@@ -1996,10 +2005,12 @@ fec_probe(struct platform_device *pdev) | |||
1996 | /* setup board info structure */ | 2005 | /* setup board info structure */ |
1997 | fep = netdev_priv(ndev); | 2006 | fep = netdev_priv(ndev); |
1998 | 2007 | ||
2008 | #if !defined(CONFIG_M5272) | ||
1999 | /* default enable pause frame auto negotiation */ | 2009 | /* default enable pause frame auto negotiation */ |
2000 | if (pdev->id_entry && | 2010 | if (pdev->id_entry && |
2001 | (pdev->id_entry->driver_data & FEC_QUIRK_HAS_GBIT)) | 2011 | (pdev->id_entry->driver_data & FEC_QUIRK_HAS_GBIT)) |
2002 | fep->pause_flag |= FEC_PAUSE_FLAG_AUTONEG; | 2012 | fep->pause_flag |= FEC_PAUSE_FLAG_AUTONEG; |
2013 | #endif | ||
2003 | 2014 | ||
2004 | fep->hwp = devm_ioremap_resource(&pdev->dev, r); | 2015 | fep->hwp = devm_ioremap_resource(&pdev->dev, r); |
2005 | if (IS_ERR(fep->hwp)) { | 2016 | if (IS_ERR(fep->hwp)) { |