diff options
| author | John W. Linville <linville@tuxdriver.com> | 2006-08-02 14:15:39 -0400 |
|---|---|---|
| committer | John W. Linville <linville@tuxdriver.com> | 2006-08-02 14:15:39 -0400 |
| commit | 02b311bce9fc87987a123adc3e6a2d0a2caa70e2 (patch) | |
| tree | ba5c42ecf98de1a1a72f4bd5d94dc729ca8196c9 /drivers/net | |
| parent | 8f0f850e240df5bea027caeb1723142c50e37e57 (diff) | |
| parent | 49b1e3ea19b1c95c2f012b8331ffb3b169e4c042 (diff) | |
Merge branch 'from-linus' into upstream
Diffstat (limited to 'drivers/net')
| -rw-r--r-- | drivers/net/myri10ge/myri10ge.c | 2 | ||||
| -rw-r--r-- | drivers/net/skge.c | 5 | ||||
| -rw-r--r-- | drivers/net/sunlance.c | 8 | ||||
| -rw-r--r-- | drivers/net/via-velocity.c | 17 |
4 files changed, 19 insertions, 13 deletions
diff --git a/drivers/net/myri10ge/myri10ge.c b/drivers/net/myri10ge/myri10ge.c index 07ca9480a6fe..c3e52c806b13 100644 --- a/drivers/net/myri10ge/myri10ge.c +++ b/drivers/net/myri10ge/myri10ge.c | |||
| @@ -620,7 +620,7 @@ static int myri10ge_load_firmware(struct myri10ge_priv *mgp) | |||
| 620 | return -ENXIO; | 620 | return -ENXIO; |
| 621 | } | 621 | } |
| 622 | dev_info(&mgp->pdev->dev, "handoff confirmed\n"); | 622 | dev_info(&mgp->pdev->dev, "handoff confirmed\n"); |
| 623 | myri10ge_dummy_rdma(mgp, mgp->tx.boundary != 4096); | 623 | myri10ge_dummy_rdma(mgp, 1); |
| 624 | 624 | ||
| 625 | return 0; | 625 | return 0; |
| 626 | } | 626 | } |
diff --git a/drivers/net/skge.c b/drivers/net/skge.c index 82200bfaa8ed..7de9a07b2ac2 100644 --- a/drivers/net/skge.c +++ b/drivers/net/skge.c | |||
| @@ -516,10 +516,7 @@ static int skge_set_pauseparam(struct net_device *dev, | |||
| 516 | /* Chip internal frequency for clock calculations */ | 516 | /* Chip internal frequency for clock calculations */ |
| 517 | static inline u32 hwkhz(const struct skge_hw *hw) | 517 | static inline u32 hwkhz(const struct skge_hw *hw) |
| 518 | { | 518 | { |
| 519 | if (hw->chip_id == CHIP_ID_GENESIS) | 519 | return (hw->chip_id == CHIP_ID_GENESIS) ? 53125 : 78125; |
| 520 | return 53215; /* or: 53.125 MHz */ | ||
| 521 | else | ||
| 522 | return 78215; /* or: 78.125 MHz */ | ||
| 523 | } | 520 | } |
| 524 | 521 | ||
| 525 | /* Chip HZ to microseconds */ | 522 | /* Chip HZ to microseconds */ |
diff --git a/drivers/net/sunlance.c b/drivers/net/sunlance.c index 1ef9fd39a79a..0e3fdf7c6dd3 100644 --- a/drivers/net/sunlance.c +++ b/drivers/net/sunlance.c | |||
| @@ -1537,7 +1537,7 @@ static int __init sparc_lance_init(void) | |||
| 1537 | { | 1537 | { |
| 1538 | if ((idprom->id_machtype == (SM_SUN4|SM_4_330)) || | 1538 | if ((idprom->id_machtype == (SM_SUN4|SM_4_330)) || |
| 1539 | (idprom->id_machtype == (SM_SUN4|SM_4_470))) { | 1539 | (idprom->id_machtype == (SM_SUN4|SM_4_470))) { |
| 1540 | memset(&sun4_sdev, 0, sizeof(sdev)); | 1540 | memset(&sun4_sdev, 0, sizeof(struct sbus_dev)); |
| 1541 | sun4_sdev.reg_addrs[0].phys_addr = sun4_eth_physaddr; | 1541 | sun4_sdev.reg_addrs[0].phys_addr = sun4_eth_physaddr; |
| 1542 | sun4_sdev.irqs[0] = 6; | 1542 | sun4_sdev.irqs[0] = 6; |
| 1543 | return sparc_lance_probe_one(&sun4_sdev, NULL, NULL); | 1543 | return sparc_lance_probe_one(&sun4_sdev, NULL, NULL); |
| @@ -1547,16 +1547,16 @@ static int __init sparc_lance_init(void) | |||
| 1547 | 1547 | ||
| 1548 | static int __exit sunlance_sun4_remove(void) | 1548 | static int __exit sunlance_sun4_remove(void) |
| 1549 | { | 1549 | { |
| 1550 | struct lance_private *lp = dev_get_drvdata(&sun4_sdev->dev); | 1550 | struct lance_private *lp = dev_get_drvdata(&sun4_sdev.ofdev.dev); |
| 1551 | struct net_device *net_dev = lp->dev; | 1551 | struct net_device *net_dev = lp->dev; |
| 1552 | 1552 | ||
| 1553 | unregister_netdevice(net_dev); | 1553 | unregister_netdevice(net_dev); |
| 1554 | 1554 | ||
| 1555 | lance_free_hwresources(root_lance_dev); | 1555 | lance_free_hwresources(lp); |
| 1556 | 1556 | ||
| 1557 | free_netdev(net_dev); | 1557 | free_netdev(net_dev); |
| 1558 | 1558 | ||
| 1559 | dev_set_drvdata(&sun4_sdev->dev, NULL); | 1559 | dev_set_drvdata(&sun4_sdev.ofdev.dev, NULL); |
| 1560 | 1560 | ||
| 1561 | return 0; | 1561 | return 0; |
| 1562 | } | 1562 | } |
diff --git a/drivers/net/via-velocity.c b/drivers/net/via-velocity.c index f5b0078eb4ad..aa9cd92f46b2 100644 --- a/drivers/net/via-velocity.c +++ b/drivers/net/via-velocity.c | |||
| @@ -2742,7 +2742,7 @@ static u32 check_connection_type(struct mac_regs __iomem * regs) | |||
| 2742 | 2742 | ||
| 2743 | if (PHYSR0 & PHYSR0_SPDG) | 2743 | if (PHYSR0 & PHYSR0_SPDG) |
| 2744 | status |= VELOCITY_SPEED_1000; | 2744 | status |= VELOCITY_SPEED_1000; |
| 2745 | if (PHYSR0 & PHYSR0_SPD10) | 2745 | else if (PHYSR0 & PHYSR0_SPD10) |
| 2746 | status |= VELOCITY_SPEED_10; | 2746 | status |= VELOCITY_SPEED_10; |
| 2747 | else | 2747 | else |
| 2748 | status |= VELOCITY_SPEED_100; | 2748 | status |= VELOCITY_SPEED_100; |
| @@ -2851,8 +2851,17 @@ static int velocity_get_settings(struct net_device *dev, struct ethtool_cmd *cmd | |||
| 2851 | u32 status; | 2851 | u32 status; |
| 2852 | status = check_connection_type(vptr->mac_regs); | 2852 | status = check_connection_type(vptr->mac_regs); |
| 2853 | 2853 | ||
| 2854 | cmd->supported = SUPPORTED_TP | SUPPORTED_Autoneg | SUPPORTED_10baseT_Half | SUPPORTED_10baseT_Full | SUPPORTED_100baseT_Half | SUPPORTED_100baseT_Full | SUPPORTED_1000baseT_Half | SUPPORTED_1000baseT_Full; | 2854 | cmd->supported = SUPPORTED_TP | |
| 2855 | if (status & VELOCITY_SPEED_100) | 2855 | SUPPORTED_Autoneg | |
| 2856 | SUPPORTED_10baseT_Half | | ||
| 2857 | SUPPORTED_10baseT_Full | | ||
| 2858 | SUPPORTED_100baseT_Half | | ||
| 2859 | SUPPORTED_100baseT_Full | | ||
| 2860 | SUPPORTED_1000baseT_Half | | ||
| 2861 | SUPPORTED_1000baseT_Full; | ||
| 2862 | if (status & VELOCITY_SPEED_1000) | ||
| 2863 | cmd->speed = SPEED_1000; | ||
| 2864 | else if (status & VELOCITY_SPEED_100) | ||
| 2856 | cmd->speed = SPEED_100; | 2865 | cmd->speed = SPEED_100; |
| 2857 | else | 2866 | else |
| 2858 | cmd->speed = SPEED_10; | 2867 | cmd->speed = SPEED_10; |
| @@ -2896,7 +2905,7 @@ static u32 velocity_get_link(struct net_device *dev) | |||
| 2896 | { | 2905 | { |
| 2897 | struct velocity_info *vptr = netdev_priv(dev); | 2906 | struct velocity_info *vptr = netdev_priv(dev); |
| 2898 | struct mac_regs __iomem * regs = vptr->mac_regs; | 2907 | struct mac_regs __iomem * regs = vptr->mac_regs; |
| 2899 | return BYTE_REG_BITS_IS_ON(PHYSR0_LINKGD, ®s->PHYSR0) ? 0 : 1; | 2908 | return BYTE_REG_BITS_IS_ON(PHYSR0_LINKGD, ®s->PHYSR0) ? 1 : 0; |
| 2900 | } | 2909 | } |
| 2901 | 2910 | ||
| 2902 | static void velocity_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) | 2911 | static void velocity_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) |
