Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

spi: intel: 64k erase is supported from Canon Lake and beyond

The hardware sequencer in Intel Canon Lake and beyond supports also 64k
erase command. The SPI-NOR core uses SFDP (Serial Flash Discovery
Parameter) to figure out what the chip actually supports and only issues
64k erase if it is supported.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Link: https://lore.kernel.org/r/20220816125537.89389-1-mika.westerberg@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Mika Westerberg and committed by
Mark Brown
1d895be1 3f03c618

+1
+1
drivers/spi/spi-intel.c
··· 1100 1100 ispi->pregs = ispi->base + CNL_PR; 1101 1101 ispi->nregions = CNL_FREG_NUM; 1102 1102 ispi->pr_num = CNL_PR_NUM; 1103 + erase_64k = true; 1103 1104 break; 1104 1105 1105 1106 default: