From: Dan Aloni Date: Tue, 11 Apr 2006 06:20:22 +0000 (-0700) Subject: [PATCH] sata_mv: properly print HC registers X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d220c37e0a3c9a47ae00e87e044d963b3ea040bc;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git [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 Signed-off-by: Andrew Morton Signed-off-by: Jeff Garzik --- diff --git a/drivers/scsi/sata_mv.c b/drivers/scsi/sata_mv.c index b64b077573c2..d5fdcb9a8842 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); }