[PATCH] mtd: spi-nor: Skip erase logic when SPI_NOR_NO_ERASE is set
Tudor Ambarus
tudor.ambarus at microchip.com
Tue Mar 8 07:41:39 PST 2022
On Mon, 28 Feb 2022 18:33:34 +0200, Tudor Ambarus wrote:
> Even if SPI_NOR_NO_ERASE was set, one could still send erase opcodes
> to the flash. It is not recommended to send unsupported opcodes to
> flashes. Fix the logic and do not set mtd->_erase when SPI_NOR_NO_ERASE
> is specified. With this users will not be able to issue erase opcodes to
> flashes and instead they will recive an -ENOTSUPP error.
Applied to spi-nor/next, thanks!
[1/1] mtd: spi-nor: Skip erase logic when SPI_NOR_NO_ERASE is set
https://git.kernel.org/mtd/c/151c6b49d679
Best regards,
--
Tudor Ambarus <tudor.ambarus at microchip.com>
More information about the linux-mtd
mailing list