Re: [PATCH] kernel: fix mtd partition erase

2020-09-19 Thread Thibaut
>> To: openwrt-devel@lists.openwrt.org >> Cc: John Thomson >> Subject: [PATCH] kernel: fix mtd partition erase> wrong address >> >> This bug applied where mtd partition end address, or erase start address, >> was not cleanly divisible by parent mtd erasesi

RE: [PATCH] kernel: fix mtd partition erase

2020-09-19 Thread Adrian Schmutzler
Hi, > -Original Message- > From: openwrt-devel [mailto:openwrt-devel-boun...@lists.openwrt.org] > On Behalf Of John Thomson > Sent: Mittwoch, 5. August 2020 23:14 > To: openwrt-devel@lists.openwrt.org > Cc: John Thomson > Subject: [PATCH] kernel: fix mtd partitio

Re: [PATCH] kernel: fix mtd partition erase

2020-08-14 Thread Tomasz Maciej Nowak
Hi John. W dniu 05.08.2020 o 23:13, John Thomson pisze: > This bug applied where mtd partition end address, > or erase start address, was not cleanly divisible by parent mtd erasesize. > > This error would cause the bits following the end of the partition > to the next erasesize block boundary to

Re: [PATCH] kernel: fix mtd partition erase

2020-08-07 Thread John Thomson
On Wed, 5 Aug 2020, at 21:13, John Thomson wrote: > -@@ -213,6 +262,24 @@ static int part_erase(struct mtd_info *m > if (instr->fail_addr != MTD_FAIL_ADDR_UNKNOWN) > instr->fail_addr -= part->offset; I should modify this to avoid the _write, if the _erase fails before the writ

[PATCH] kernel: fix mtd partition erase

2020-08-05 Thread John Thomson
This bug applied where mtd partition end address, or erase start address, was not cleanly divisible by parent mtd erasesize. This error would cause the bits following the end of the partition to the next erasesize block boundary to be erased, and this partition-overflow data to be written to the p