Miquel Raynal d193792a26 mtd: nand: Create a helper to extract the ECC configuration
Despite its current name, the eccreq field actually encodes both the
NAND requirements and the final ECC configuration. That works fine when
using on-die ECC since those 2 concepts match perfectly, but it starts
being a problem as soon as we use on-host ECC engines, where we're not
guaranteed to have a perfect match.

Let's hide the ECC configuration access behind a helper so we can later
split those 2 concepts.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200827085208.16276-12-miquel.raynal@bootlin.com
2020-09-28 15:59:48 +02:00
..
2020-08-03 20:37:22 -07:00
2020-08-11 11:58:31 +10:00
2020-08-07 13:00:53 -07:00
2020-08-18 15:58:53 -07:00
2020-08-06 16:43:36 -07:00
2020-08-14 13:34:37 -07:00