Skip to content

Commit 569ac03

Browse files
committed
refactor(spi_flash): remove redundent flash suspend check
1 parent 4da5de0 commit 569ac03

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

components/spi_flash/spi_flash_chip_generic.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -829,11 +829,6 @@ esp_err_t spi_flash_common_set_io_mode(esp_flash_t *chip, esp_flash_wrsr_func_t
829829

830830
esp_err_t spi_flash_chip_generic_suspend_cmd_conf(esp_flash_t *chip)
831831
{
832-
// chips which support auto-suspend
833-
if (chip->chip_id >> 16 != 0x20 && chip->chip_id >> 16 != 0xa1 && chip->chip_id >> 16 != 0x46) {
834-
ESP_EARLY_LOGE(TAG, "The flash you use doesn't support auto suspend, only \'XMC\' is supported");
835-
return ESP_ERR_NOT_SUPPORTED;
836-
}
837832
spi_flash_sus_cmd_conf sus_conf = {
838833
.sus_mask = 0x80,
839834
.cmd_rdsr = CMD_RDSR2,

0 commit comments

Comments
 (0)