[PATCH v3 1/9] mtd: nand: Let ECC engines advertize the exact number of steps

Adam Ford aford173 at gmail.com
Sat Feb 6 07:59:32 EST 2021


On Wed, Jan 27, 2021 at 2:30 PM Miquel Raynal <miquel.raynal at bootlin.com> wrote:
>
> This is an information that might be useful for specific uses, so
> export it, which might avoid having to guess the number of steps when
> necessary.
>
> Signed-off-by: Miquel Raynal <miquel.raynal at bootlin.com>

For the series,
Tested-by: Adam Ford <aford173 at gmail.com> #logicpd Torpedo

> ---
>  include/linux/mtd/nand.h | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
> index 414f8a4d2853..632becb13b46 100644
> --- a/include/linux/mtd/nand.h
> +++ b/include/linux/mtd/nand.h
> @@ -231,12 +231,14 @@ struct nand_ops {
>  /**
>   * struct nand_ecc_context - Context for the ECC engine
>   * @conf: basic ECC engine parameters
> + * @nsteps: number of ECC steps
>   * @total: total number of bytes used for storing ECC codes, this is used by
>   *         generic OOB layouts
>   * @priv: ECC engine driver private data
>   */
>  struct nand_ecc_context {
>         struct nand_ecc_props conf;
> +       unsigned int nsteps;
>         unsigned int total;
>         void *priv;
>  };
> --
> 2.20.1
>



More information about the linux-mtd mailing list