sfc: Simplify PHY polling
authorSteve Hodgson <shodgson@solarflare.com>
Sat, 28 Nov 2009 05:34:05 +0000 (05:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 29 Nov 2009 07:58:50 +0000 (23:58 -0800)
Falcon can generate events for LASI interrupts from the PHY, but in
practice we have never implemented this in reference designs.  Instead
we have polled, inserted the appropriate events, and then handled the
events later.  This is a waste of time and code.

Instead, make PHY poll functions update the link state synchronously
and report whether it changed.  We can still make use of the LASI
registers as a shortcut on the SFT9001.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found