Dimitrios Siganos
e7ad95aa3f
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 <dimitris@siganos.org >
2026-03-13 13:21:46 -06:00
..
2024-06-07 10:48:41 -06:00
2025-05-21 16:46:16 +08:00
2026-03-13 13:21:46 -06:00
2025-12-05 16:23:54 -06:00
2025-07-16 10:56:28 -06:00
2025-09-12 13:49:34 -06:00
2025-12-05 13:38:09 -06:00
2024-11-17 13:12:54 -06:00
2025-11-10 11:30:56 -06:00
2024-11-03 21:27:12 -06:00
2024-05-20 13:35:03 -06:00
2025-07-28 08:53:20 -06:00
2024-05-20 13:35:03 -06:00
2024-09-13 13:43:56 -06:00
2025-04-11 15:28:14 +02:00
2026-02-17 13:50:22 -06:00
2025-07-08 15:35:49 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2025-04-08 16:23:51 -06:00
2025-05-02 13:40:20 -06:00
2024-05-20 13:35:03 -06:00
2025-05-16 13:44:19 +02:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-10-25 14:22:24 -06:00
2025-03-19 10:59:23 +02:00
2025-05-02 08:38:02 -06:00
2025-09-26 11:55:13 -06:00
2024-09-24 13:41:21 -06:00
2025-12-04 09:38:58 -06:00
2024-08-26 14:06:08 -06:00
2025-04-14 16:57:06 -06:00
2024-05-20 13:35:03 -06:00
2024-07-15 12:12:17 -06:00
2026-02-23 13:45:55 -06:00
2024-05-20 13:35:03 -06:00
2024-07-15 12:12:17 -06:00
2024-08-23 15:58:41 -06:00
2025-07-10 08:41:12 -06:00
2025-01-26 11:06:56 +01:00
2024-05-20 13:35:03 -06:00
2025-06-23 16:15:23 -06:00
2024-12-27 15:16:10 -06:00
2024-04-12 16:23:06 -06:00
2026-03-02 08:21:47 -06:00
2025-12-19 08:25:27 +01:00
2026-03-03 10:34:52 -06:00
2025-12-05 10:34:52 -06:00
2025-11-11 11:54:42 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2025-12-30 11:23:00 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2026-02-17 13:50:22 -06:00
2026-02-06 16:37:31 +01:00
2024-07-15 12:12:17 -06:00
2024-10-16 11:11:56 -06:00
2025-10-05 06:11:44 +02:00
2024-07-15 12:12:17 -06:00
2025-05-29 08:29:16 -06:00
2023-11-07 14:48:19 -05:00
2024-11-14 18:14:05 -06:00