summaryrefslogtreecommitdiffstats
path: root/crypto/chacha_generic.c
diff options
context:
space:
mode:
authorFreeman Liu <freeman.liu@unisoc.com>2020-03-23 15:00:04 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-03-23 20:05:23 +0100
commit5af25388ba250ae9624a22587cc98685dc6d4e9e (patch)
tree6ae9f5d08c5c9ae6296e3e9f6cfe242ccb924048 /crypto/chacha_generic.c
parentc66ebde4d988b592e8f0008e04c47cc4950a49d3 (diff)
downloadlinux-5af25388ba250ae9624a22587cc98685dc6d4e9e.tar.gz
linux-5af25388ba250ae9624a22587cc98685dc6d4e9e.tar.bz2
linux-5af25388ba250ae9624a22587cc98685dc6d4e9e.zip
nvmem: sprd: Optimize the block lock operation
We have some cases that will programme the eFuse block partially multiple times, so we should allow the block to be programmed again if it was programmed partially. But we should lock the block if the whole block was programmed. Thus add a condition to validate if we need lock the block or not. Moreover we only enable the auto-check function when locking the block. Signed-off-by: Freeman Liu <freeman.liu@unisoc.com> Signed-off-by: Baolin Wang <baolin.wang7@gmail.com> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Link: https://lore.kernel.org/r/20200323150007.7487-3-srinivas.kandagatla@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'crypto/chacha_generic.c')
0 files changed, 0 insertions, 0 deletions