From: Helmut Schaa <helmut.schaa@googlemail.com>
To: ipw3945-devel@lists.sourceforge.net
Cc: Reinette Chatre <reinette.chatre@intel.com>,
linville@tuxdriver.com, Samuel Ortiz <samuel.ortiz@intel.com>,
linux-wireless@vger.kernel.org
Subject: Re: [ipw3945-devel] [PATCH 4/5] iwl3945: Use iwl-rfkill
Date: Wed, 21 Jan 2009 08:01:22 +0100 [thread overview]
Message-ID: <200901210801.23236.helmut.schaa@gmail.com> (raw)
In-Reply-To: <1232516035-25524-5-git-send-email-reinette.chatre@intel.com>
Hi,
Am Mittwoch, 21. Januar 2009 schrieb Reinette Chatre:
> From: Samuel Ortiz <samuel.ortiz@intel.com>
>
> Here again, the rfkill routines are duplicated between agn and 3945. Let's
> move the agn one to iwlcore, and so we can get rid of the 3945 ones.
[...]
> +void iwl_bg_rf_kill(struct work_struct *work)
> +{
> + struct iwl_priv *priv = container_of(work, struct iwl_priv, rf_kill);
> +
> + wake_up_interruptible(&priv->wait_command_queue);
> +
> + if (test_bit(STATUS_EXIT_PENDING, &priv->status))
> + return;
> +
> + mutex_lock(&priv->mutex);
> +
> + if (!iwl_is_rfkill(priv)) {
> + IWL_DEBUG(IWL_DL_RF_KILL,
> + "HW and/or SW RF Kill no longer active, restarting "
> + "device\n");
> + if (!test_bit(STATUS_EXIT_PENDING, &priv->status))
> + queue_work(priv->workqueue, &priv->restart);
I've changed this check in both rf-kill patches (3945 and agn) to
if (!test_bit(STATUS_EXIT_PENDING, &priv->status) &&
test_bit(STATUS_ALIVE, &priv->status))
in order to avoid restarting the adapter when notified about rfkill changes
by interrupt/polling.
I guess this is just an oversight, right?
Thanks,
Helmut
next prev parent reply other threads:[~2009-01-21 7:01 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-21 5:33 [PATCH 0/5] iwlwifi driver updates 01/20/2009 Reinette Chatre
2009-01-21 5:33 ` [PATCH 1/5] iwlwifi: fix rs_get_rate WARN_ON() Reinette Chatre
2009-01-21 5:33 ` [PATCH 2/5] iwlwifi: allow user to set max rate Reinette Chatre
2009-01-21 5:33 ` [PATCH 3/5] iwlagn: fix agn rate scaling Reinette Chatre
2009-01-21 5:33 ` [PATCH 4/5] iwl3945: Use iwl-rfkill Reinette Chatre
2009-01-21 5:33 ` [PATCH 5/5] iwl3945: fix deep sleep when removing the driver Reinette Chatre
2009-01-21 7:01 ` Helmut Schaa [this message]
2009-01-21 14:49 ` [ipw3945-devel] [PATCH 4/5] iwl3945: Use iwl-rfkill Samuel Ortiz
[not found] ` <2d0a357f0901210532v3ac57896ia3a75c9911267edb@mail.gmail.com>
2009-01-21 15:41 ` Samuel Ortiz
2009-01-21 16:57 ` Sedat Dilek
2009-01-21 17:58 ` Samuel Ortiz
2009-01-21 18:31 ` Sedat Dilek
2009-01-21 17:27 ` [PATCH v2 " Samuel Ortiz
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=200901210801.23236.helmut.schaa@gmail.com \
--to=helmut.schaa@googlemail.com \
--cc=ipw3945-devel@lists.sourceforge.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=reinette.chatre@intel.com \
--cc=samuel.ortiz@intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.