]> git.baikalelectronics.ru Git - kernel.git/commit
wlcore: cancel Tx watchdog on suspend and rearm on first Tx after
authorArik Nemtsov <arik@wizery.com>
Mon, 10 Feb 2014 11:47:18 +0000 (13:47 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 13 Feb 2014 20:20:14 +0000 (15:20 -0500)
commitc08fe2b6825aaf3c3ce5b089e372bc8c31095e9d
tree8677c171bdd00c83f525f4e1e2cfb2093ed25cd8
parentff706bfd31712dfada2bace13032832e87c4853e
wlcore: cancel Tx watchdog on suspend and rearm on first Tx after

Sometimes a tx_flush during suspend fails, but the FW manages to flush
out the packets during the time when the host is supsended. Cancel
the Tx-watchdog on suspend to not cause a spurious recovery on resume
for that case. Set a flag to reinit the watchdog on the first Tx after
resume, so we'll still recover if the FW is not empty and there's
indeed a problem.

Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ti/wlcore/main.c
drivers/net/wireless/ti/wlcore/tx.c
drivers/net/wireless/ti/wlcore/wlcore_i.h