Skip to content

Conversation

@github-actions
Copy link

@github-actions github-actions bot commented Dec 16, 2025

Backport c42c8a4 from #100942.

Fixes #100903

This modification prevents the bet pointer from being nulled at the end
of the loop, which would otherwise render the search for a suitable
erase type ineffective. It also optimize the loop as it omits
unnecessary operations.

Without this change, the erase size defaults to one sector. If the chip
defines fewer than JESD216_NUM_ERASE_TYPES (=4) erase types, this
behavior still works, as the resulting command will correspond to a
sector erase operation. However, if the chip defines all erase types,
the resulting command will be the one specified in the erase type. But
since bet is nulled, the erase size will incorrectly default to the
sector size.

Signed-off-by: Martin Gysel <[email protected]>
(cherry picked from commit c42c8a4)
@github-actions github-actions bot added the Backport Backport PR and backport failure issues label Dec 16, 2025
@github-project-automation github-project-automation bot moved this to To do in Backports Dec 16, 2025
@JarmouniA JarmouniA closed this Dec 16, 2025
@github-project-automation github-project-automation bot moved this from To do to Done in Backports Dec 16, 2025
@JarmouniA JarmouniA reopened this Dec 16, 2025
@github-project-automation github-project-automation bot moved this from Done to Needs more info in Backports Dec 16, 2025
@JarmouniA JarmouniA added this to the v4.3.1 milestone Dec 16, 2025
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Flash Backport Backport PR and backport failure issues platform: STM32 ST Micro STM32

Projects

Status: Needs more info

Development

Successfully merging this pull request may close these issues.

5 participants