Re: [PATCH v4 2/5] mtd: rawnand: brcmnand: Fix potential false time out warning

From: Miquel Raynal
Date: Thu Jul 13 2023 - 03:59:55 EST


On Thu, 2023-07-06 at 18:29:06 UTC, William Zhang wrote:
> If system is busy during the command status polling function, the driver
> may not get the chance to poll the status register till the end of time
> out and return the premature status. Do a final check after time out
> happens to ensure reading the correct status.
>
> Fixes: 9d2ee0a60b8b ("mtd: nand: brcmnand: Check flash #WP pin status before nand erase/program")
> Signed-off-by: William Zhang <william.zhang@xxxxxxxxxxxx>
> Reviewed-by: Florian Fainelli <florian.fainelli@xxxxxxxxxxxx>
> Cc: stable@xxxxxxxxxxxxxxx

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.

Miquel