mtd: rawnand: omap: Aggregate the HW configuration of the ELM
authorMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 10 Jun 2021 13:49:02 +0000 (15:49 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 18 Jun 2021 07:45:21 +0000 (09:45 +0200)
commit47b4c8bd5db1c986c8b4b7189791701fe5c1897e
tree96a498050ec82870c5d467f91bd8ca8eaf4c5143
parent08d8c62164a322eb923034acacf25246b775593a
mtd: rawnand: omap: Aggregate the HW configuration of the ELM

Instead of calling elm_config() for each possible BCH configuration,
just save the BCH configuration that must be applied and use it in a
single call at the bottom.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210610134906.3503303-2-miquel.raynal@bootlin.com
drivers/mtd/nand/raw/omap2.c