Regression for NOR flash with multiple erase block regions
Chris Packham
Chris.Packham at alliedtelesis.co.nz
Fri Sep 22 11:27:42 PDT 2017
Hi Mathias,
On 23/09/17 01:12, Mathias Thore wrote:
> Hello,
>
> Commit 1eeef2d7483a7e3f8d2dd2a5b9939b3b814dc549 included in Linux 4.13 (
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/mtd/mtdpart.c?h=v4.13&id=1eeef2d7483a7e3f8d2dd2a5b9939b3b814dc549
> ) introduces a regression for NOR flash with multiple erase block
> regions of different sizes.
>
> Only the largest erase block size seems to be considered when
> determining if partitions are aligned. Partitions in smaller regions
> will be mounted as read-only. With Linux 4.12 and earlier, read/write
> access was available for these partitions.
Sorry about that. I think a fix would be to re-calculate the
wr_alignment as we're looking at each erase block. Unfortunately I'm
about to get on a plane for 13 hours so I'm pretty much a write off for
the next couple of days.
I'll take a look when I get back on-line unless Boris beats me to it.
More information about the linux-mtd
mailing list