Re: [PATCH] nvmem: qcom-spmi-sdam: Set size in struct nvmem_config

2024-12-20 Thread Srinivas Kandagatla
On Fri, 20 Dec 2024 13:22:07 +0100, Luca Weiss wrote: > Let the nvmem core know what size the SDAM is, most notably this fixes > the size of /sys/bus/nvmem/devices/spmi_sdam*/nvmem being '0' and makes > user space work with that file. > > ~ # hexdump -C -s 64 /sys/bus/nvmem/devices/spmi_sdam2/

Re: [PATCH] nvmem: qcom-spmi-sdam: Set size in struct nvmem_config

2024-12-20 Thread Vladimir Zapolskiy
On 12/20/24 14:22, Luca Weiss wrote: Let the nvmem core know what size the SDAM is, most notably this fixes the size of /sys/bus/nvmem/devices/spmi_sdam*/nvmem being '0' and makes user space work with that file. ~ # hexdump -C -s 64 /sys/bus/nvmem/devices/spmi_sdam2/nvmem 0040 02 01 0

[PATCH] nvmem: qcom-spmi-sdam: Set size in struct nvmem_config

2024-12-20 Thread Luca Weiss
Let the nvmem core know what size the SDAM is, most notably this fixes the size of /sys/bus/nvmem/devices/spmi_sdam*/nvmem being '0' and makes user space work with that file. ~ # hexdump -C -s 64 /sys/bus/nvmem/devices/spmi_sdam2/nvmem 0040 02 01 00 00 04 00 00 00 00 00 00 00 00 00 00 00