Re: [U-Boot] [PATCH 1/1] mtd: nand-base: fix bug writing 1 byte less than page size

2016-07-18 Thread Hector Palacios
On 07/18/2016 09:18 AM, Hector Palacios wrote: > nand_do_write_ops() determines if it is writing a partial page with the > formula: > if (column || (writelen < mtd->writesize - 1)) > > When 'writelen' is exactly 1 byte less than the NAND page size the formula > equates to zero, so the code d

[U-Boot] [PATCH 1/1] mtd: nand-base: fix bug writing 1 byte less than page size

2016-07-18 Thread Hector Palacios
nand_do_write_ops() determines if it is writing a partial page with the formula: if (column || (writelen < mtd->writesize - 1)) When 'writelen' is exactly 1 byte less than the NAND page size the formula equates to zero, so the code doesn't process it as a partial write, although it should.