bnx2: Prevent ethtool -s from crashing when device is down.
authorMichael Chan <mchan@broadcom.com>
Tue, 15 Jul 2008 05:37:21 +0000 (22:37 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Jul 2008 05:37:21 +0000 (22:37 -0700)
commitd6b14486953d0e8d1c57db29bf6104cea198b884
tree1277536d725fe38f59b23e5f578d3b3924f79aeb
parent925068dcdc746236264d1877d3d5df656e87882a
bnx2: Prevent ethtool -s from crashing when device is down.

The device may be in D3-hot state and may crash if we try to
configure the speed settings by accessing the registers.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2.c