]> git.baikalelectronics.ru Git - kernel.git/commit
wlcore: don't allow SDIO read/writes after failure
authorArik Nemtsov <arik@wizery.com>
Thu, 21 Jun 2012 15:10:48 +0000 (18:10 +0300)
committerLuciano Coelho <coelho@ti.com>
Sat, 23 Jun 2012 06:28:54 +0000 (09:28 +0300)
commitd50d77a178dd5ddeb923300a9a189d36ef04bea2
treecf797bb7a56a8f79e65e4503d4f739b4c8e748c1
parentabc66d0a16bb42f10eaaf10a72a6cb1e2c18b81e
wlcore: don't allow SDIO read/writes after failure

Set a flag and after the first read/write failure is encountered.
This flag will disallow further SDIO read/writes until op_stop() is
executed, which will clear all flags.

This prevents further errors from occurring, since one error usually
indicates that IO operations won't work anymore until the chip is
rebooted.  By blocking more calls, we avoid extra timeouts and having
to wait for them to occur.

[Added second paragraph explaining why the change is needed. -- Luca]

Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/ti/wlcore/io.h
drivers/net/wireless/ti/wlcore/wlcore_i.h