All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] mmc: sdhci-iproc: handle mmc_of_parse() errors during probe
@ 2018-12-23 20:59 ` Stefan Wahren
  0 siblings, 0 replies; 16+ messages in thread
From: Stefan Wahren @ 2018-12-23 20:59 UTC (permalink / raw)
  To: Al Cooper, Adrian Hunter, Ulf Hansson
  Cc: Brian Norris, Gregory Fong, Florian Fainelli, Ray Jui,
	Scott Branden, Eric Anholt, bcm-kernel-feedback-list, linux-mmc,
	linux-arm-kernel, Stefan Wahren, stable

We need to handle mmc_of_parse() errors during probe.

This finally fixes the wifi regression on Raspberry Pi 3 series.
In error case the wifi chip was permanently in reset because of
the power sequence depending on the deferred probe of the GPIO expander.

Fixes: b580c52d58d9 ("mmc: sdhci-iproc: add IPROC SDHCI driver")
Cc: stable@vger.kernel.org
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
---
 drivers/mmc/host/sdhci-iproc.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/mmc/host/sdhci-iproc.c b/drivers/mmc/host/sdhci-iproc.c
index 0db9905..9d12c06 100644
--- a/drivers/mmc/host/sdhci-iproc.c
+++ b/drivers/mmc/host/sdhci-iproc.c
@@ -296,7 +296,10 @@ static int sdhci_iproc_probe(struct platform_device *pdev)
 
 	iproc_host->data = iproc_data;
 
-	mmc_of_parse(host->mmc);
+	ret = mmc_of_parse(host->mmc);
+	if (ret)
+		goto err;
+
 	sdhci_get_property(pdev);
 
 	host->mmc->caps |= iproc_host->data->mmc_caps;
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2019-01-14 13:20 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-23 20:59 [PATCH 1/2] mmc: sdhci-iproc: handle mmc_of_parse() errors during probe Stefan Wahren
2018-12-23 20:59 ` Stefan Wahren
2018-12-23 20:59 ` [PATCH 2/2] mmc: sdhci-brcmstb: " Stefan Wahren
2018-12-23 20:59   ` Stefan Wahren
2018-12-27  7:06   ` Adrian Hunter
2018-12-27  7:06     ` Adrian Hunter
2019-01-14 11:44   ` Ulf Hansson
2019-01-14 11:44     ` Ulf Hansson
2018-12-27  7:02 ` [PATCH 1/2] mmc: sdhci-iproc: " Adrian Hunter
2018-12-27  7:02   ` Adrian Hunter
2019-01-14 11:44 ` Ulf Hansson
2019-01-14 11:44   ` Ulf Hansson
2019-01-14 12:01   ` Stefan Wahren
2019-01-14 12:01     ` Stefan Wahren
2019-01-14 13:19     ` Ulf Hansson
2019-01-14 13:19       ` Ulf Hansson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.