[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <10fb1110-4c0b-00a2-522c-7011ca397b8c@broadcom.com>
Date: Thu, 18 Aug 2016 21:14:35 +0200
From: Arend van Spriel <arend.vanspriel@...adcom.com>
To: Javier Martinez Canillas <javier@....samsung.com>,
linux-kernel@...r.kernel.org
Cc: Amitkumar Karwar <akarwar@...vell.com>,
Kalle Valo <kvalo@...eaurora.org>, netdev@...r.kernel.org,
linux-wireless@...r.kernel.org,
Nishant Sarmukadam <nishants@...vell.com>
Subject: Re: [PATCH] mwifiex: propagate error if IRQ request fails in
mwifiex_sdio_of()
On 18-08-16 16:17, Javier Martinez Canillas 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.
Hmm. The caller function, ie. mwifiex_sdio_probe(), does not seem to care.
The device may still function without this wake interrupt.
Regards,
Arend
> Signed-off-by: Javier Martinez Canillas <javier@....samsung.com>
> ---
>
> drivers/net/wireless/marvell/mwifiex/sdio.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/net/wireless/marvell/mwifiex/sdio.c b/drivers/net/wireless/marvell/mwifiex/sdio.c
> index d3e1561ca075..00727936ad6e 100644
> --- a/drivers/net/wireless/marvell/mwifiex/sdio.c
> +++ b/drivers/net/wireless/marvell/mwifiex/sdio.c
> @@ -125,6 +125,7 @@ static int mwifiex_sdio_probe_of(struct device *dev, struct sdio_mmc_card *card)
> dev_err(dev,
> "Failed to request irq_wifi %d (%d)\n",
> cfg->irq_wifi, ret);
> + return ret;
> }
> disable_irq(cfg->irq_wifi);
> }
>
Powered by blists - more mailing lists