mwifiex: propagate error if IRQ request fails in mwifiex_sdio_of()
Subsystems (2)
Hello Kalle,
Quoted 10 lines · Kalle Valo
Quoted 4 lines · Javier Martinez Canillas
If
request_irq()fails inmwifiex_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 <[email protected]>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.
Best regards,
Signature · 3 lines
Javier Martinez Canillas Open Source Group Samsung Research America
Hi Javier,
Quoted 25 lines
From: Javier Martinez Canillas [mailto:[email protected]]
Sent: Tuesday, September 06, 2016 5:43 PM
To: Kalle Valo
Cc: [email protected]; Amitkumar Karwar; [email protected]; [email protected]; Nishant Sarmukadam; Arend van Spriel
Subject: Re: mwifiex: propagate error if IRQ request fails inmwifiex_sdio_of()Hello Kalle,
Quoted 3 lines · Kalle Valo
Quoted 2 lines · Javier Martinez Canillas
If
request_irq()fails inmwifiex_sdio_probe_of(), only an error message is printed but the actual error is not propagated to thecaller function.
Quoted 8 lines
Quoted 2 lines
Signed-off-by Javier Martinez Canillas <[email protected]>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.)
Quoted 7 lines
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
Hello Amitkumar,
Quoted 40 lines · Amitkumar Karwar
Hi Javier,
Quoted 25 lines
From: Javier Martinez Canillas [mailto:[email protected]]
Sent: Tuesday, September 06, 2016 5:43 PM
To: Kalle Valo
Cc: [email protected]; Amitkumar Karwar; [email protected]; [email protected]; Nishant Sarmukadam; Arend van Spriel
Subject: Re: mwifiex: propagate error if IRQ request fails inmwifiex_sdio_of()Hello Kalle,
Quoted 3 lines · Kalle Valo
Quoted 2 lines · Javier Martinez Canillas
If
request_irq()fails inmwifiex_sdio_probe_of(), only an error message is printed but the actual error is not propagated to thecaller function.
Quoted 8 lines
Quoted 2 lines
Signed-off-by Javier Martinez Canillas <[email protected]>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.)
Quoted 7 lines
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.
------------------
Review static int mwifiex_sdio_probe_of(struct device *dev, struct sdio_mmc_card *card) · line 130
Quoted 10 lines
(quoted diff) +3
-1@@ -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; }
I'm OK with that change. Feel free too add my Reviewed-by if you post it.
Quoted 7 lines
(quoted diff) +0
-1disable_irq(cfg->irq_wifi); } -----------------Regards,
Amitkumar
Best regards,
Signature · 3 lines
Javier Martinez Canillas Open Source Group Samsung Research America