mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 11:19:37 +00:00
![Srinivas Kandagatla](/assets/img/avatar_default.png)
Many nvmem providers are not very keen on having default sysfs nvmem entry, as most of the usecases for them are inside kernel itself. And in some cases read/writes to some areas in nvmem are restricted and trapped at secure monitor level, so accessing them from userspace would result in board reboots. This patch adds new NVMEM_SYSFS Kconfig to make binary sysfs entry an optional one. This provision will give more flexibility to users. This patch also moves existing sysfs code to a new file so that its not compiled in when its not really required. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com> Reviewed-by: Gaurav Kohli <gkohli@codeaurora.org> Tested-by: Gaurav Kohli <gkohli@codeaurora.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
21 lines
596 B
Text
21 lines
596 B
Text
What: /sys/bus/nvmem/devices/.../nvmem
|
|
Date: July 2015
|
|
KernelVersion: 4.2
|
|
Contact: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
|
|
Description:
|
|
This file allows user to read/write the raw NVMEM contents.
|
|
Permissions for write to this file depends on the nvmem
|
|
provider configuration.
|
|
Note: This file is only present if CONFIG_NVMEM_SYSFS
|
|
is enabled
|
|
|
|
ex:
|
|
hexdump /sys/bus/nvmem/devices/qfprom0/nvmem
|
|
|
|
0000000 0000 0000 0000 0000 0000 0000 0000 0000
|
|
*
|
|
00000a0 db10 2240 0000 e000 0c00 0c00 0000 0c00
|
|
0000000 0000 0000 0000 0000 0000 0000 0000 0000
|
|
...
|
|
*
|
|
0001000
|