aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sgiwd93.c
diff options
context:
space:
mode:
authorThomas Bogendoerfer <tsbogend@alpha.franken.de>2008-03-21 17:25:43 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-04-07 13:19:01 -0400
commitbe3cb3d84bb8dffecb7c5570355866075caa7e95 (patch)
tree2a9278e3d094bbccbf172e07ee2758eca483a400 /drivers/scsi/sgiwd93.c
parent7748369f49d428e558c519ed344d3005d38347b7 (diff)
[SCSI] WD33C93: let platform stub override no_sync/fast/dma_mode
SGI machines with WD33C93 allow usage of burst mode DMA, which increases performance noticable. To make this selectable by the sgiwd93 stub, setting the values for no_sync, fast and dma_mode has been moved to the individual platform stubs. Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de> Acked-by: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/sgiwd93.c')
-rw-r--r--drivers/scsi/sgiwd93.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/scsi/sgiwd93.c b/drivers/scsi/sgiwd93.c
index 26cfc56c7091..03e359670506 100644
--- a/drivers/scsi/sgiwd93.c
+++ b/drivers/scsi/sgiwd93.c
@@ -263,10 +263,11 @@ static int __init sgiwd93_probe(struct platform_device *pdev)
263 regs.SASR = wdregs + 3; 263 regs.SASR = wdregs + 3;
264 regs.SCMD = wdregs + 7; 264 regs.SCMD = wdregs + 7;
265 265
266 wd33c93_init(host, regs, dma_setup, dma_stop, WD33C93_FS_MHZ(20)); 266 hdata->wh.no_sync = 0;
267 hdata->wh.fast = 1;
268 hdata->wh.dma_mode = CTRL_BURST;
267 269
268 if (hdata->wh.no_sync == 0xff) 270 wd33c93_init(host, regs, dma_setup, dma_stop, WD33C93_FS_MHZ(20));
269 hdata->wh.no_sync = 0;
270 271
271 err = request_irq(irq, sgiwd93_intr, 0, "SGI WD93", host); 272 err = request_irq(irq, sgiwd93_intr, 0, "SGI WD93", host);
272 if (err) { 273 if (err) {