mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] sata_mv: properly print HC registers
@ 2006-04-02 15:43 Dan Aloni
  0 siblings, 0 replies; only message in thread
From: Dan Aloni @ 2006-04-02 15:43 UTC (permalink / raw)
  To: Linux Kernel List; +Cc: Jeff Garzik

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-04-02 15:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-02 15:43 [PATCH] sata_mv: properly print HC registers Dan Aloni

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®