nvmem: imx-ocotp: clear error bit after reading locked values
authorRichard Leitner <richard.leitner@skidata.com>
Fri, 31 Mar 2017 12:44:54 +0000 (13:44 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Apr 2017 15:51:48 +0000 (17:51 +0200)
commit9b66587ee259800d278e84af64755083ea09926b
tree2960693510937405469ac7d84d2992fb2f3be718
parent711d4547793176fa0773c9cdf7af838417f14ef9
nvmem: imx-ocotp: clear error bit after reading locked values

When reading a "read locked" value from the OCOTP controller on i.MX6
SoC's an error bit is set. This bit has to be cleared by software before
any new write, read or reload access can be issued.

Therefore clear it after we detect such an "locked read".

Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/imx-ocotp.c