wlcore: don't set SDIO_FAILED flag when driver state is off
authorArik Nemtsov <arik@wizery.com>
Tue, 3 Jul 2012 06:00:18 +0000 (09:00 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 10 Jul 2012 16:10:14 +0000 (12:10 -0400)
commit4455556d71951cfb6010e267efd00a52b63c2c20
tree43215b3cbd2fa5a47316c8ca137a7546b49dd6c4
parentc45ee4ff1f66b2a02f51b8a2c1c3dcfd7faefab0
wlcore: don't set SDIO_FAILED flag when driver state is off

If some IO read/write fails while the FW is not loaded, a recovery
will not take place. This means the SDIO_FAILED flag will stay in place
forever and prevent further read/writes.

This can happen if a check for STATE_OFF was forgotten in some routine.

Take this opportunity to rename the flag to IO_FAILED, since we support
other buses as well.

Reported-by: Ido Yariv <ido@wizery.com>
Signed-off-by: Arik Nemtsov <arik@wizery.com>
drivers/net/wireless/ti/wlcore/io.h
drivers/net/wireless/ti/wlcore/wlcore_i.h