9
0
Fork 0

da9053: reset FAULTLOG after read

The driver has to reset the FAULTLOG register after every read by
writing the value back. In the current case the FALUTLOG register keep
its value over every software reset and will only reset on power-off.
This drives the reset-source value unreliable.

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Michael Grzeschik 2016-12-14 13:52:52 +01:00 committed by Sascha Hauer
parent 40df35f5cb
commit 6f20bcdb7b
1 changed files with 4 additions and 0 deletions

View File

@ -240,6 +240,10 @@ static void da9053_detect_reset_source(struct da9053_priv *da9053)
priority = of_get_reset_source_priority(da9053->dev->device_node);
reset_source_set_priority(type, priority);
ret = da9053_reg_write(da9053, DA9053_FAULTLOG_REG, val);
if (ret < 0)
return;
}
static void __noreturn da9053_force_system_reset(struct restart_handler *rst)