From: Dan Aloni <da-x@monatomic.org>
To: Linux Kernel List <linux-kernel@vger.kernel.org>
Cc: Jeff Garzik <jgarzik@pobox.com>
Subject: [PATCH] sata_mv: properly print HC registers
Date: Sun, 2 Apr 2006 18:43:10 +0300 [thread overview]
Message-ID: <20060402154310.GA20270@localdomain> (raw)
Currently it crashes when trying to dump the registers. This
is an obvious one-liner fix I suppose.
Signed-off-by: Dan Aloni <da-x@monatomic.org>
---
commit 0c7dffa50cf862d70893930f8588b4e094d3d942
tree bfbbee1b59c56c9731155c6139597c65231678e3
parent f3188a4fb731b437408c747e29dde59b1d7511f8
author Dan Aloni <da-x@monatomic.org> Sun, 02 Apr 2006 18:39:31 +0300
committer Dan Aloni <da-x@monatomic.org> Sun, 02 Apr 2006 18:39:31 +0300
drivers/scsi/sata_mv.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/scsi/sata_mv.c b/drivers/scsi/sata_mv.c
index fa901fd..6a72a23 100644
--- a/drivers/scsi/sata_mv.c
+++ b/drivers/scsi/sata_mv.c
@@ -748,7 +748,7 @@ static void mv_dump_all_regs(void __iome
mv_dump_mem(mmio_base+0xf00, 0x4);
mv_dump_mem(mmio_base+0x1d00, 0x6c);
for (hc = start_hc; hc < start_hc + num_hcs; hc++) {
- hc_base = mv_hc_base(mmio_base, port >> MV_PORT_HC_SHIFT);
+ hc_base = mv_hc_base(mmio_base, hc);
DPRINTK("HC regs (HC %i):\n", hc);
mv_dump_mem(hc_base, 0x1c);
}
--
Dan Aloni, Linux specialist
XIV LTD, http://www.xivstorage.com
da-x@monatomic.org, da-x@colinux.org, da-x@gmx.net, dan@xiv.co.il
reply other threads:[~2006-04-02 15:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20060402154310.GA20270@localdomain \
--to=da-x@monatomic.org \
--cc=jgarzik@pobox.com \
--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®