mtd: rawnand: Use the data interface mode entry when relevant
authorMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 29 May 2020 11:13:02 +0000 (13:13 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 26 Jun 2020 06:35:05 +0000 (08:35 +0200)
commitfe7f7b0846bdcc53a3d3e83fea67f988ab5145d8
treec638e2d367958e5e8834992a2aed1cc88705b2b9
parent6ef10df37e7dd99a5a16228fabcc3a5141585b66
mtd: rawnand: Use the data interface mode entry when relevant

The data interface setup does not care about the default timing mode
but cares about the actual timing mode at the time of the call of this
helper.

Use this entry instead and let chip->default_timing_mode only be used
at initialization time.

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-9-miquel.raynal@bootlin.com
drivers/mtd/nand/raw/nand_base.c