OSDN Git Service

mtd: rawnand: timings: Provide onfi_fill_data_interface() with a data interface
authorMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 29 May 2020 11:13:07 +0000 (13:13 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 26 Jun 2020 06:35:05 +0000 (08:35 +0200)
commit623c0141f560800c4fc7a7502654994633791d36
treee41549350f594f93851a99c4423ea7d02c862bf1
parent844cc46460095023365345bfe61a0f195f9cb66e
mtd: rawnand: timings: Provide onfi_fill_data_interface() with a data interface

Right now the core uses onfi_fill_data_interface() to initialize the
nand_data_interface object embedded in nand_chip, but we are about to
allocate this object dynamically and let manufacturer drivers provide
their own interface config. Let's patch the onfi_fill_data_interface()
so it can initialize an interface config that's not the one
currently attached to the nand_chip.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://lore.kernel.org/linux-mtd/20200529111322.7184-14-miquel.raynal@bootlin.com
drivers/mtd/nand/raw/internals.h
drivers/mtd/nand/raw/nand_base.c
drivers/mtd/nand/raw/nand_timings.c