File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -432,7 +432,7 @@ static struct scsi_host_template mac_scsi_template = {
432
432
.eh_host_reset_handler = macscsi_host_reset ,
433
433
.can_queue = 16 ,
434
434
.this_id = 7 ,
435
- .sg_tablesize = 1 ,
435
+ .sg_tablesize = SG_ALL ,
436
436
.cmd_per_lun = 2 ,
437
437
.dma_boundary = PAGE_SIZE - 1 ,
438
438
.cmd_size = sizeof (struct NCR5380_cmd ),
@@ -470,6 +470,9 @@ static int __init mac_scsi_probe(struct platform_device *pdev)
470
470
if (setup_hostid >= 0 )
471
471
mac_scsi_template .this_id = setup_hostid & 7 ;
472
472
473
+ if (macintosh_config -> ident == MAC_MODEL_IIFX )
474
+ mac_scsi_template .sg_tablesize = 1 ;
475
+
473
476
instance = scsi_host_alloc (& mac_scsi_template ,
474
477
sizeof (struct NCR5380_hostdata ));
475
478
if (!instance )
@@ -491,6 +494,9 @@ static int __init mac_scsi_probe(struct platform_device *pdev)
491
494
492
495
host_flags |= setup_toshiba_delay > 0 ? FLAG_TOSHIBA_DELAY : 0 ;
493
496
497
+ if (instance -> sg_tablesize > 1 )
498
+ host_flags |= FLAG_DMA_FIXUP ;
499
+
494
500
error = NCR5380_init (instance , host_flags | FLAG_LATE_DMA_SETUP );
495
501
if (error )
496
502
goto fail_init ;
You can’t perform that action at this time.
0 commit comments