aboutsummaryrefslogtreecommitdiff
path: root/lib/pm-notifier-error-inject.c
diff options
context:
space:
mode:
authorBoris Brezillon <[email protected]>2017-09-25 10:19:57 +0200
committerBoris Brezillon <[email protected]>2017-09-27 13:53:20 +0200
commit7e439681af82984045efc215437ebb2ca8d33a4c (patch)
tree9b34070bcc851facbc3ca6fbd403a1fef683b9d2 /lib/pm-notifier-error-inject.c
parent73600b619bf8b9803a0610624a0e11f5ed8f761e (diff)
mtd: Fix partition alignment check on multi-erasesize devices
Commit 1eeef2d7483a ("mtd: handle partitioning on devices with 0 erasesize") introduced a regression on heterogeneous erase region devices. Alignment of the partition was tested against the master eraseblock size which can be bigger than the slave one, thus leading to some partitions being marked as read-only. Update wr_alignment to match this slave erasesize after this erasesize has been determined by picking the biggest erasesize of all the regions embedded in the MTD partition. Reported-by: Mathias Thore <[email protected]> Fixes: 1eeef2d7483a ("mtd: handle partitioning on devices with 0 erasesize") Cc: <[email protected]> Signed-off-by: Boris Brezillon <[email protected]> Tested-by: Mathias Thore <[email protected]> Reviewed-by: Mathias Thore <[email protected]>
Diffstat (limited to 'lib/pm-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions