Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 89889 Details for
Bug 137702
[PATCH] via velocity link detection
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
raises events on link status change
velocity.patch (text/plain), 1.08 KB, created by
Roy Marples (RETIRED)
on 2006-06-23 03:08:55 UTC
(
hide
)
Description:
raises events on link status change
Filename:
MIME Type:
Creator:
Roy Marples (RETIRED)
Created:
2006-06-23 03:08:55 UTC
Size:
1.08 KB
patch
obsolete
>--- linux-2.6.17.orig/drivers/net/via-velocity.c 2006-06-18 02:49:35.000000000 +0100 >+++ linux-2.6.17.new/drivers/net/via-velocity.c 2006-06-22 22:06:19.415515133 +0100 >@@ -248,6 +248,7 @@ > static void velocity_free_tx_buf(struct velocity_info *vptr, struct velocity_td_info *); > static int velocity_soft_reset(struct velocity_info *vptr); > static void mii_init(struct velocity_info *vptr, u32 mii_status); >+static u32 velocity_get_link(struct net_device *dev); > static u32 velocity_get_opt_media_mode(struct velocity_info *vptr); > static void velocity_print_link_status(struct velocity_info *vptr); > static void safe_disable_mii_autopoll(struct mac_regs __iomem * regs); >@@ -798,6 +799,9 @@ > if (ret < 0) > goto err_iounmap; > >+ if (velocity_get_link(dev)) >+ netif_carrier_off(dev); >+ > velocity_print_info(vptr); > pci_set_drvdata(pdev, dev); > >@@ -1653,8 +1657,10 @@ > > if (linked) { > vptr->mii_status &= ~VELOCITY_LINK_FAIL; >+ netif_carrier_on(vptr->dev); > } else { > vptr->mii_status |= VELOCITY_LINK_FAIL; >+ netif_carrier_off(vptr->dev); > } > > velocity_print_link_status(vptr);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 137702
: 89889