Re: [PATCH] mtd: spi-nor: Skip erase logic when SPI_NOR_NO_ERASE is set

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx>



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux