From ba4b30a246e95e3023e562bc5d00a5a6771feca5 Mon Sep 17 00:00:00 2001 From: Damian Krolik Date: Mon, 25 Sep 2023 17:01:09 +0200 Subject: [PATCH] [nrf noup] [nrfconnect] Enable NVS lookup cache settings optimization By default, use the lookup cache hash function optimized for NVS used as the settings backend. This assumes that a user application uses Zephyr settings API and does not write to the NVS directly. --- config/nrfconnect/chip-module/Kconfig | 4 ++++ config/nrfconnect/chip-module/Kconfig.defaults | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/config/nrfconnect/chip-module/Kconfig b/config/nrfconnect/chip-module/Kconfig index 8eba211fca2a24..cdcb0dbafc7f9a 100644 --- a/config/nrfconnect/chip-module/Kconfig +++ b/config/nrfconnect/chip-module/Kconfig @@ -16,6 +16,10 @@ rsource "../../zephyr/Kconfig" +config CHIP + imply NVS_LOOKUP_CACHE + imply NVS_LOOKUP_CACHE_FOR_SETTINGS + if CHIP # See config/zephyr/Kconfig for full definition diff --git a/config/nrfconnect/chip-module/Kconfig.defaults b/config/nrfconnect/chip-module/Kconfig.defaults index d2280ecec6f41d..d5194b28b5e308 100644 --- a/config/nrfconnect/chip-module/Kconfig.defaults +++ b/config/nrfconnect/chip-module/Kconfig.defaults @@ -212,9 +212,6 @@ endif # BOARD_NRF7002DK_NRF5340_CPUAPP config CHIP_EXTENDED_DISCOVERY default n -config NVS_LOOKUP_CACHE - default y - config NVS_LOOKUP_CACHE_SIZE default 512