[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <6.2.0.14.2.20070715210841.02fcab90@linux.sysreset.com>
Date: Sun, 15 Jul 2007 21:28:39 -0600
From: Ryan Power <rpower@...reset.com>
To: linux-ide@...r.kernel.org
Cc: jgarzik@...ox.com, Mark Lord <liml@....ca>,
Tejun Heo <htejun@...il.com>, linux-kernel@...r.kernel.org
Subject: [PATCH 2.6.22.1] libata: Adjust libata to ignore errors after
spinup
From: Ryan Power <rpower@...reset.com>
Adjust libata to ignore errors after spinup
This patch is to ignore errors from the spinup attempt if the drive is
in the "standby id" state.
Signed-off-by: Ryan Power <rpower@...reset.com>
---
Index: drivers.new/ata/libata-core.c
--- drivers/ata/libata-core.c 2007-07-10 12:56:30.000000000 -0600
+++ drivers.new/ata/libata-core.c 2007-07-15 01:58:49.000000000 -0600
@@ -1750,7 +1750,7 @@ int ata_dev_read_id(struct ata_device *d
tf.protocol = ATA_PROT_NODATA;
tf.flags |= ATA_TFLAG_ISADDR | ATA_TFLAG_DEVICE;
err_mask = ata_exec_internal(dev, &tf, NULL, DMA_NONE,
NULL, 0);
- if (err_mask) {
+ if (err_mask && id[2] != 0x738c) {
rc = -EIO;
reason = "SPINUP failed";
goto err_out;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists