/* * This header provides constants for the reset controller * based peripheral powerdown requests on the STMicroelectronics * STiH415 SoC. */ #ifndef _DT_BINDINGS_RESET_CONTROLLER_STIH415 #define _DT_BINDINGS_RESET_CONTROLLER_STIH415 #define STIH415_EMISS_POWERDOWN 0 #define STIH415_NAND_POWERDOWN 1 #define STIH415_KEYSCAN_POWERDOWN 2 #define STIH415_USB0_POWERDOWN 3 #define STIH415_USB1_POWERDOWN 4 #define STIH415_USB2_POWERDOWN 5 #define STIH415_SATA0_POWERDOWN 6 #define STIH415_SATA1_POWERDOWN 7 #define STIH415_PCIE_POWERDOWN 8 #define STIH415_ETH0_SOFTRESET 0 #define STIH415_ETH1_SOFTRESET 1 #define STIH415_IRB_SOFTRESET 2 #define STIH415_USB0_SOFTRESET 3 #define STIH415_USB1_SOFTRESET 4 #define STIH415_USB2_SOFTRESET 5 #define STIH415_KEYSCAN_SOFTRESET 6 #endif /* _DT_BINDINGS_RESET_CONTROLLER_STIH415 */ > net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLior David <qca_liord@qca.qualcomm.com>2017-01-20 13:49:48 +0200
committerKalle Valo <kvalo@qca.qualcomm.com>2017-01-27 19:49:39 +0200
commit4d4c4dc324b4444d40e9164834044feebaf2d72d (patch)
treebbcc4458045a7f618c8e60491665637dd4cb2d95
parent0d2370e939acca97b5e1abc1aedd47c5c9a5f500 (diff)
wil6210: missing reinit_completion in wmi_call
The code in wmi_call uses the wil->wmi_call completion structure to wait for a reply. In some scenarios, complete was called twice on the completion structure. This happened mainly with a disconnect event which can arrive both unsolicited and as a reply to a disconnect request. In this case the completion structure was left marked as "done" and the next wmi_call returned immediately with a corrupted reply buffer. This caused unexpected results including crashes. Fix this by adding the missing call to reinit_completion. Signed-off-by: Lior David <qca_liord@qca.qualcomm.com> Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat
-rw-r--r--drivers/net/wireless/ath/wil6210/wmi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/wil6210/wmi.c b/drivers/net/wireless/ath/wil6210/wmi.c