It is observed that when wrong firmware is downloaded for
PCIe card, system hangs for 10 seconds. The reason is mdelay()
is used when firmware status is polled.
Replace mdelay with msleep(non-blocking API) to fix the issue.
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
ret = 0;
break;
} else {
- mdelay(100);
+ msleep(100);
ret = -1;
}
}
ret = 0;
break;
} else {
- mdelay(100);
+ msleep(100);
ret = -1;
}
}