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

Miquel Raynal <[email protected]>
Newsgroups gmane.linux.drivers.devicetree,gmane.linux.kernel.spi.devel,gmane.linux.kernel,gmane.linux.drivers.mtd
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]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.