Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6b03144d authored by Amitkumar Karwar's avatar Amitkumar Karwar Committed by Kalle Valo
Browse files

mwifiex: handle error if IRQ request fails in mwifiex_sdio_of()



When this failure occurs, we will clear card->plt_wake_cfg so that
device would initialize without wake up on external interrupt feature.
This feature specific code in suspend and resume handlers will be
skipped.

Signed-off-by: default avatarAmitkumar Karwar <akarwar@marvell.com>
Reviewed-by: default avatarJavier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent af1afc29
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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);
		}