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)
commit02eb1d9d3bc307e2b540b8c095fa19342789f86d
treef30719415a295a56e919ec475b7e44229e445873
parentb666bb7f2fe2bdc0309b0d58afb48eae85d92221
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