[PATCH] sata_mv: properly print HC registers
authorDan Aloni <da-x@monatomic.org>
Tue, 11 Apr 2006 06:20:22 +0000 (23:20 -0700)
committerJeff Garzik <jeff@garzik.org>
Wed, 12 Apr 2006 22:05:56 +0000 (18:05 -0400)
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>
drivers/scsi/sata_mv.c

index b64b077573c2d675c8e891a56886bfe4c9691549..d5fdcb9a88425fb3edac03a867a3cce74dd5fb34 100644 (file)
@@ -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);
        }