diff options
author | Patrick Delaunay <patrick.delaunay@foss.st.com> | 2022-11-18 06:39:21 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-11-23 19:44:52 +0100 |
commit | d61784e6410f3df2028e6eb91b06ffed37a660e0 (patch) | |
tree | 1a60cf6a880600ea70d982d2026e23c909259dff /drivers/tc | |
parent | fbfc4ca465a1f8d81bf2d67d95bf7fc67c3cf0c2 (diff) | |
download | linux-d61784e6410f3df2028e6eb91b06ffed37a660e0.tar.bz2 |
nvmem: stm32: add warning when upper OTPs are updated
As the upper OTPs are ECC protected, they support only one 32 bits word
programming.
For a second modification of this word, these ECC become invalid and
this OTP will be no more accessible, the shadowed value is invalid.
This patch adds a warning to indicate an upper OTP update, because this
operation is dangerous as OTP is not locked by the driver after the first
update to avoid a second update.
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20221118063932.6418-3-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tc')
0 files changed, 0 insertions, 0 deletions