brcmfmac: reinit watchdog completion after handling watchdog
authorArend van Spriel <arend@broadcom.com>
Thu, 20 Mar 2014 09:18:01 +0000 (10:18 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 20 Mar 2014 15:55:40 +0000 (11:55 -0400)
commit58e9df462fd70a1862378beb46b312f1f6bca94f
tree981379ee331ebbcdcc47fddb790f60d0d7a94394
parentd23536796011cbeeb93fc866446800c52deb5603
brcmfmac: reinit watchdog completion after handling watchdog

The watchdog thread waits on completion that is set from a timer. As
the completion is count based this could mean that on a busy system
the watchdog is handled multiple times with a very short interval.
This is not the intended behaviour. After handling the watchdog it
should wait for the next timer expiry. This is accomplished by
reinitializing the completion.

Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/dhd_sdio.c