android_kernel_xiaomi_sm8350/drivers/mtd
Ricard Wanderlöf ff0dab64b4 [MTD] NAND: Fix nand_default_mark_blockbad() when flash-based BBT disabled
When a flash-based BBT is not used, nand_default_mark_blockbad() is supposed
to mark the block bad in the oob. However, it sets the wrong length variable
so that no bad block marker is in fact written. This patch attempts to
rectify that.

(As note, it seems to be that logically, it shouldn't be necessary to set
both length variables, as one appears to be for the main buffer, and
one for the oob buffer, but this is how it is done in several places,
including the code for the mtd character device MEMWRITEOOB and MEMREADOOB
ioctls. I'm not sure if this is a temporary solution during some rework of
the mtd infrastructure, or whether there is a deeper thought here.)

Signed-off-by: Ricard Wanderlöf <ricardw@axis.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2006-10-26 13:17:49 +03:00
..
chips [MTD] NOR: leave Intel chips in read-array mode on suspend 2006-10-21 16:43:53 +01:00
devices [PATCH] BLOCK: Make it possible to disable the block layer [try #6] 2006-09-30 20:52:31 +02:00
maps Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 2006-10-21 16:46:04 +01:00
nand [MTD] NAND: Fix nand_default_mark_blockbad() when flash-based BBT disabled 2006-10-26 13:17:49 +03:00
onenand Fix several typos in drivers/ 2006-10-03 22:31:37 +02:00
afs.c
cmdlinepart.c
ftl.c
inftlcore.c
inftlmount.c
Kconfig [MTD] SSFDC must depend on BLOCK 2006-10-09 07:25:28 +01:00
Makefile [MTD] Add SSFDC (SmartMedia) read-only translation layer 2006-09-22 11:01:37 +01:00
mtd_blkdevs.c [MTD] fix printk warning 2006-10-01 17:57:26 +01:00
mtdblock_ro.c
mtdblock.c
mtdchar.c [MTD] mtdchar: Fix MEMGETOOBSEL and ECCGETLAYOUT ioctls 2006-10-21 16:33:17 +01:00
mtdconcat.c
mtdcore.c [MTD] Unlock NOR flash automatically where necessary 2006-09-22 10:07:08 +01:00
mtdpart.c
nftlcore.c [MTD] fix nftl_write warning 2006-10-02 09:42:25 +01:00
nftlmount.c
redboot.c
rfd_ftl.c
ssfdc.c [MTD] Whitespace cleanup in SSFDC driver. 2006-09-23 16:20:48 +01:00