Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 315321
b: refs/heads/master
c: 4455556
h: refs/heads/master
i:
  315319: 27c4804
v: v3
  • Loading branch information
Arik Nemtsov authored and John W. Linville committed Jul 10, 2012
1 parent 5cc4502 commit 9a2f0e2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c45ee4ff1f66b2a02f51b8a2c1c3dcfd7faefab0
refs/heads/master: 4455556d71951cfb6010e267efd00a52b63c2c20
12 changes: 6 additions & 6 deletions trunk/drivers/net/wireless/ti/wlcore/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ static inline int __must_check wlcore_raw_write(struct wl1271 *wl, int addr,
{
int ret;

if (test_bit(WL1271_FLAG_SDIO_FAILED, &wl->flags))
if (test_bit(WL1271_FLAG_IO_FAILED, &wl->flags))
return -EIO;

ret = wl->if_ops->write(wl->dev, addr, buf, len, fixed);
if (ret)
set_bit(WL1271_FLAG_SDIO_FAILED, &wl->flags);
if (ret && wl->state != WL1271_STATE_OFF)
set_bit(WL1271_FLAG_IO_FAILED, &wl->flags);

return ret;
}
Expand All @@ -76,12 +76,12 @@ static inline int __must_check wlcore_raw_read(struct wl1271 *wl, int addr,
{
int ret;

if (test_bit(WL1271_FLAG_SDIO_FAILED, &wl->flags))
if (test_bit(WL1271_FLAG_IO_FAILED, &wl->flags))
return -EIO;

ret = wl->if_ops->read(wl->dev, addr, buf, len, fixed);
if (ret)
set_bit(WL1271_FLAG_SDIO_FAILED, &wl->flags);
if (ret && wl->state != WL1271_STATE_OFF)
set_bit(WL1271_FLAG_IO_FAILED, &wl->flags);

return ret;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/wireless/ti/wlcore/wlcore_i.h
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ enum wl12xx_flags {
WL1271_FLAG_RECOVERY_IN_PROGRESS,
WL1271_FLAG_VIF_CHANGE_IN_PROGRESS,
WL1271_FLAG_INTENDED_FW_RECOVERY,
WL1271_FLAG_SDIO_FAILED,
WL1271_FLAG_IO_FAILED,
};

enum wl12xx_vif_flags {
Expand Down

0 comments on commit 9a2f0e2

Please sign in to comment.