OSDN Git Service

nvmem: imx-ocotp: reset error status on probe
authorLucas Stach <l.stach@pengutronix.de>
Tue, 29 Oct 2019 11:42:35 +0000 (11:42 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Nov 2019 17:35:30 +0000 (18:35 +0100)
commitc33c585f1b3a99d53920bdac614aca461d8db06f
tree22e51dfb51c0ae095b182a64d60fa1b8fa130893
parent885ce72a09d072a3d75231c68e27f21c956c9f46
nvmem: imx-ocotp: reset error status on probe

If software running before the OCOTP driver is loaded left the
controller with the error status pending, the driver will never
be able to complete the read timing setup. Reset the error status
on probe to make sure the controller is in usable state.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20191029114240.14905-6-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/imx-ocotp.c