On Mon, 2020-05-18 at 15:52:37 UTC, Boris Brezillon wrote:
Mimic what's done in nand_soft_waitrdy() and add one to the jiffies timeout so we don't end up waiting less than actually required.
Reported-by: Tudor Ambarus tudor.ambarus@microchip.com Fixes: b0e137ad24b6c ("mtd: rawnand: Provide helper for polling GPIO R/B pin") Cc: stable@vger.kernel.org Signed-off-by: Boris Brezillon boris.brezillon@collabora.com Reviewed-by: Tudor Ambarus tudor.ambarus@microchip.com
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.
Miquel