[PATCH v4 2/7] mtd: spi-nor: Wait for NOR ready with poll_timeout_us()
Miquel Raynal
miquel.raynal at bootlin.com
Mon Nov 23 06:13:49 PST 2026
On 16/10/2026 at 12:29:12 +02, Paul Cercueil <paul.cercueil at bootlin.com> wrote:
> From: Tanmay Jagdale <tanmay at marvell.com>
>
> 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 at marvell.com>
> Co-developed-by: Paul Cercueil <paul.cercueil at bootlin.com>
> Signed-off-by: Paul Cercueil <paul.cercueil at bootlin.com>
Reviewed-by: Miquel Raynal <miquel.raynal at bootlin.com>
More information about the linux-mtd
mailing list