Skip to contentSkip to conversation

mfd: arizona: Error out if initial boot fails

PATCH Applied Mark Brown 2 participants 2 messages Jul 9, 2012

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 mfd: arizona: Error out if initial boot fails

---
 drivers/mfd/arizona-core.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/mfd/arizona-core.c +5 -1
index ed2de7b..011d80e 100644
@@ -418,7 +418,11 @@ int __devinit arizona_dev_init(struct arizona *arizona)
 		}
 	}
 
-	arizona_wait_for_boot(arizona);
+	ret = arizona_wait_for_boot(arizona);
+	if (ret != 0) {
+		dev_err(arizona->dev, "Device failed initial boot: %d\n", ret);
+		goto err_reset;
+	}
 
 	for (i = 0; i < ARRAY_SIZE(arizona->pdata.gpio_defaults); i++) {
 		if (!arizona->pdata.gpio_defaults[i])
Signature · 1 line
1.7.10
Applied
#1 lore raw

Hi Mark,

Quoted 4 lines · Mark Brown
---
 drivers/mfd/arizona-core.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Applied, thanks.

Cheers,
Samuel.

Signature · 2 lines
Intel Open Source Technology Centre
http://oss.intel.com/