lkml.org 
[lkml]   [2022]   [Mar]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] mtd: spi-nor: Skip erase logic when SPI_NOR_NO_ERASE is set
Date
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@microchip.com>

\
 
 \ /
  Last update: 2022-03-08 16:42    [W:0.070 / U:1.956 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site