]> git.karo-electronics.de Git - linux-beck.git/commit
sfc: QT2025C: Switch into self-configure mode when not in loopback
authorMatthew Slattery <mslattery@solarflare.com>
Wed, 23 Dec 2009 13:48:04 +0000 (13:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Dec 2009 03:09:06 +0000 (19:09 -0800)
commit0d83b2f64c330ee3892cb3117ac5d56e97185ecf
tree40d511c2dd7d565330771a82165b6a26dfb8928c
parent17d6aeafe9d8268612d91edc0102659edb382282
sfc: QT2025C: Switch into self-configure mode when not in loopback

The PHY boots in a mode which is not necessarily optimal.  This change
switches it to self-configure mode (except when in loopback, which
won't work in that mode if an SFP+ module is not present) by rebooting
the PHY's microcontroller, and replicating the sequence of configuration
writes from the boot EEPROM with the appropriate changes.

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