For accessing flash part using the mtd devices for architectures which
only supports 3 byte addressing need to call write_ear() for accessing
memory above 16MB. After every call to write_ear(), write_enable()
has to be called for further process.
Signed-off-by: Tejas Prajapati Rameshchandra <tejaspra@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
ret = spi_nor_wait_till_ready(nor);
if (ret)
goto erase_err;
+
+ write_enable(nor);
+
ret = spi_nor_erase_sector(nor, offset);
if (ret)
goto erase_err;