]> git.baikalelectronics.ru Git - kernel.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)
commit1917be1160dfecc38c48f9ced8cdb3eb435117d7
tree21e5f3ce483a362e5d55a8a9ba448a89b451ec50
parent195e0d8fb083369f89023a3cd16d9efe510d6f43
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