mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 04:00:52 +07:00
nvmem: sprd: Determine double data programming from device data
We've saved the double data flag in the device data, so we should use it when programming a block. 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-4-srinivas.kandagatla@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5af25388ba
commit
4bd5a15d93
@ -324,6 +324,7 @@ static int sprd_efuse_read(void *context, u32 offset, void *val, size_t bytes)
|
||||
static int sprd_efuse_write(void *context, u32 offset, void *val, size_t bytes)
|
||||
{
|
||||
struct sprd_efuse *efuse = context;
|
||||
bool blk_double = efuse->data->blk_double;
|
||||
bool lock;
|
||||
int ret;
|
||||
|
||||
@ -348,7 +349,7 @@ static int sprd_efuse_write(void *context, u32 offset, void *val, size_t bytes)
|
||||
else
|
||||
lock = true;
|
||||
|
||||
ret = sprd_efuse_raw_prog(efuse, offset, false, lock, val);
|
||||
ret = sprd_efuse_raw_prog(efuse, offset, blk_double, lock, val);
|
||||
|
||||
clk_disable_unprepare(efuse->clk);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user