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>
Tue, 4 Oct 2016 14:48:02 +0000 (15:48 +0100)
commit547120edbacba09ae8becab65aa86e3fd4e75e9a
tree51490ef01f6132caa334a3871f3e1d05d6124bae
parent29090265a242765a0d84bd04ce90e0fa69d75602
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