Re: [PATCH v4 2/7] mtd: spi-nor: Wait for NOR ready with poll_timeout_us()

From: Miquel Raynal

Date: Mon Nov 23 2026 - 09:14:05 EST


On 16/10/2026 at 12:29:12 +02, Paul Cercueil <paul.cercueil@xxxxxxxxxxx> wrote:

> From: Tanmay Jagdale <tanmay@xxxxxxxxxxx>
>
> Instead of polling for the spi_nor_ready() with a custom loop, use
> poll_timeout_us(). The sleep period between two polls is set to 100 us
> which I think should be fine.
>
> This will make it simpler to support waiting for the SPI NOR in atomic
> context later.
>
> Signed-off-by: Tanmay Jagdale <tanmay@xxxxxxxxxxx>
> Co-developed-by: Paul Cercueil <paul.cercueil@xxxxxxxxxxx>
> Signed-off-by: Paul Cercueil <paul.cercueil@xxxxxxxxxxx>

Reviewed-by: Miquel Raynal <miquel.raynal@xxxxxxxxxxx>