From: Jeff Garzik <jeff@garzik.org>
To: linux-ide@vger.kernel.org
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: [PATCH 4/5] libata: Print out Status register
Date: Thu, 28 Sep 2006 20:28:22 -0400 [thread overview]
Message-ID: <20060929002822.GD7458@havoc.gtf.org> (raw)
In-Reply-To: <20060929002601.GA7397@havoc.gtf.org>
commit 35aa7a436c0901fd6f352eff347f58448c141a25
Author: Jeff Garzik <jeff@garzik.org>
Date: Thu Sep 28 06:50:24 2006 -0400
[libata] Print out Status register, if a BSY-sleep takes too long
We have the info stored in an ata_busy_sleep() variable, so might as
well print it, and provide some additional diagnostic info.
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/libata-core.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
35aa7a436c0901fd6f352eff347f58448c141a25
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 72644bd..7ab45f4 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -2340,7 +2340,8 @@ unsigned int ata_busy_sleep (struct ata_
if (status & ATA_BUSY)
ata_port_printk(ap, KERN_WARNING,
- "port is slow to respond, please be patient\n");
+ "port is slow to respond, please be patient "
+ "(Status 0x%x)\n", status);
timeout = timer_start + tmout;
while ((status & ATA_BUSY) && (time_before(jiffies, timeout))) {
@@ -2350,7 +2351,8 @@ unsigned int ata_busy_sleep (struct ata_
if (status & ATA_BUSY) {
ata_port_printk(ap, KERN_ERR, "port failed to respond "
- "(%lu secs)\n", tmout / HZ);
+ "(%lu secs, Status 0x%x)\n",
+ tmout / HZ, status);
return 1;
}
next prev parent reply other threads:[~2006-09-29 0:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-29 0:26 [PATCH 0/5] libata: various queued changes Jeff Garzik
2006-09-29 0:26 ` [PATCH 1/5] libata: Use new PCI_VDEVICE() macro Jeff Garzik
2006-09-29 0:27 ` [PATCH 2/5] libata: minor PCI IDE probe fixes and cleanups Jeff Garzik
2006-09-29 0:27 ` [PATCH 3/5] libata: init probe_ent->private_data in a common loc Jeff Garzik
2006-09-29 0:28 ` Jeff Garzik [this message]
2006-09-29 0:28 ` [PATCH 5/5] libata: PCI ID table cleanups Jeff Garzik
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=20060929002822.GD7458@havoc.gtf.org \
--to=jeff@garzik.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®