diff options
author | Marek Puzyniak <marek.puzyniak@tieto.com> | 2014-02-10 11:14:24 -0500 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2014-02-13 10:24:17 -0500 |
commit | 00f5482bcd940c11b9b81e7c399fd5f4f6667bd0 (patch) | |
tree | 1209170c2d7692f5345fdb5a22bd5ce91037fa59 /drivers/net/wireless/ath/ath10k/wmi.c | |
parent | 9042e17df8340247ebed9c67f4b64228f16b4c36 (diff) |
ath10k: suspend hardware before reset
In case of warm reset target need to be suspended.
Suspend function is extented to handle both cases
with disabling interrupts and without disabling interrupts.
Warm target reset requires suspend with all interrupts
disabled.
This patch depends on
ath10k: fix device initialization routine
Signed-off-by: Marek Puzyniak <marek.puzyniak@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/wmi.c')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/wmi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c index b3c5a1faad43..91e501b5499e 100644 --- a/drivers/net/wireless/ath/ath10k/wmi.c +++ b/drivers/net/wireless/ath/ath10k/wmi.c | |||
@@ -2443,7 +2443,7 @@ int ath10k_wmi_pdev_set_channel(struct ath10k *ar, | |||
2443 | ar->wmi.cmd->pdev_set_channel_cmdid); | 2443 | ar->wmi.cmd->pdev_set_channel_cmdid); |
2444 | } | 2444 | } |
2445 | 2445 | ||
2446 | int ath10k_wmi_pdev_suspend_target(struct ath10k *ar) | 2446 | int ath10k_wmi_pdev_suspend_target(struct ath10k *ar, u32 suspend_opt) |
2447 | { | 2447 | { |
2448 | struct wmi_pdev_suspend_cmd *cmd; | 2448 | struct wmi_pdev_suspend_cmd *cmd; |
2449 | struct sk_buff *skb; | 2449 | struct sk_buff *skb; |
@@ -2453,7 +2453,7 @@ int ath10k_wmi_pdev_suspend_target(struct ath10k *ar) | |||
2453 | return -ENOMEM; | 2453 | return -ENOMEM; |
2454 | 2454 | ||
2455 | cmd = (struct wmi_pdev_suspend_cmd *)skb->data; | 2455 | cmd = (struct wmi_pdev_suspend_cmd *)skb->data; |
2456 | cmd->suspend_opt = WMI_PDEV_SUSPEND; | 2456 | cmd->suspend_opt = __cpu_to_le32(suspend_opt); |
2457 | 2457 | ||
2458 | return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->pdev_suspend_cmdid); | 2458 | return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->pdev_suspend_cmdid); |
2459 | } | 2459 | } |