]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mtd: spi-nor: Remove recently added SST special case
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sat, 26 Oct 2024 20:16:22 +0000 (22:16 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 31 Oct 2024 16:49:47 +0000 (10:49 -0600)
Remove undocumented SST special case. This was added in commit
5d40b3d384dc ("mtd: spi-nor: Add parallel and stacked memories support")
without any explanation in the commit message. Remove it.

Fixes: 5d40b3d384dc ("mtd: spi-nor: Add parallel and stacked memories support")
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
drivers/mtd/spi/spi-nor-core.c

index d22363e8267b3d1b6e56edaed09170128bf18074..3c47751348ed1704cc1b8e2f539ee6cf730d399a 100644 (file)
@@ -3578,19 +3578,6 @@ static int spi_nor_select_erase(struct spi_nor *nor,
                        mtd->erasesize = info->sector_size;
        }
 
-       if ((JEDEC_MFR(info) == SNOR_MFR_SST) && info->flags & SECT_4K) {
-               nor->erase_opcode = SPINOR_OP_BE_4K;
-               /*
-                * In parallel-memories the erase operation is
-                * performed on both the flashes simultaneously
-                * so, double the erasesize.
-                */
-               if (nor->flags & SNOR_F_HAS_PARALLEL)
-                       mtd->erasesize = 4096 * 2;
-               else
-                       mtd->erasesize = 4096;
-       }
-
        return 0;
 }