]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
sundance: set carrier status on link change events
authorDan Nicholson <dbn.lists@gmail.com>
Wed, 20 Aug 2008 23:51:59 +0000 (16:51 -0700)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 24 Sep 2008 22:59:01 +0000 (18:59 -0400)
commit5050015597efb5e52a0b21e30a8adb2f7d7b7fba
tree21e5f3ce483a362e5d55a8a9ba448a89b451ec50
parentb39d66a81fb4f5ab555f86a2e49f3714f8369a3d
sundance: set carrier status on link change events

Check if the link is available when a changed interrupt has been received and
set the carrier status appropriately.  The code is copied nearly verbatim from
the dl2k module.  The link status could be used in more places in the driver,
but this is enough to get the carrier status reported to userspace.  Fixes
kernel bug #7487:

    http://bugzilla.kernel.org/show_bug.cgi?id=7487

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/sundance.c