From patchwork Mon Oct 3 18:00:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Minor X-Patchwork-Id: 9360775 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 92C08607D8 for ; Mon, 3 Oct 2016 18:01:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 70AB1287E2 for ; Mon, 3 Oct 2016 18:01:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 657832888D; Mon, 3 Oct 2016 18:01:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B08D7287E2 for ; Mon, 3 Oct 2016 18:01:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752339AbcJCSBP (ORCPT ); Mon, 3 Oct 2016 14:01:15 -0400 Received: from skprod2.natinst.com ([130.164.80.23]:58740 "EHLO ni.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751657AbcJCSBM (ORCPT ); Mon, 3 Oct 2016 14:01:12 -0400 Received: from us-aus-mgwout2.amer.corp.natinst.com (nb-snip2-1338.natinst.com [130.164.19.135]) by us-aus-skprod2.natinst.com (8.15.0.59/8.15.0.59) with ESMTP id u93I0oOo018815; Mon, 3 Oct 2016 13:00:50 -0500 Received: from kal9064.amer.corp.natinst.com ([130.164.14.198]) by us-aus-mgwout2.amer.corp.natinst.com (Lotus Domino Release 8.5.3FP6 HF1218) with ESMTP id 2016100313005068-548814 ; Mon, 3 Oct 2016 13:00:50 -0500 From: James Minor To: linux-wireless@vger.kernel.org, ath6kl@lists.infradead.org Cc: kvalo@qca.qualcomm.com, julia.cartwright@ni.com, steve.derosier@lairdtech.com, James Minor Subject: [PATCH 2/3] ath6kl: after cleanup properly reflect that sg is disabled Date: Mon, 3 Oct 2016 13:00:03 -0500 Message-Id: <1475517604-17710-3-git-send-email-james.minor@ni.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1475517604-17710-1-git-send-email-james.minor@ni.com> References: <1475510510-16906-1-git-send-email-james.minor@ni.com> <1475517604-17710-1-git-send-email-james.minor@ni.com> X-MIMETrack: Itemize by SMTP Server on US-AUS-MGWOut2/AUS/H/NIC(Release 8.5.3FP6 HF1218|December 12, 2014) at 10/03/2016 01:00:50 PM, Serialize by Router on US-AUS-MGWOut2/AUS/H/NIC(Release 8.5.3FP6 HF1218|December 12, 2014) at 10/03/2016 01:00:50 PM, Serialize complete at 10/03/2016 01:00:50 PM X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2016-10-03_10:, , signatures=0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This allows the hardware to be restarted, as it will cause the sg to be reinitialized. Signed-off-by: James Minor Reviewed-by: Steve deRosier --- drivers/net/wireless/ath/ath6kl/sdio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/ath/ath6kl/sdio.c b/drivers/net/wireless/ath/ath6kl/sdio.c index 96ed060..8261e24 100644 --- a/drivers/net/wireless/ath/ath6kl/sdio.c +++ b/drivers/net/wireless/ath/ath6kl/sdio.c @@ -714,6 +714,8 @@ static void ath6kl_sdio_cleanup_scatter(struct ath6kl *ar) spin_lock_bh(&ar_sdio->scat_lock); } spin_unlock_bh(&ar_sdio->scat_lock); + + ar_sdio->scatter_enabled = false; } /* setup of HIF scatter resources */