[PATCH] mtd: partitions: no unnecessary check for erase block

Bastian Stender bst at pengutronix.de
Mon Jan 16 07:19:05 PST 2017


Hi,

On 01/09/2017 11:18 AM, Boris Brezillon wrote:
> On Fri,  6 Jan 2017 17:26:24 +0100
> Bastian Stender <bst at pengutronix.de> wrote:
>
>> Partitions must start/end on erase block or boundary to be writeable.
>> This makes only sense if erasing is necessary. Do not force the
>> partition to be read-only if MTD_NO_ERASE flag is set.
>
> Shouldn't the partition be aligned on ->writesize in this case?

Yes, you are right. This patch is obsolete, I reworked it:

[PATCH 1/2] mtd: spi-nor: make n_sectors in flash_info 32 bit wide
<20170116151214.11195-1-bst at pengutronix.de>

[PATCH 2/2] mtd: spi-nor: fix mr25h* definitions
<20170116151214.11195-2-bst at pengutronix.de>

Regards,
Bastian Stender

-- 
Pengutronix e.K.
Industrial Linux Solutions
http://www.pengutronix.de/
Peiner Str. 6-8, 31137 Hildesheim, Germany
Amtsgericht Hildesheim, HRA 2686



More information about the linux-mtd mailing list