diff options
author | Marek Vasut <marek.vasut+renesas@mailbox.org> | 2024-10-26 22:16:22 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-10-31 10:49:47 -0600 |
commit | 34cd4a72fb2d113e2754c0d643618a8e3fa549ab (patch) | |
tree | 1231a52c9162c5a2f3801623ea4e4c0eca624fc0 /drivers/mtd/spi/spi-nor-core.c | |
parent | 787692c8d75224bb80bb9b16e10d53316b12f697 (diff) |
mtd: spi-nor: Remove recently added SST special case
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>
Diffstat (limited to 'drivers/mtd/spi/spi-nor-core.c')
-rw-r--r-- | drivers/mtd/spi/spi-nor-core.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/mtd/spi/spi-nor-core.c b/drivers/mtd/spi/spi-nor-core.c index d22363e8267..3c47751348e 100644 --- a/drivers/mtd/spi/spi-nor-core.c +++ b/drivers/mtd/spi/spi-nor-core.c @@ -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; } |