nvmem: qfprom: Don't touch certain fuses
authorEvan Green <evgreen@chromium.org>
Fri, 27 Nov 2020 10:28:36 +0000 (10:28 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Nov 2020 15:10:06 +0000 (16:10 +0100)
commit044ee8f85267599a9b0112911f5c16d4548b4289
treee3d00625cd894db779cf067c46b23780b3d398da
parentc8b336bb1aeb88baebdf116f151a4afe712512c5
nvmem: qfprom: Don't touch certain fuses

Some fuse ranges are protected by the XPU such that the AP cannot
access them. Attempting to do so causes an SError. Use the newly
introduced per-soc compatible string, and the newly introduced
nvmem keepout support to attach the set of regions
we should not access.

Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Evan Green <evgreen@chromium.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20201127102837.19366-5-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/qfprom.c