a8a30fc8103ef70f1e91398d44f40d69da625ac4
[openwrt/staging/blocktrron.git] /
1 From 2933e79db3c00a8cdc56f6bb050a857fec1875ad Mon Sep 17 00:00:00 2001
2 From: Heiko Stuebner <heiko.stuebner@cherry.de>
3 Date: Fri, 5 Jul 2024 08:48:41 +0100
4 Subject: [PATCH] nvmem: rockchip-otp: set add_legacy_fixed_of_cells config
5 option
6
7 The Rockchip OTP describes its layout via devicetree subnodes,
8 so set the appropriate property.
9
10 Fixes: 2cc3b37f5b6d ("nvmem: add explicit config option to read old syntax fixed OF cells")
11 Signed-off-by: Heiko Stuebner <heiko.stuebner@cherry.de>
12 Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
13 Link: https://lore.kernel.org/r/20240705074852.423202-5-srinivas.kandagatla@linaro.org
14 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
15 ---
16 drivers/nvmem/rockchip-otp.c | 1 +
17 1 file changed, 1 insertion(+)
18
19 --- a/drivers/nvmem/rockchip-otp.c
20 +++ b/drivers/nvmem/rockchip-otp.c
21 @@ -255,6 +255,7 @@ static int rockchip_otp_read(void *conte
22 static struct nvmem_config otp_config = {
23 .name = "rockchip-otp",
24 .owner = THIS_MODULE,
25 + .add_legacy_fixed_of_cells = true,
26 .read_only = true,
27 .stride = 1,
28 .word_size = 1,