[PATCH v2 0/3] bootcount: Small clean-up and fix, and dm_i2c single-word support
Tom Rini
trini at konsulko.com
Thu Feb 19 01:15:27 CET 2026
On Wed, 04 Feb 2026 15:17:34 +0200, niko.mauno at vaisala.com wrote:
> From: Niko Mauno <niko.mauno at vaisala.com>
>
> In this series, we first introduce a clean-up where we switch to use
> predefined bit masks instead of hard-coded values for count and magic
> halves in the single-word (32-bit) boot count scheme.
>
> Then we fix a case of missing boot count value masking in single-word
> scenario in bootcount.c, which allowed clobbering of the magic half
> when storing the value. With this change the clobbering preventing
> behavior becomes consistent with existing single word bootcount storing
> implementations in bootcount_at91.c and bootcount_davinci.c.
>
> [...]
Applied to u-boot/next, thanks!
[1/3] bootcount: Use predefined count/magic bit masks
commit: 27e1924ffaa9361542d4cf75a9b73613fa45d007
[2/3] bootcount: Fix potential clobbering issue
commit: 05b56599b5b13a504d8ed66db27a4446f8b9acc5
[3/3] bootcount: dm_i2c: Support also single word mode
commit: f97642853cd379ef69d00bca6c3928bce226dc5e
--
Tom
More information about the U-Boot
mailing list