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
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