mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
mted: nand_wait_ready timeout fix
nand_wait_ready timeout should not assume HZ=100. Make it independent of HZ value by using msecs_to_jiffies. Signed-off-by: Matthieu CASTET <[email protected]> Signed-off-by: Artem Bityutskiy <[email protected]>
This commit is contained in:
1 parent
a6b3ed29ae
commit
ca6a248930
1 file changed
+1
-1
@@ -490,7 +490,7 @@ static void panic_nand_wait_ready(struct mtd_info *mtd, unsigned long timeo)
|
||||
void nand_wait_ready(struct mtd_info *mtd)
|
||||
{
|
||||
struct nand_chip *chip = mtd->priv;
|
||||
unsigned long timeo = jiffies + 2;
|
||||
unsigned long timeo = jiffies + msecs_to_jiffies(20);
|
||||
|
||||
/* 400ms timeout */
|
||||
if (in_interrupt() || oops_in_progress)
|
||||
|
||||
Reference in new issue
Block a user