diff options
author | Finn Thain <fthain@telegraphics.com.au> | 2016-03-23 11:10:14 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-04-11 22:57:09 +0200 |
commit | 1bb4600245d4d40245dd505ca17528e0b9a9ba8c (patch) | |
tree | 17e5a40c2e3e9a3ded8c5d33883ec4cacbac3af9 /drivers/scsi/pas16.c | |
parent | atari_NCR5380: Remove DMA_MIN_SIZE macro (diff) | |
download | linux-1bb4600245d4d40245dd505ca17528e0b9a9ba8c.tar.xz linux-1bb4600245d4d40245dd505ca17528e0b9a9ba8c.zip |
ncr5380: Disable the DMA errata workaround flag by default
The only chip that needs the workarounds enabled is an early NMOS
device. That means that the common case is to disable them.
Unfortunately the sense of the flag is such that it has to be set
for the common case.
Rename the flag so that zero can be used to mean "no errata workarounds
needed". This simplifies the code.
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Tested-by: Michael Schmitz <schmitzmic@gmail.com>
Tested-by: Ondrej Zary <linux@rainbow-software.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/pas16.c')
-rw-r--r-- | drivers/scsi/pas16.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/pas16.c b/drivers/scsi/pas16.c index 512037e27783..7589fea01186 100644 --- a/drivers/scsi/pas16.c +++ b/drivers/scsi/pas16.c @@ -377,7 +377,7 @@ static int __init pas16_detect(struct scsi_host_template *tpnt) instance->io_port = io_port; - if (NCR5380_init(instance, 0)) + if (NCR5380_init(instance, FLAG_DMA_FIXUP)) goto out_unregister; NCR5380_maybe_reset_bus(instance); |