]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commitf8dd0ecbb74d4b220b105d77c0633945ebb5453e
tree967cf1edddd83c99f3b579747dd2f70c7f96aadc
parentaa1eb452e8d8a97ee65ace0054e7a733ae12cf6d
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