spi_flash: remove back-compatible with caller function of S3Beta ROM
@@ -135,17 +135,12 @@ esp_err_t spi_flash_hal_common_command(spi_flash_host_inst_t *host, spi_flash_tr
esp_flash_io_mode_t io_mode = ((spi_flash_hal_context_t*)host)->base_io_mode;
uint16_t command;
uint8_t dummy_bitlen;
- if (trans->reserved != 0) {
- // Back-compatible with caller functions of ESP32-S3 ROM
- command = (uint8_t)trans->reserved;
- dummy_bitlen = 0;
- } else {
+
command = trans->command;
dummy_bitlen = trans->dummy_bitlen;
if ((trans->flags & SPI_FLASH_TRANS_FLAG_IGNORE_BASEIO) != 0) {
io_mode = trans->io_mode;
}
- }
host->driver->configure_host_io_mode(host, command, trans->address_bitlen, dummy_bitlen, io_mode);
