u-boot-brain/drivers/mtd/nand
T Karthik Reddy 1e2c5bb9e7 mtd: nand: Fix nand write error with bad block addresses above 32-bit
Nand writes should skip the bad blocks with "nand write" command.
In case of bad blocks with above 32-bit address, nand_block_isbad()
returns false due to truncated bad block address.

In below code segment,

	if (nand_block_isbad(mtd, offset & ~(mtd->erasesize - 1)))

offset is 64-bit and mtd->erasesize is 32-bit, hence the truncation is
happening. Cast 'mtd->erasesize' with loff_t to fix this issue.

Signed-off-by: T Karthik Reddy <t.karthik.reddy@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
2020-09-11 17:13:56 -04:00
..
raw mtd: nand: Fix nand write error with bad block addresses above 32-bit 2020-09-11 17:13:56 -04:00
spi mtd: spinand: micron: Add new Micron SPI NAND devices with multiple dies 2020-07-20 22:29:18 +05:30
bbt.c Fix corner case in bad block table handling. 2020-08-04 23:30:02 -04:00
core.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
Kconfig mtd: nand: Add core infrastructure to support SPI NANDs 2018-09-20 20:10:49 +05:30
Makefile mtd: Makefile: deep cleanup 2019-12-04 17:10:51 -05:00