linux-sg2042/include/linux/mtd
Archit Taneja 9f3e04297b mtd: nand: don't select chip in nand_chip's block_bad op
One of the arguments passed to struct nand_chip's block_bad op is
'getchip', which, if true, is supposed to get and select the nand device,
and later unselect and release the device.

This op is intended to be replaceable by drivers. The drivers shouldn't
be responsible for selecting/unselecting chip. Like other ops, the chip
should already be selected before the block_bad op is called.

Remove the getchip argument from the block_bad op and
nand_block_checkbad. Move the chip selection to nand_block_isbad, since it
is the only caller to nand_block_checkbad which requires chip selection.

Modify nand_block_bad (the default function for the op) such that it
doesn't select the chip.

Remove the getchip argument from the bad_block funcs in cafe_nand,
diskonchip and docg4 drivers.

Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
2016-03-10 10:52:21 -08:00
..
bbm.h mtd: onenand: make onenand_scan_bbt() static 2016-01-23 14:00:16 -08:00
blktrans.h mtd_blktrans_ops->release() should return void 2013-05-05 21:31:22 -04:00
cfi.h mtd: cfi: deinline large functions 2015-05-27 12:42:16 -07:00
cfi_endian.h
concat.h
doc2000.h mtd: diskonchip: use inline functions for DocRead/DocWrite 2012-11-16 10:57:38 +02:00
flashchip.h
fsmc.h mtd: nand: fsmc: update of OF support 2013-08-05 20:48:49 +01:00
ftl.h
gen_probe.h
inftl.h mtd: inftl: kill unused oobinfo field 2016-01-26 10:27:33 -08:00
latch-addr-flash.h
lpc32xx_mlc.h mtd: lpc32xx_mlc: Make driver independent of AMBA DMA engine driver 2012-09-29 14:53:08 +01:00
lpc32xx_slc.h mtd: lpc32xx_slc: Make driver independent of AMBA DMA engine driver 2012-09-29 14:52:45 +01:00
map.h mtd: map: fix .set_vpp() documentation 2016-02-12 11:09:32 -08:00
mtd.h mtd: create an mtd_oobavail() helper and make use of it 2016-03-07 16:23:09 -08:00
mtdram.h mtd: mtdram: add missing 'const' 2014-01-20 11:55:23 -08:00
nand-gpio.h
nand.h mtd: nand: don't select chip in nand_chip's block_bad op 2016-03-10 10:52:21 -08:00
nand_bch.h mtd: nand: simplify nand_bch_init() usage 2016-03-07 16:23:09 -08:00
nand_ecc.h
ndfc.h
nftl.h mtd: nftl: kill unused oobinfo field 2016-01-26 10:27:34 -08:00
onenand.h
onenand_regs.h
partitions.h mtd: partitions: support a cleanup callback for parsers 2015-12-09 14:57:44 -08:00
pfow.h mtd: pfow: remove unused variable 2014-05-28 00:05:23 -07:00
physmap.h mtd: physmap: add const qualifiers 2013-04-05 13:02:40 +01:00
pismo.h
plat-ram.h mtd: plat-ram: add const quilifiers 2013-04-05 13:02:33 +01:00
qinfo.h
sh_flctl.h mtd: sh_flctl: pass FIFO as physical address 2015-12-18 18:27:13 -08:00
sharpsl.h
spear_smi.h Shiraz has moved 2014-04-18 16:40:08 -07:00
spi-nor.h mtd: spi-nor: add TB (Top/Bottom) protect support 2016-03-07 18:01:57 -08:00
super.h
ubi.h UBI: Add initial support for scatter gather 2015-01-28 16:04:26 +01:00
xip.h