mfd: da9053: Ensure the FAULT_LOG is cleared during MFD driver probe
authorSteve Twiss <stwiss.opensource@diasemi.com>
Wed, 6 Jul 2016 15:12:03 +0000 (16:12 +0100)
committerLee Jones <lee.jones@linaro.org>
Mon, 12 Sep 2016 08:56:13 +0000 (09:56 +0100)
commit58698374b3edc26f22be415fbb685ad569b25d05
tree1ca9f2674bdf9fd9ea29ba04944ee40535f028d6
parent195153db3e86932dca1995cbfeb3e0ca4e0865e2
mfd: da9053: Ensure the FAULT_LOG is cleared during MFD driver probe

The function da9052_clear_fault_log() is added to mitigate the case of
persistent data being transferred between reboots.

Clearance of any the persistent information within the DA9053 FAULT_LOG
register must be completed during start-up so the fault-log does not
continue with previous values. A clearance function has been added here in
the kernel driver because wiping the fault-log cannot be counted on outside
the Linux kernel.

Signed-off-by: Steve Twiss <stwiss.opensource@diasemi.com>
Reviewed-by: Adam Thomson <adam.thomson.opensource@diasemi.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/da9052-core.c
This page took 0.029636 seconds and 5 git commands to generate.