]> git.baikalelectronics.ru Git - kernel.git/commit
wlcore: Change read/write ops to return errors
authorIdo Yariv <ido@wizery.com>
Sun, 17 Jun 2012 17:30:05 +0000 (20:30 +0300)
committerLuciano Coelho <coelho@ti.com>
Fri, 22 Jun 2012 07:46:34 +0000 (10:46 +0300)
commitf622aa6bccc970d4531dfce7af686e1d91292a6e
treef30719415a295a56e919ec475b7e44229e445873
parent72860cb9ba2a0533e6d6fd9f0f42c633ff7c3197
wlcore: Change read/write ops to return errors

While bus operations may fail, either due to HW or FW issues, these are
never propagated to higher layers. As a result, the core driver has no
way of knowing that the operations failed, and will only recover if high
level logic requires it (e.g. no command completion).

Change read/write bus operations to return errors to let higher layer
functionality handle these.

Signed-off-by: Ido Yariv <ido@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/ti/wlcore/sdio.c
drivers/net/wireless/ti/wlcore/spi.c
drivers/net/wireless/ti/wlcore/wlcore_i.h