refactor(spi_flash): remove redundent flash suspend check

This commit is contained in:
C.S.M
2025-02-19 11:35:09 +08:00
parent d28197b74f
commit 64e169c86e
2 changed files with 0 additions and 6 deletions

View File

@@ -824,11 +824,6 @@ esp_err_t spi_flash_common_set_io_mode(esp_flash_t *chip, esp_flash_wrsr_func_t
esp_err_t spi_flash_chip_generic_suspend_cmd_conf(esp_flash_t *chip)
{
// Only XMC support auto-suspend
if (chip->chip_id >> 16 != 0x20) {
ESP_EARLY_LOGE(TAG, "The flash you use doesn't support auto suspend, only \'XMC\' is supported");
return ESP_ERR_NOT_SUPPORTED;
}
spi_flash_sus_cmd_conf sus_conf = {
.sus_mask = 0x80,
.cmd_rdsr = CMD_RDSR2,

View File

@@ -1 +0,0 @@
CONFIG_SPI_FLASH_ROM_DRIVER_PATCH=n