From: "Luis R. Rodriguez" <lrodriguez@atheros.com>
To: "Luis R. Rodriguez" <lrodriguez@atheros.com>
Cc: linville@tuxdriver.com, linux-wireless@vger.kernel.org,
vasanth@atheros.com, Sujith.Manoharan@atheros.com
Subject: Re: [PATCH 1/6] ath9k: move common->debug_mask setting to ath_init_softc()
Date: Thu, 8 Oct 2009 00:34:26 -0400 [thread overview]
Message-ID: <20091008043426.GA5760@bombadil.infradead.org> (raw)
In-Reply-To: <1254878351-32433-2-git-send-email-lrodriguez@atheros.com>
On Tue, Oct 06, 2009 at 09:19:06PM -0400, Luis R. Rodriguez wrote:
> What this means is we can enable now debug prints without
> requiring CONFIG_ATH9K_DEBUG.
>
> Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
> +MODULE_PARM_DESC(ath9k_debug, "Debugging mask");
John, as sujith notes, this should be MODULE_PARM_DESC(debug ...
Thanks sujith.
so here's v2:
From: Luis R. Rodriguez <lrodriguez@atheros.com>
Subject: [PATCH v2 1/6] ath9k: move common->debug_mask setting to ath_init_softc()
What this means is we can enable now debug prints without
requiring CONFIG_ATH9K_DEBUG.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
---
drivers/net/wireless/ath/ath9k/debug.c | 5 -----
drivers/net/wireless/ath/ath9k/main.c | 5 +++++
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/net/wireless/ath/ath9k/debug.c b/drivers/net/wireless/ath/ath9k/debug.c
index 25ae88e..84f4426 100644
--- a/drivers/net/wireless/ath/ath9k/debug.c
+++ b/drivers/net/wireless/ath/ath9k/debug.c
@@ -23,9 +23,6 @@
#define REG_READ_D(_ah, _reg) \
ath9k_hw_common(_ah)->ops->read((_ah), (_reg))
-static unsigned int ath9k_debug = ATH_DBG_DEFAULT;
-module_param_named(debug, ath9k_debug, uint, 0);
-
static struct dentry *ath9k_debugfs_root;
static int ath9k_debugfs_open(struct inode *inode, struct file *file)
@@ -565,8 +562,6 @@ int ath9k_init_debug(struct ath_hw *ah)
struct ath_common *common = ath9k_hw_common(ah);
struct ath_softc *sc = (struct ath_softc *) common->priv;
- common->debug_mask = ath9k_debug;
-
if (!ath9k_debugfs_root)
return -ENOENT;
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
index 86374ad..aeda541 100644
--- a/drivers/net/wireless/ath/ath9k/main.c
+++ b/drivers/net/wireless/ath/ath9k/main.c
@@ -29,6 +29,10 @@ static int modparam_nohwcrypt;
module_param_named(nohwcrypt, modparam_nohwcrypt, int, 0444);
MODULE_PARM_DESC(nohwcrypt, "Disable hardware encryption");
+static unsigned int ath9k_debug = ATH_DBG_DEFAULT;
+module_param_named(debug, ath9k_debug, uint, 0);
+MODULE_PARM_DESC(debug, "Debugging mask");
+
/* We use the hw_value as an index into our private channel structure */
#define CHAN2G(_freq, _idx) { \
@@ -1637,6 +1641,7 @@ static int ath_init_softc(u16 devid, struct ath_softc *sc, u16 subsysid,
common->ah = ah;
common->hw = sc->hw;
common->priv = sc;
+ common->debug_mask = ath9k_debug;
/*
* Cache line size is used to size and align various
--
1.6.0.4
next prev parent reply other threads:[~2009-10-08 4:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-07 1:19 [PATCH 0/6] ath9k: fix rmmod Luis R. Rodriguez
2009-10-07 1:19 ` [PATCH 1/6] ath9k: move common->debug_mask setting to ath_init_softc() Luis R. Rodriguez
2009-10-08 4:34 ` Luis R. Rodriguez [this message]
2009-10-08 4:58 ` Luis R. Rodriguez
2009-10-07 1:19 ` [PATCH 2/6] ath9k: initialize hw prior to debugfs Luis R. Rodriguez
2009-10-07 1:19 ` [PATCH 3/6] ath9k: add helper to un-init the hw properly Luis R. Rodriguez
2009-10-07 1:19 ` [PATCH 4/6] ath9k: add a helper to clean the core driver upon module unload Luis R. Rodriguez
2009-10-07 1:19 ` [PATCH 5/6] ath9k: move ath_cleanup() below helpers to avoid forward declarations Luis R. Rodriguez
2009-10-07 1:19 ` [PATCH 6/6] ath9k: rename ath_beaconq_setup() to ath9k_hw_beaconq_setup() Luis R. Rodriguez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091008043426.GA5760@bombadil.infradead.org \
--to=lrodriguez@atheros.com \
--cc=Sujith.Manoharan@atheros.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=vasanth@atheros.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox