]> git.baikalelectronics.ru Git - kernel.git/commit
DM9000: Allow the use of the NSR register to get link status.
authorBen Dooks <ben-linux@fluff.org>
Tue, 24 Jun 2008 21:16:04 +0000 (22:16 +0100)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 25 Jun 2008 02:58:07 +0000 (22:58 -0400)
commit5b3d45ed1a9b28eaaabf189e48b45040e1b80b45
tree967cf1edddd83c99f3b579747dd2f70c7f96aadc
parenta706c1672b9ea3b0664196bf50f4ce27c5818c12
DM9000: Allow the use of the NSR register to get link status.

The DM9000's internal PHY reports a copy of the link status
in the NSR register of the chip. Reading the status when
polling for link status is faster as it eliminates the need
to sleep, but does not print as much information.

Add an platform flag to force this behaviour, and a Kconfig
option to allow it to be forced to the faster method always.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/Kconfig
drivers/net/dm9000.c
include/linux/dm9000.h