smsc75xx: add explicit test that device is READY
authorSteve Glendinning <steve.glendinning@shawell.net>
Fri, 28 Sep 2012 00:57:51 +0000 (00:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Sep 2012 22:35:47 +0000 (18:35 -0400)
commit8762cec8d9d06eddc9a80293a230d6e073568815
treece3bc3c7ac52d0e59c54a6bdaeb8482b0ce7dfd5
parente0e474a83c18f134e42c4845e19d0ef0751f43f0
smsc75xx: add explicit test that device is READY

This patch adds an explicit test that the READY bit is set on
the device when attempting to initialize it.

If this bit is clear then the device hasn't succesfully started
all its clocks, and this patch helps make the resulting logged
error more helpful.

Signed-off-by: Steve Glendinning <steve.glendinning@shawell.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/smsc75xx.c