[PATCH v7 15/18] mtd: spinand: extract variant ranking logic into spinand_op_find_best_variant()

Miquel Raynal miquel.raynal at bootlin.com
Thu Aug 13 01:24:36 PDT 2026


On 12/08/2026 at 00:03:10 +0530, Santhosh Kumar K <s-k6 at ti.com> wrote:

> Refactor spinand_select_op_variant() to extract the inner loop into a
> shared helper spinand_op_find_best_variant(). The helper takes a
> skip_mask bitmask of already-tried variant indices, enabling callers to
> iterate variants in ranked performance order while skipping those
> already attempted. spinand_select_op_variant() becomes a one-liner
> wrapper. No functional change.
>
> Signed-off-by: Santhosh Kumar K <s-k6 at ti.com>

Reviewed-by: Miquel Raynal <miquel.raynal at bootlin.com>



More information about the linux-mtd mailing list