From: Ryan Power <rpower@sysreset.com>
To: linux-ide@vger.kernel.org
Cc: jgarzik@pobox.com, Mark Lord <liml@rtr.ca>,
Tejun Heo <htejun@gmail.com>,
linux-kernel@vger.kernel.org
Subject: [PATCH 2.6.22.1] libata: Adjust libata to ignore errors after spinup
Date: Sun, 15 Jul 2007 21:28:39 -0600 [thread overview]
Message-ID: <6.2.0.14.2.20070715210841.02fcab90@linux.sysreset.com> (raw)
In-Reply-To: <46982875.60503@rtr.ca>
From: Ryan Power <rpower@sysreset.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@sysreset.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;
next prev parent reply other threads:[~2007-07-16 3:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-13 6:14 Spinup command fails on WD3200JS Ryan Power
2007-07-13 9:21 ` Tejun Heo
2007-07-13 12:53 ` Mark Lord
2007-07-14 0:55 ` Ryan Power
2007-07-14 1:35 ` Mark Lord
2007-07-16 3:28 ` Ryan Power [this message]
2007-07-16 23:07 ` [PATCH 2.6.22.1] libata: Adjust libata to ignore errors after spinup Mark Lord
2007-07-16 23:15 ` Mark Lord
2007-07-16 23:19 ` Mark Lord
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6.2.0.14.2.20070715210841.02fcab90@linux.sysreset.com \
--to=rpower@sysreset.com \
--cc=htejun@gmail.com \
--cc=jgarzik@pobox.com \
--cc=liml@rtr.ca \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.