Received: by 10.223.164.202 with SMTP id h10csp1985392wrb; Mon, 27 Nov 2017 10:07:10 -0800 (PST) X-Google-Smtp-Source: AGs4zMbXfqzy/kWKnjb0D/nZC0TAvniZLd1Advo5fYx/xNuX8FaMULODAuUNyNd7eZ++TKmJ2VPk X-Received: by 10.101.81.1 with SMTP id f1mr6183305pgq.24.1511806030448; Mon, 27 Nov 2017 10:07:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511806030; cv=none; d=google.com; s=arc-20160816; b=tFmzBNamC2zkRwT51WZwhl414swbGxBz/fzgdwfHY8w7JYpKApmX5BF1ZzKa61gLO7 5gr8vZ+h57IiJ4skiblX+ZoeG1gGUG7EAl+OEw95yVTYklHKltOMgBUHxOd76C18haHV UofNCtOUiDTyhkyuVzzQeoA/IHsb70zBJkJkiHXQUURT+mReYCikUwCoZJHzQ4qHiZMI g2n3prSxQ5W8E51StrE4Irwjxkdj8543DaTF+LmN6hY0G3jYVRNblKb9Mq6afpoD7inM CvC7ilkJjmaO3x9dxFA0N2smjW5TjKuAkyln/V9IRSsToZfPcm29gKDXH14Joufnz+Qz CwGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=XjhNQ69TMbmYtBW1QiY9J/nZT9y7zIRq45WvHzijRwo=; b=pXCJ7IzTg1Z6bsF9Ow4rr57mOPe5LMaJDzA6LNbItdEtijvwwPkDIwT3uSS8yomSuf TOqlH2bqGoU7vJbPOR2d//ctnwrZMBb+Y9VHHxXafvO6vZAg21a89vIAP5KN5e6u1ygv hoGGkrfckhlUneHlfsyQWAnKh5IqdCtbZaDheHJP96Oylk9Ef5ZBivzc+7WhySxJ5ohI g7oKtVyA1a97DS+GakXsz5JV0hXGL2kOKCKwbXKDK/6gXVYSRHKaZ/4sgdKX47g4duup sMTonK6bUahC5GQGEUHUEaKWGf+TA6mOethnEVNza508jPTJA1WMVQZfeevg4Kb+QiAo GTSw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b96si2555747pli.574.2017.11.27.10.06.57; Mon, 27 Nov 2017 10:07:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932498AbdK0SFw (ORCPT + 78 others); Mon, 27 Nov 2017 13:05:52 -0500 Received: from chaos.universe-factory.net ([31.24.148.19]:38452 "EHLO chaos.universe-factory.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932331AbdK0SFt (ORCPT ); Mon, 27 Nov 2017 13:05:49 -0500 X-Greylist: delayed 556 seconds by postgrey-1.27 at vger.kernel.org; Mon, 27 Nov 2017 13:05:48 EST Received: from localhost.localdomain (unknown [IPv6:2a00:c1a0:8084:2700:688b:f9c4:45d6:d265]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by chaos.universe-factory.net (Postfix) with ESMTPSA id B401B187FD8; Mon, 27 Nov 2017 18:56:31 +0100 (CET) From: Matthias Schiffer To: kvalo@qca.qualcomm.com Cc: ath9k-devel@qca.qualcomm.com, ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, nbd@nbd.name Subject: [PATCH 3/3] ath10k: move spectral scan support under a separate config symbol Date: Mon, 27 Nov 2017 18:56:23 +0100 Message-Id: X-Mailer: git-send-email 2.15.0 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org At the moment, spectral scan support, and with it RELAY, is always enabled with ATH10K_DEBUGFS. Spectral scan support is currently the only user of RELAY in ath10k, and it unconditionally reserves a relay channel. Having debugfs support in ath10k is often useful even on very small embedded routers, where we'd rather like to avoid the code size and RAM usage of the relay support. While ath10k-based devices usually have more resources than ath9k-based ones, it makes sense to keep the configuration symmetric to ath9k, so the same base kernel without RELAY can be used for both ath9k and ath10k hardware. Signed-off-by: Matthias Schiffer --- checkpatch.pl wants me to write a more meaningful description for ATH10K_SPECTRAL, but I don't actually know enough about the spectral scan feature to do so... drivers/net/wireless/ath/ath10k/Kconfig | 9 ++++++++- drivers/net/wireless/ath/ath10k/Makefile | 2 +- drivers/net/wireless/ath/ath10k/spectral.h | 4 ++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/Kconfig b/drivers/net/wireless/ath/ath10k/Kconfig index 87f56d0e17a6..deb5ae21a559 100644 --- a/drivers/net/wireless/ath/ath10k/Kconfig +++ b/drivers/net/wireless/ath/ath10k/Kconfig @@ -47,12 +47,19 @@ config ATH10K_DEBUG config ATH10K_DEBUGFS bool "Atheros ath10k debugfs support" depends on ATH10K && DEBUG_FS - select RELAY ---help--- Enabled debugfs support If unsure, say Y to make it easier to debug problems. +config ATH10K_SPECTRAL + bool "Atheros ath10k spectral scan support" + depends on ATH10K_DEBUGFS + select RELAY + default n + ---help--- + Say Y to enable access to the FFT/spectral data via debugfs. + config ATH10K_TRACING bool "Atheros ath10k tracing support" depends on ATH10K diff --git a/drivers/net/wireless/ath/ath10k/Makefile b/drivers/net/wireless/ath/ath10k/Makefile index 899b9b79f4ce..af8f11970a08 100644 --- a/drivers/net/wireless/ath/ath10k/Makefile +++ b/drivers/net/wireless/ath/ath10k/Makefile @@ -14,7 +14,7 @@ ath10k_core-y += mac.o \ p2p.o \ swap.o -ath10k_core-$(CONFIG_ATH10K_DEBUGFS) += spectral.o +ath10k_core-$(CONFIG_ATH10K_SPECTRAL) += spectral.o ath10k_core-$(CONFIG_NL80211_TESTMODE) += testmode.o ath10k_core-$(CONFIG_ATH10K_TRACING) += trace.o ath10k_core-$(CONFIG_THERMAL) += thermal.o diff --git a/drivers/net/wireless/ath/ath10k/spectral.h b/drivers/net/wireless/ath/ath10k/spectral.h index 89b0ad769d4f..b2a2e8ae04b8 100644 --- a/drivers/net/wireless/ath/ath10k/spectral.h +++ b/drivers/net/wireless/ath/ath10k/spectral.h @@ -44,7 +44,7 @@ enum ath10k_spectral_mode { SPECTRAL_MANUAL, }; -#ifdef CONFIG_ATH10K_DEBUGFS +#ifdef CONFIG_ATH10K_SPECTRAL int ath10k_spectral_process_fft(struct ath10k *ar, struct wmi_phyerr_ev_arg *phyerr, @@ -85,6 +85,6 @@ static inline void ath10k_spectral_destroy(struct ath10k *ar) { } -#endif /* CONFIG_ATH10K_DEBUGFS */ +#endif /* CONFIG_ATH10K_SPECTRAL */ #endif /* SPECTRAL_H */ -- 2.15.0 From 1585213565439387498@xxx Mon Nov 27 10:11:03 +0000 2017 X-GM-THRID: 1585213565439387498 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread