--- a/drivers/mtd/spi-nor/spi-nor.c
+++ b/drivers/mtd/spi-nor/spi-nor.c
-@@ -1011,6 +1011,66 @@ write_err:
+@@ -1008,6 +1008,66 @@ write_err:
return ret;
}
static int macronix_quad_enable(struct spi_nor *nor)
{
int ret, val;
-@@ -1232,10 +1292,12 @@ int spi_nor_scan(struct spi_nor *nor, co
+@@ -1229,10 +1289,12 @@ int spi_nor_scan(struct spi_nor *nor, co
}
/* sst nor chips use AAI word program */
if (info->flags & USE_FSR)
nor->flags |= SNOR_F_USE_FSR;
-@@ -1263,11 +1325,20 @@ int spi_nor_scan(struct spi_nor *nor, co
+@@ -1260,11 +1322,20 @@ int spi_nor_scan(struct spi_nor *nor, co
mtd->writebufsize = nor->page_size;
if (np) {