]> rtime.felk.cvut.cz Git - can-eth-gw-linux.git/commit
smsc95xx: sleep before read for lengthy operations
authorSteve Glendinning <steve.glendinning@shawell.net>
Fri, 28 Sep 2012 00:07:07 +0000 (00:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Sep 2012 22:34:57 +0000 (18:34 -0400)
commitcf2acec2e90beffc20c8a63322f0a978ea4941df
tree118cf56ec3fc504f5c85f43a8af875975310dc58
parent6a06e5e1bb217be077e1f8ee2745b4c5b1aa02db
smsc95xx: sleep before read for lengthy operations

During init, the device reset is unexpected to complete immediately,
so sleep before testing the condition rather than after it.

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