ide: increase timeout in wait_drive_not_busy()

Some ATAPI devices take longer than the current max timeout value to
become ready (i.e. TEAC DV-W28ECW takes 6 ms) so increase the timeout
value to 10 ms.

This fixes kernel.org bugzilla bug #10887:
http://bugzilla.kernel.org/show_bug.cgi?id=10887Reported-by: NMasanari Iida <standby24x7@gmail.com>
Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
上级 ce42a549
...@@ -225,10 +225,10 @@ static u8 wait_drive_not_busy(ide_drive_t *drive) ...@@ -225,10 +225,10 @@ static u8 wait_drive_not_busy(ide_drive_t *drive)
u8 stat; u8 stat;
/* /*
* Last sector was transfered, wait until drive is ready. * Last sector was transfered, wait until device is ready. This can
* This can take up to 10 usec, but we will wait max 1 ms. * take up to 6 ms on some ATAPI devices, so we will wait max 10 ms.
*/ */
for (retries = 0; retries < 100; retries++) { for (retries = 0; retries < 1000; retries++) {
stat = ide_read_status(drive); stat = ide_read_status(drive);
if (stat & BUSY_STAT) if (stat & BUSY_STAT)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册