From patchwork Mon Nov 24 14:34:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emmanuel Grumbach X-Patchwork-Id: 5367131 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 909E0C11AC for ; Mon, 24 Nov 2014 14:37:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BAC67203EB for ; Mon, 24 Nov 2014 14:36:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E1C0820395 for ; Mon, 24 Nov 2014 14:36:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932362AbaKXOgu (ORCPT ); Mon, 24 Nov 2014 09:36:50 -0500 Received: from mail-wg0-f46.google.com ([74.125.82.46]:54088 "EHLO mail-wg0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932357AbaKXOgs (ORCPT ); Mon, 24 Nov 2014 09:36:48 -0500 Received: by mail-wg0-f46.google.com with SMTP id x12so12358023wgg.19 for ; Mon, 24 Nov 2014 06:36:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=FxD5IEWWq/n3Olyd9FV7LA8APMX+wtxswJKVq4dRygg=; b=a8OgrizzhPqw67FAsLGWpp85KmSt5jOOeAM4GoSp+kw+ZoZYEp35D2Y4Eita5a2/WM EaJbiugdzVo1mSJq0EBs9N6pF1D8LBrPDS94X/eTC3pBZvdxriOsrfKbzzz/5ikXT+Kt 6C5Jj4Vafy1mpFglEv7/qU0KGBGkVs0AhDRmYdYDHOAhqo1lEpTS7GuXy3eCh7Rx4iHI d/qeMtGB+YasmxMebBJkjAOQHiZaEQEfAf7JprqJ9tUQRA4v/WdCYoKNygVYduOSwU8m r1kjdcstumYd1h266uojOp1e2kQo6qvVhe6QahStvIdHkHT9U34hWkiyjR29/0XUF77/ xeyQ== X-Received: by 10.180.107.193 with SMTP id he1mr21767287wib.27.1416839807539; Mon, 24 Nov 2014 06:36:47 -0800 (PST) Received: from localhost.localdomain (46-116-150-134.bb.netvision.net.il. [46.116.150.134]) by mx.google.com with ESMTPSA id n3sm21274744wjz.21.2014.11.24.06.36.46 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 24 Nov 2014 06:36:46 -0800 (PST) From: Emmanuel Grumbach To: linux-wireless@vger.kernel.org Cc: Eliad Peller , Eliad Peller , Emmanuel Grumbach Subject: [PATCH 69/75] iwlwifi: mvm: call iwl_trans_suspend/resume Date: Mon, 24 Nov 2014 16:34:45 +0200 Message-Id: <1416839691-28533-69-git-send-email-egrumbach@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: References: Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Eliad Peller call the appropriate iwl_trans_suspend/resume ops on iwl_mvm_suspend/resume calls. Signed-off-by: Eliad Peller Reviewed-by: Johannes Berg Signed-off-by: Emmanuel Grumbach --- drivers/net/wireless/iwlwifi/mvm/d3.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/wireless/iwlwifi/mvm/d3.c b/drivers/net/wireless/iwlwifi/mvm/d3.c index 176556e..60748bd 100644 --- a/drivers/net/wireless/iwlwifi/mvm/d3.c +++ b/drivers/net/wireless/iwlwifi/mvm/d3.c @@ -1116,6 +1116,7 @@ int iwl_mvm_suspend(struct ieee80211_hw *hw, struct cfg80211_wowlan *wowlan) { struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); + iwl_trans_suspend(mvm->trans); if (iwl_mvm_is_d0i3_supported(mvm)) { mutex_lock(&mvm->d0i3_suspend_mutex); __set_bit(D0I3_DEFER_WAKEUP, &mvm->d0i3_suspend_flags); @@ -1739,6 +1740,8 @@ int iwl_mvm_resume(struct ieee80211_hw *hw) { struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); + iwl_trans_resume(mvm->trans); + if (iwl_mvm_is_d0i3_supported(mvm)) return 0;