mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
dc26065a72
The issue is introduced in 571864e8aeba85b941133766601543e0decd0faf. The esp_flash API tries to clear the QE bit when the flash is not working in quad modes. However this introduces a regression, compared to earlier versions and the legacy API. When the chip is not detected, the generic chip driver is used, which cannot 100% handle the QE bit properly for all flash vendors. There may be some flash chips (e.g. MXIC) that can be used in dual modes by legacy API, but output wrong data when the esp_flash API clears the QE bit in a wrong way. This commit reverts the QE force clearing behavior, so that it's safer for the generic chip driver to work under dual modes.