lkml.org 
[lkml]   [2006]   [Apr]   [2]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateSun, 2 Apr 2006 18:43:10 +0300
FromDan Aloni <>
Subject[PATCH] sata_mv: properly print HC registers
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-04-03 14:37    [from the cache]
©2003-2008