Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268353
b: refs/heads/master
c: 98ae8a0
h: refs/heads/master
i:
  268351: 8f580e1
v: v3
  • Loading branch information
Arend van Spriel authored and Greg Kroah-Hartman committed Sep 12, 2011
1 parent 79fe0c2 commit b077b62
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 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: e99cab09d0ecf91f780075f371a8bc48465d25af
refs/heads/master: 98ae8a0bf1d2670630023aefb02d75a329fd7271
9 changes: 4 additions & 5 deletions trunk/drivers/staging/brcm80211/brcmfmac/dhd_sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,7 @@ struct brcmf_bus {
struct completion watchdog_wait;
struct task_struct *watchdog_tsk;
bool wd_timer_valid;
uint save_ms;

struct tasklet_struct tasklet;
struct task_struct *dpc_tsk;
Expand Down Expand Up @@ -5031,8 +5032,6 @@ brcmf_sdbrcm_watchdog(unsigned long data)
void
brcmf_sdbrcm_wd_timer(struct brcmf_bus *bus, uint wdtick)
{
static uint save_ms;

/* don't start the wd until fw is loaded */
if (bus->drvr->busstate == BRCMF_BUS_DOWN)
return;
Expand All @@ -5041,14 +5040,14 @@ brcmf_sdbrcm_wd_timer(struct brcmf_bus *bus, uint wdtick)
if (!wdtick && bus->wd_timer_valid == true) {
del_timer_sync(&bus->timer);
bus->wd_timer_valid = false;
save_ms = wdtick;
bus->save_ms = wdtick;
return;
}

if (wdtick) {
brcmf_watchdog_ms = (uint) wdtick;

if (save_ms != brcmf_watchdog_ms) {
if (bus->save_ms != brcmf_watchdog_ms) {
if (bus->wd_timer_valid == true)
/* Stop timer and restart at new value */
del_timer_sync(&bus->timer);
Expand All @@ -5067,7 +5066,7 @@ brcmf_sdbrcm_wd_timer(struct brcmf_bus *bus, uint wdtick)
}

bus->wd_timer_valid = true;
save_ms = wdtick;
bus->save_ms = wdtick;
}
}

Expand Down

0 comments on commit b077b62

Please sign in to comment.