mfd: pmic8058: shutdown on hard reset
When the pmic initiates shutdown (probably because the temperature
went to high or resin_n line to pmic was lowered), the default action
is to restart the device.
Override this default configuration which means do not restart
the device when pmic hard reset happens.
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Conflicts:
drivers/mfd/pmic8058.c
diff --git a/drivers/mfd/pmic8058.c b/drivers/mfd/pmic8058.c
index f1d116c..dfda920 100644
--- a/drivers/mfd/pmic8058.c
+++ b/drivers/mfd/pmic8058.c
@@ -1456,6 +1456,11 @@
if (rc < 0)
pr_err("%s: could not set up debugfs: %d\n", __func__, rc);
+ rc = pm8058_hard_reset_config(SHUTDOWN_ON_HARD_RESET);
+ if (rc < 0)
+ pr_err("%s: failed to config shutdown on hard reset: %d\n",
+ __func__, rc);
+
register_syscore_ops(&pm8058_pm);
return 0;