sfc: QT202x: Reset before reading PHY id
authorSteve Hodgson <shodgson@solarflare.com>
Sat, 28 Nov 2009 05:34:29 +0000 (05:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 29 Nov 2009 07:58:50 +0000 (23:58 -0800)
commit47c3d19f60da7cc018781744b1ffb3b557373e7f
tree0148d3543cb4745f8119c4ccc056f39dc5f3e5de
parentfdaa9aed21c8c8b529f3c94a5ffa138bf3360b75
sfc: QT202x: Reset before reading PHY id

Reading standard registers on the QT2025C before its firmware has
booted may cause the boot process to fail.  Therefore, follow the
recommended reset sequence before reading its id registers.  Either
order works for the QT2022C2, so don't differentiate.

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