Re: [PATCH v7 15/18] mtd: spinand: extract variant ranking logic into spinand_op_find_best_variant()
Miquel Raynal <[email protected]>
| Newsgroups | org.kernel.vger.linux-spi,org.infradead.lists.linux-mtd,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
On 12/08/2026 at 00:03:10 +0530, Santhosh Kumar K <[email protected]> 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 <[email protected]> Reviewed-by: Miquel Raynal <[email protected]>