mtd: rawnand: Add the ->choose_interface_config() hook
authorMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 29 May 2020 11:13:16 +0000 (13:13 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 26 Jun 2020 06:35:07 +0000 (08:35 +0200)
commit26d014f0400e5ff54cc80c8329e3adbd74db1e04
tree72a25c6e2f25c1b9658cdec6903cb4abe5af746b
parentb5b39f640c1f5621ed4ff6418e74ee35ff5d988e
mtd: rawnand: Add the ->choose_interface_config() hook

This hook can be overloaded by NAND manufacturer drivers to propose
alternative timings when not following the main standards. In this
case, the manufacturer drivers is responsible for choosing the best
interface configuration that fits both the controller and chip
capabilities.

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-23-miquel.raynal@bootlin.com
drivers/mtd/nand/raw/nand_base.c
include/linux/mtd/rawnand.h