bfb6f31872
spi_flash driver knows how to write data from cache (DROM or PSRAM) into flash, so the extra check in nvs_flash is unnecessary. Besides, the hardcoded address limit (0x3ff00000) is wrong for some of the newer chips.