aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Aloni <da-x@monatomic.org>2006-04-10 23:20:22 -0700
committerJeff Garzik <jeff@garzik.org>2006-04-12 18:05:56 -0400
commitd220c37e0a3c9a47ae00e87e044d963b3ea040bc (patch)
treef2a9dae41df1e2267ed1ffb2af1215e0fe35858c
parenta145410dccdb44f81d3b56763ef9b6f721f4e47c (diff)
downloadkernel_samsung_tuna-d220c37e0a3c9a47ae00e87e044d963b3ea040bc.zip
kernel_samsung_tuna-d220c37e0a3c9a47ae00e87e044d963b3ea040bc.tar.gz
kernel_samsung_tuna-d220c37e0a3c9a47ae00e87e044d963b3ea040bc.tar.bz2
[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> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Jeff Garzik <jeff@garzik.org>
-rw-r--r--drivers/scsi/sata_mv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/sata_mv.c b/drivers/scsi/sata_mv.c
index b64b077..d5fdcb9 100644
--- a/drivers/scsi/sata_mv.c
+++ b/drivers/scsi/sata_mv.c
@@ -747,7 +747,7 @@ static void mv_dump_all_regs(void __iomem *mmio_base, int port,
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);
}