[PATCH 3/8] ide: shorten timeout value in ide_driveid_update()

From: Bartlomiej Zolnierkiewicz
Date: Thu Jan 22 2009 - 09:18:59 EST


From: Bartlomiej Zolnierkiewicz <bzolnier@xxxxxxxxx>
Subject: [PATCH] ide: shorten timeout value in ide_driveid_update()

Shorten timeout value in ide_driveid_update() (30s -> 15s)
to match try_to_identify().

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@xxxxxxxxx>
---
drivers/ide/ide-iops.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Index: b/drivers/ide/ide-iops.c
===================================================================
--- a/drivers/ide/ide-iops.c
+++ b/drivers/ide/ide-iops.c
@@ -325,7 +325,7 @@ int ide_driveid_update(ide_drive_t *driv

tp_ops->exec_command(hwif, ATA_CMD_ID_ATA);

- if (ide_busy_sleep(hwif, WAIT_WORSTCASE, use_altstatus)) {
+ if (ide_busy_sleep(hwif, WAIT_WORSTCASE / 2, use_altstatus)) {
rc = 1;
goto out_err;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/