diff options
| author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-06-24 08:41:41 -0400 |
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-06-24 13:07:53 -0400 |
| commit | 816724e65c72a90a44fbad0ef0b59b186c85fa90 (patch) | |
| tree | 421fa29aedff988e392f92780637553e275d37a0 /drivers/net/via-velocity.c | |
| parent | 70ac4385a13f78bc478f26d317511893741b05bd (diff) | |
| parent | d384ea691fe4ea8c2dd5b9b8d9042eb181776f18 (diff) | |
Merge branch 'master' of /home/trondmy/kernel/linux-2.6/
Conflicts:
fs/nfs/inode.c
fs/super.c
Fix conflicts between patch 'NFS: Split fs/nfs/inode.c' and patch
'VFS: Permit filesystem to override root dentry on mount'
Diffstat (limited to 'drivers/net/via-velocity.c')
| -rw-r--r-- | drivers/net/via-velocity.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/via-velocity.c b/drivers/net/via-velocity.c index 2eb6b5f9ba0d..09e05fe40c38 100644 --- a/drivers/net/via-velocity.c +++ b/drivers/net/via-velocity.c | |||
| @@ -248,6 +248,7 @@ static void velocity_free_rd_ring(struct velocity_info *vptr); | |||
| 248 | static void velocity_free_tx_buf(struct velocity_info *vptr, struct velocity_td_info *); | 248 | static void velocity_free_tx_buf(struct velocity_info *vptr, struct velocity_td_info *); |
| 249 | static int velocity_soft_reset(struct velocity_info *vptr); | 249 | static int velocity_soft_reset(struct velocity_info *vptr); |
| 250 | static void mii_init(struct velocity_info *vptr, u32 mii_status); | 250 | static void mii_init(struct velocity_info *vptr, u32 mii_status); |
| 251 | static u32 velocity_get_link(struct net_device *dev); | ||
| 251 | static u32 velocity_get_opt_media_mode(struct velocity_info *vptr); | 252 | static u32 velocity_get_opt_media_mode(struct velocity_info *vptr); |
| 252 | static void velocity_print_link_status(struct velocity_info *vptr); | 253 | static void velocity_print_link_status(struct velocity_info *vptr); |
| 253 | static void safe_disable_mii_autopoll(struct mac_regs __iomem * regs); | 254 | static void safe_disable_mii_autopoll(struct mac_regs __iomem * regs); |
| @@ -798,6 +799,9 @@ static int __devinit velocity_found1(struct pci_dev *pdev, const struct pci_devi | |||
| 798 | if (ret < 0) | 799 | if (ret < 0) |
| 799 | goto err_iounmap; | 800 | goto err_iounmap; |
| 800 | 801 | ||
| 802 | if (velocity_get_link(dev)) | ||
| 803 | netif_carrier_off(dev); | ||
| 804 | |||
| 801 | velocity_print_info(vptr); | 805 | velocity_print_info(vptr); |
| 802 | pci_set_drvdata(pdev, dev); | 806 | pci_set_drvdata(pdev, dev); |
| 803 | 807 | ||
| @@ -1653,8 +1657,10 @@ static void velocity_error(struct velocity_info *vptr, int status) | |||
| 1653 | 1657 | ||
| 1654 | if (linked) { | 1658 | if (linked) { |
| 1655 | vptr->mii_status &= ~VELOCITY_LINK_FAIL; | 1659 | vptr->mii_status &= ~VELOCITY_LINK_FAIL; |
| 1660 | netif_carrier_on(vptr->dev); | ||
| 1656 | } else { | 1661 | } else { |
| 1657 | vptr->mii_status |= VELOCITY_LINK_FAIL; | 1662 | vptr->mii_status |= VELOCITY_LINK_FAIL; |
| 1663 | netif_carrier_off(vptr->dev); | ||
| 1658 | } | 1664 | } |
| 1659 | 1665 | ||
| 1660 | velocity_print_link_status(vptr); | 1666 | velocity_print_link_status(vptr); |
