Skip to content

Commit e111d92

Browse files
committed
refactor(spi_flash): remove redundent flash suspend check
1 parent deb703c commit e111d92

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

components/spi_flash/spi_flash_chip_generic.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD
2+
* SPDX-FileCopyrightText: 2015-2025 Espressif Systems (Shanghai) CO LTD
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -841,11 +841,6 @@ esp_err_t spi_flash_common_set_io_mode(esp_flash_t *chip, esp_flash_wrsr_func_t
841841

842842
esp_err_t spi_flash_chip_generic_suspend_cmd_conf(esp_flash_t *chip)
843843
{
844-
// chips which support auto-suspend
845-
if (chip->chip_id >> 16 != 0x20 && chip->chip_id >> 16 != 0xa1 && chip->chip_id >> 16 != 0x46) {
846-
ESP_EARLY_LOGE(TAG, "The flash you use doesn't support auto suspend, only \'XMC\' is supported");
847-
return ESP_ERR_NOT_SUPPORTED;
848-
}
849844
spi_flash_sus_cmd_conf sus_conf = {
850845
.sus_mask = 0x80,
851846
.cmd_rdsr = CMD_RDSR2,

0 commit comments

Comments
 (0)