]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
commitfdaa9aed21c8c8b529f3c94a5ffa138bf3360b75
tree6db7fd76481b3f87f0f4e94e1bd55c0624fba296
parent5e7565930524410f097f5b04f8aba663089a6ffc
sfc: Simplify PHY polling

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>
drivers/net/sfc/efx.c
drivers/net/sfc/efx.h
drivers/net/sfc/falcon.c
drivers/net/sfc/falcon.h
drivers/net/sfc/net_driver.h
drivers/net/sfc/qt202x_phy.c
drivers/net/sfc/tenxpress.c