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 earlgrey_1.0.0: [ownership] Fix protect_when_active behavior #25097

Merged
merged 2 commits into from
Nov 13, 2024

Conversation

cfrantz
Copy link
Contributor

@cfrantz cfrantz commented Nov 12, 2024

This is a manual cherry-pick of #24879.

  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.

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)
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)
@cfrantz cfrantz requested review from a team as code owners November 12, 2024 18:44
@cfrantz cfrantz merged commit 30c46ae into lowRISC:earlgrey_1.0.0 Nov 13, 2024
29 checks passed
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.

3 participants