mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH v3 0/4] Add boot slot locking to bootchooser
@ 2025-06-19  8:25 Lars Schmidt
  2025-06-19  8:25 ` [PATCH v3 1/4] bootchooser: implement locking of attempts counter Lars Schmidt
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Lars Schmidt @ 2025-06-19  8:25 UTC (permalink / raw)
  To: Sascha Hauer, BAREBOX; +Cc: Lars Schmidt

This patch series adds an option to lock attempts to bootchooser.
When slots are locked, the remaining_attempts counter will not
get counted down. It is optional, so when not set, it does not
have any effect on the counter. The choice of which slot to boot
is also not affected.

---
Changes in v3:
- documentation: improve documentation to better describe the use case
- reword commit message for documentation
- change comment in common/bootchooser.c to fit into 80 chars
- Link to v2: https://lore.kernel.org/r/20250616-bootchooser-lock-v2-0-df1f0d118635@pengutronix.de

Changes in v2:
- rename slot locking to attempt locking (Ahmad)
- drop else clauses when not needed (Ahmad)
- write commit message bodies
- change migration notes to 2025.08.0
- add attempts_locked to bootstate.dtsi
- Link to v2: https://lore.kernel.org/barebox/20250613140805.1229525-1-l.schmidt@pengutronix.de

---
Lars Schmidt (4):
      bootchooser: implement locking of attempts counter
      bootchooser: extend cmd tool by option to set attempts_locked
      Documentation: bootchooser: add information about attempts_locked
      Documentation: migration-2025.08.0: add information about attempts_locked

 .../migration-guides/migration-2025.08.0.rst       |  5 +++
 Documentation/user/bootchooser.rst                 | 33 ++++++++++++++
 arch/arm/dts/bootstate.dtsi                        |  5 +++
 commands/bootchooser.c                             | 16 ++++++-
 common/bootchooser.c                               | 51 +++++++++++++++++++---
 include/bootchooser.h                              |  1 +
 6 files changed, 105 insertions(+), 6 deletions(-)
---
base-commit: f2dc1e3b183ce2bcc05a6ab91801d7ce186d432c
change-id: 20250616-bootchooser-lock-c84a25567412

Best regards,
-- 
Lars Schmidt <l.schmidt@pengutronix.de>




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-06-19  8:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-19  8:25 [PATCH v3 0/4] Add boot slot locking to bootchooser Lars Schmidt
2025-06-19  8:25 ` [PATCH v3 1/4] bootchooser: implement locking of attempts counter Lars Schmidt
2025-06-19  8:25 ` [PATCH v3 2/4] bootchooser: extend cmd tool by option to set attempts_locked Lars Schmidt
2025-06-19  8:25 ` [PATCH v3 3/4] Documentation: bootchooser: add information about attempts_locked Lars Schmidt
2025-06-19  8:25 ` [PATCH v3 4/4] Documentation: migration-2025.08.0: " Lars Schmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox