Skip to content

drivers: flash: flash_mcux_flexspi_nor: Inefficient block erase implementation #98763

@Albort12138

Description

@Albort12138

Describe the bug

If the erase region offset is not align with SPI_NOR_BLOCK_SIZE or the erase region size is not an integer multiple of SPI_NOR_BLOCK_SIZE, then will erase the region using sector erase way which will be inefficient.

Regression

  • This is a regression.

Steps to reproduce

If want to erase 1.5 block size region, current implementation only use erase sector command.

Relevant log output

Impact

Annoyance – Minor irritation; no significant impact on usability or functionality.

Environment

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions