Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cherry-pick to master: [ownership] Fix protect_when_active behavior port #26542

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

cfrantz
Copy link
Contributor

@cfrantz cfrantz commented Mar 6, 2025

This is a manual cherry-pick of # 25097.

cfrantz added 2 commits March 6, 2025 10:37
Rename `protect_when_primary` to `protect_when_active`, as this feature
is supposed to protect flash pages in whichever side is the active side
regardless of which side is the primary side.

Signed-off-by: Chris Frantz <[email protected]>
(cherry picked from commit 5de39b8)
(cherry picked from commit 16a3d5b)
1. When this feature was named `protect_when_primary`, I did the
   seemingly correct thing and protected the slot that was the primary
   boot slot.  This is, in fact, not what this feature should actually
   do; it _should_ protect the active slot.
2. Update the test to verify the behavior of the feature in both slots.

Signed-off-by: Chris Frantz <[email protected]>
(cherry picked from commit 6cdc175)
(cherry picked from commit 5114f1d)
@cfrantz cfrantz requested review from moidx and timothytrippel March 6, 2025 19:01
@cfrantz cfrantz requested review from a team as code owners March 6, 2025 19:01
@cfrantz cfrantz removed request for a team March 6, 2025 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant