Hi James, Thanks for pointing out. John, Do you want me to send a follow up patch for this? Else I will fix this and send v2. Thanks, Avinash ________________________________________ From: quozl@xxxxxxxxxx [quozl@xxxxxxxxxx] Sent: Thursday, September 04, 2014 9:17 AM To: Avinash Patil Cc: linville@xxxxxxxxxxxxx; linux-wireless@xxxxxxxxxxxxxxx; Amitkumar Karwar; Xinming Hu; Marc Yang; Cathy Luo; Maithili Hinge Subject: Re: [PATCH 17/17] mwifiex: add rx workqueue support On Mon, Sep 01, 2014 at 06:29:05PM +0530, Avinash Patil wrote: > This patch adds RX work queue support to mwifiex. > Packets received are queued to internal queue which are then > processed by scheduling a work item for RX process. > > RX work is enabled only on SMP systems. > > Signed-off-by: Avinash Patil <patila@xxxxxxxxxxx> > Signed-off-by: Marc Yang <yangyang@xxxxxxxxxxx> > Signed-off-by: Cathy Luo <cluo@xxxxxxxxxxx> > --- > drivers/net/wireless/mwifiex/11n_rxreorder.c | 14 ++++ > drivers/net/wireless/mwifiex/init.c | 19 ++++++ > drivers/net/wireless/mwifiex/main.c | 95 ++++++++++++++++++++++++++++ > drivers/net/wireless/mwifiex/main.h | 14 ++++ > drivers/net/wireless/mwifiex/pcie.c | 12 +++- > drivers/net/wireless/mwifiex/sdio.c | 11 +++- > 6 files changed, 163 insertions(+), 2 deletions(-) > > [...] > diff --git a/drivers/net/wireless/mwifiex/main.c b/drivers/net/wireless/mwifiex/main.c > index fb38d81..2ed59a0 100644 > --- a/drivers/net/wireless/mwifiex/main.c > +++ b/drivers/net/wireless/mwifiex/main.c > [...] > @@ -784,6 +858,15 @@ mwifiex_add_card(void *card, struct semaphore *sem, > adapter->cmd_wait_q.status = 0; > adapter->scan_wait_q_woken = false; > > + if (num_possible_cpus() > 1) { > + adapter->rx_work_enabled = true; > + pr_debug("info: %s rx work enabled, cpus %d :\n", __func__, > + num_possible_cpus()); > + /*to ensure this is seen in dmesg logs*/ > + pr_err("info: %s rx work enabled, cpus %d :\n", __func__, > + num_possible_cpus()); Either pr_debug or pr_err, but not both. (Would love to test, but stuck on 3.5, and don't know how to backport mwifiex.) -- James Cameron http://quozl.linux.org.au/ -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html