On Thu, 2021-12-16 at 11:16:38 UTC, Miquel Raynal wrote: > Add the necessary helpers to register/unregister hardware ECC engines > that will be called from ECC engine drivers. > > Also add helpers to get the right engine from the user > perspective. Keep a reference of the in use ECC engine in order to > prevent modules to be unloaded. Put the reference when the engine gets > retired. > > A static list of hardware (only) ECC engines is setup to keep track of > the registered engines. > > Signed-off-by: Miquel Raynal <miquel.raynal@xxxxxxxxxxx> Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git spi-mem-ecc. Miquel