sunxi: enable CONFIG_NVMEM_SYSFS
authorJan-Niklas Burfeind <git@aiyionpri.me>
Fri, 30 Dec 2022 02:41:17 +0000 (03:41 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 26 Feb 2023 21:22:48 +0000 (22:22 +0100)
in both the stable and the testing kernel

h2+/h3/h5 devices have a Secure ID that can be read from
`/sys/bus/nvmem/devices/sunxi-sid0/nvmem`.
Enabling CONFIG_NVMEM_SYSFS grants sysfs access from userspace.

Signed-off-by: Jan-Niklas Burfeind <git@aiyionpri.me>
target/linux/sunxi/config-5.15
target/linux/sunxi/cortexa53/config-5.15

index c7dbc5a9f1ef4c9b75f9d7ce07b861f4f738df11..17c4d910c8e9ea6f65828b399aed371d99efc878 100644 (file)
@@ -307,6 +307,7 @@ CONFIG_NO_HZ_IDLE=y
 CONFIG_NR_CPUS=8
 CONFIG_NVMEM=y
 CONFIG_NVMEM_SUNXI_SID=y
+CONFIG_NVMEM_SYSFS=y
 CONFIG_OF=y
 CONFIG_OF_ADDRESS=y
 CONFIG_OF_EARLY_FLATTREE=y
index b93abf0765b2aa390119d182173088ccdb55670d..85ace5d9288715c2a36c153982d4ad70aa515c89 100644 (file)
@@ -52,7 +52,6 @@ CONFIG_MUSB_PIO_ONLY=y
 CONFIG_NEED_SG_DMA_LENGTH=y
 CONFIG_NOP_USB_XCEIV=y
 CONFIG_NO_IOPORT_MAP=y
-CONFIG_NVMEM_SYSFS=y
 CONFIG_PARTITION_PERCPU=y
 CONFIG_PHY_SUN50I_USB3=y
 CONFIG_PINCTRL_SUN50I_A100=y