From 47ae8e77f9a1224b7c35c8008dc9c20f43055128 Mon Sep 17 00:00:00 2001 From: Michael Opdenacker Date: Mon, 6 Apr 2026 09:57:18 +0000 Subject: doc: api: bootcount: correct bootcount description The bootcount variable is only incremented when the upgrade_variable is non-zero, as implemented in drivers/bootcount/bootcount_env.c Signed-off-by: Michael Opdenacker Reviewed-by: Heinrich Schuchardt --- doc/api/bootcount.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/api') diff --git a/doc/api/bootcount.rst b/doc/api/bootcount.rst index 968c679c3c6..f3c10bbe724 100644 --- a/doc/api/bootcount.rst +++ b/doc/api/bootcount.rst @@ -8,7 +8,7 @@ This is enabled by CONFIG_BOOTCOUNT_LIMIT. This allows to detect multiple failed attempts to boot Linux. After a power-on reset, the ``bootcount`` variable will be initialized to 1, and -each reboot will increment the value by 1. +when ``upgrade_available`` is non-zero, each reboot will increment the value by 1. If, after a reboot, the new value of ``bootcount`` exceeds the value of ``bootlimit``, then instead of the standard boot action (executing the contents -- cgit v1.3.1