Re: [PATCH] mtd: spi-nor: fix erase_type array to indicate current map conf
From: Tudor.Ambarus
Date: Fri Nov 23 2018 - 07:39:52 EST
Hi, Alexander,
On 11/23/2018 01:33 PM, Sverdlin, Alexander (Nokia - DE/Ulm) wrote:
> So erasesize is back to the value before non-uniform support patches,
> partitions are not made read only any more, but actual write or
> erase still fails.
How does the erase fail?
What map configuration is selected? Where are the hybrid blocks, at the bottom
or at the top of the address space?
Does the erase fail even when address is aligned with 64k and the size multiple
of 64k? Does the following fail?
$ mtd_debug erase /dev/your_mtd 0 65536
The non-uniform erase will fail if it can't select a sequence of commands that
can erase the entire requested chunk.
Cheers,
ta