summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDimitrios Siganos <[email protected]>2026-02-17 13:56:20 +0000
committerTom Rini <[email protected]>2026-03-13 13:21:46 -0600
commite7ad95aa3f1180823e07dd30c8c24494a07ca814 (patch)
tree4e5191e16b3d952b4a6e7ef58348c8c2a74e01a8 /scripts
parenta3075db94d49f415658bf7e961e1eae90d9abc33 (diff)
spl: spi: fix loss of spl_load() error on soft reset
When CONFIG_SPI_FLASH_SOFT_RESET is enabled, spi_nor_remove() is called after spl_load() to switch the flash back to legacy SPI mode. However, the return value of spi_nor_remove() unconditionally overwrites the return value of spl_load(), discarding any load error. Fix this by preserving the spl_load() error and only propagating the spi_nor_remove() error as a fallback. Also log a message when spi_nor_remove() fails, since in the case where spl_load() already failed its error would otherwise be silently discarded. Signed-off-by: Dimitrios Siganos <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions