mirror of
https://github.com/espressif/esp-idf
synced 2025-03-09 17:19:09 -04:00
refactor(spi_flash): remove redundent flash suspend check
This commit is contained in:
parent
deb703cc68
commit
e111d92af6
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2015-2025 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@ -841,11 +841,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)
|
||||
{
|
||||
// chips which support auto-suspend
|
||||
if (chip->chip_id >> 16 != 0x20 && chip->chip_id >> 16 != 0xa1 && chip->chip_id >> 16 != 0x46) {
|
||||
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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user