]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: rawnand: brcmnand: Fix potential false time out warning
authorWilliam Zhang <william.zhang@broadcom.com>
Mon, 16 Sep 2024 09:58:44 +0000 (11:58 +0200)
committerTom Rini <trini@konsulko.com>
Sat, 5 Oct 2024 17:19:24 +0000 (11:19 -0600)
commit29777ec3740d032098b4484f4b2398fabe42869a
tree3ce71f60262495cf7f75009696f8b5075b772249
parent16101726e85bf111eae6c364b710051d94d5e24f
mtd: rawnand: brcmnand: Fix potential false time out warning

Backport from the Linux kernel:
commit 9cc0a598b944816f2968baf2631757f22721b996
"mtd: rawnand: brcmnand: Fix potential false time out warning"

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.

Signed-off-by: William Zhang <william.zhang@broadcom.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20230706182909.79151-3-william.zhang@broadcom.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: William Zhang <william.zhang@broadcom.com>
drivers/mtd/nand/raw/brcmnand/brcmnand.c