sata_mv: properly print HC registers
PATCH 1/1 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 <[email protected]>
---
commit 0c7dffa50cf862d70893930f8588b4e094d3d942
tree bfbbee1b59c56c9731155c6139597c65231678e3
parent f3188a4fb731b437408c747e29dde59b1d7511f8
author Dan Aloni <[email protected]> Sun, 02 Apr 2006 18:39:31 +0300 committer Dan Aloni <[email protected]> Sun, 02 Apr 2006 18:39:31 +0300
drivers/scsi/sata_mv.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/scsi/sata_mv.c +1 -1
@@ -748,7 +748,7 @@ static void mv_dump_all_regs(void __iomemv_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 ); }
Signature · 3 lines
Dan Aloni, Linux specialist XIV LTD, http://www.xivstorage.com [email protected], [email protected], [email protected], [email protected]