From: Amitkumar Karwar <akarwar@marvell.com>
To: Javier Martinez Canillas <javier@osg.samsung.com>,
Kalle Valo <kvalo@codeaurora.org>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
"Nishant Sarmukadam" <nishants@marvell.com>,
Arend van Spriel <arend.vanspriel@broadcom.com>
Subject: RE: mwifiex: propagate error if IRQ request fails in mwifiex_sdio_of()
Date: Thu, 8 Sep 2016 15:55:34 +0000 [thread overview]
Message-ID: <0f15fe320fa34ae287f8a6b91ec78a34@SC-EXCH04.marvell.com> (raw)
In-Reply-To: <66735eb5-c831-8e06-337b-80ccfc392061@osg.samsung.com>
Hi Javier,
> From: Javier Martinez Canillas [mailto:javier@osg.samsung.com]
> Sent: Tuesday, September 06, 2016 5:43 PM
> To: Kalle Valo
> Cc: linux-kernel@vger.kernel.org; Amitkumar Karwar;
> netdev@vger.kernel.org; linux-wireless@vger.kernel.org; Nishant
> Sarmukadam; Arend van Spriel
> Subject: Re: mwifiex: propagate error if IRQ request fails in
> mwifiex_sdio_of()
>
> Hello Kalle,
>
> On 09/03/2016 12:35 PM, Kalle Valo wrote:
> > Javier Martinez Canillas <javier@osg.samsung.com> wrote:
> >> If request_irq() fails in mwifiex_sdio_probe_of(), only an error
> >> message is printed but the actual error is not propagated to the
> caller function.
> >>
> >> Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
> >
> > What's the conclusion with this patch? Should I drop it or take it?
> >
> > (The discussion is available from the patchwork link in the
> > signature.)
> >
>
> My understanding is that Arend agrees with the patch and that the
> question raised was caused by looking at an older kernel version. IOW,
> the patch is OK and should be picked.
>
> I'm adding Arend to cc, so can comment in case I misunderstood him
> though.
>
This error doesn't affect actual wifi functionality. Only thing is wakeup on interrupt when system is in suspended state won't work.
I think, we can make below change.
------------------
@@ -122,9 +122,11 @@ static int mwifiex_sdio_probe_of(struct device *dev, struct sdio_mmc_card *card)
IRQF_TRIGGER_LOW,
"wifi_wake", cfg);
if (ret) {
- dev_err(dev,
+ dev_dbg(dev,
"Failed to request irq_wifi %d (%d)\n",
cfg->irq_wifi, ret);
+ card->plt_wake_cfg = NULL;
+ return 0;
}
disable_irq(cfg->irq_wifi);
}
-----------------
Regards,
Amitkumar
next prev parent reply other threads:[~2016-09-08 15:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20160903103520.8C69C6201B@smtp.codeaurora.org>
2016-09-06 12:12 ` Javier Martinez Canillas
2016-09-08 15:55 ` Amitkumar Karwar [this message]
2016-09-08 15:57 ` Javier Martinez Canillas
2016-08-18 14:17 [PATCH] " Javier Martinez Canillas
2016-09-03 10:35 ` Kalle Valo
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=0f15fe320fa34ae287f8a6b91ec78a34@SC-EXCH04.marvell.com \
--to=akarwar@marvell.com \
--cc=arend.vanspriel@broadcom.com \
--cc=javier@osg.samsung.com \
--cc=kvalo@codeaurora.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=nishants@marvell.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
all inboxes | Powered by JetHome®