William Zhang 9cc0a598b9 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.

Fixes: 9d2ee0a60b8b ("mtd: nand: brcmnand: Check flash #WP pin status before nand erase/program")
Signed-off-by: William Zhang <william.zhang@broadcom.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Cc: stable@vger.kernel.org
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20230706182909.79151-3-william.zhang@broadcom.com
2023-07-12 13:45:08 +02:00
..
2023-06-28 14:02:03 -07:00
2023-04-19 20:39:03 +02:00
2022-09-20 10:40:30 +02:00
2023-06-09 17:27:14 +02:00
2022-09-19 18:14:53 +02:00
2023-06-22 23:00:43 +02:00