From patchwork Sun Dec 31 17:29:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Erik Stromdahl X-Patchwork-Id: 10138241 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 8E74960362 for ; Sun, 31 Dec 2017 17:31:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 76B1E2886B for ; Sun, 31 Dec 2017 17:31:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6BA612887A; Sun, 31 Dec 2017 17:31:52 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, 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 23BD82886B for ; Sun, 31 Dec 2017 17:31:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751155AbdLaRbu (ORCPT ); Sun, 31 Dec 2017 12:31:50 -0500 Received: from mail-lf0-f65.google.com ([209.85.215.65]:43985 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751119AbdLaRbs (ORCPT ); Sun, 31 Dec 2017 12:31:48 -0500 Received: by mail-lf0-f65.google.com with SMTP id o26so38041812lfc.10 for ; Sun, 31 Dec 2017 09:31:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=l2hAtka9SIEUzMkzym19og+WiPJsjFdinCfaaiX59Io=; b=QB1yRMRBNL1YhYhihnFdlfV+xfywtyqaM0Yy5p4KFNc3tG4QlngSZFdZHW4Mri8ae1 mE369mvJNu3d1XSGtXHfGxwbhfCOhTz6RTNiAMolHj9BjuaJdeqs/CHPuyUlA2relWw1 uAkYwud8bTn8EtzRb+0wPojaPZLtdcHaMrdnhm0ge/6zOsycULBNE+B+GR9yGvFq0KXc n7z8YNLdZEHfluFO+OpgCFVJduAGIUvdC+uibE718vVWmMJwYsaDFNkP7d1+y34Daa7s g/1lNiwaxxmdbYtKBci5yW1uTEU6hMGbt0TJO38Ksw0+i8j9rmJldemzF4UYnN+odCih YCiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=l2hAtka9SIEUzMkzym19og+WiPJsjFdinCfaaiX59Io=; b=Nmt9BT2peUui6ak9LONA19Uo8AQHPNxGPgGOdoRV1FocvTscpT0olNDoebM9Xm4tg7 6lvR+ijanrX1I9TRrP3iDGq3YPoZCAqIB67P6KD+t3paOPLstHVLzE0Yy7CCh9S2Ri7I 4J28398/nH11wYjaesymRNli3H0LVyTWxLKUeZKaHy6C+FtOj3CnFEGExfOY75MqebTg dsYKCua5nerTQaOOetxM/LSwAOb15Yde02n11ZpRVeQAamySI9g+XgQ/NEoUyRy/1ca9 TSIJ4+1zM6OSnC4Yi7qkq8JBzjfjWFaMMxzOkXEGbGpd6seOKYy4jJxZhxHLkgszv3xK tvQA== X-Gm-Message-State: AKGB3mJjYPVf0GXFDVe+5bvHryacR2LS8Y+4ggLkR+5G6MqaGptAfT8B 27OIqnuvdZxhJtlLTu9u3tc= X-Google-Smtp-Source: ACJfBotfzHHP6pvZf4GfmI0SEM9cMeQlQOM2gUsbcALqeeVUmKupO9sSnFCgFwkYsYtcSdQzElQvXg== X-Received: by 10.25.26.211 with SMTP id a202mr15335935lfa.105.1514741507126; Sun, 31 Dec 2017 09:31:47 -0800 (PST) Received: from localhost.localdomain (90-227-62-61-no75.tbcn.telia.com. [90.227.62.61]) by smtp.gmail.com with ESMTPSA id o64sm5048449lfo.53.2017.12.31.09.31.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 31 Dec 2017 09:31:46 -0800 (PST) From: Erik Stromdahl To: kvalo@qca.qualcomm.com, linux-wireless@vger.kernel.org, ath10k@lists.infradead.org Cc: Erik Stromdahl Subject: [RFC v4 15/18] ath10k: wmi: disable softirq's while calling ieee80211_rx Date: Sun, 31 Dec 2017 18:29:22 +0100 Message-Id: <20171231172925.24014-16-erik.stromdahl@gmail.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20171231172925.24014-1-erik.stromdahl@gmail.com> References: <20171231172925.24014-1-erik.stromdahl@gmail.com> 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 is done in order not to trig the below warning in ieee80211_rx_napi: WARN_ON_ONCE(softirq_count() == 0); ieee80211_rx_napi requires that softirq's are disabled during execution. Signed-off-by: Erik Stromdahl --- drivers/net/wireless/ath/ath10k/wmi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c index 58dc2189ba49..3a81d106789d 100644 --- a/drivers/net/wireless/ath/ath10k/wmi.c +++ b/drivers/net/wireless/ath/ath10k/wmi.c @@ -2409,7 +2409,8 @@ int ath10k_wmi_event_mgmt_rx(struct ath10k *ar, struct sk_buff *skb) status->freq, status->band, status->signal, status->rate_idx); - ieee80211_rx(ar->hw, skb); + ieee80211_rx_ni(ar->hw, skb); + return 0; }