aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/scsi/pmcraid.h
diff options
context:
space:
mode:
authorOndrej Zary <linux@rainbow-software.org>2017-07-03 03:59:06 -0400
committerMartin K. Petersen <martin.petersen@oracle.com>2017-08-07 14:04:00 -0400
commit99a974e6b8b0734fd2f5d8185e640aba0d6da06f (patch)
treee6cd80216efa3409984f6f3634b096fd7fdcc3f8 /drivers/scsi/pmcraid.h
parentscsi: g_NCR5380: Use unambiguous terminology for PDMA send and receive (diff)
downloadwireguard-linux-99a974e6b8b0734fd2f5d8185e640aba0d6da06f.tar.xz
wireguard-linux-99a974e6b8b0734fd2f5d8185e640aba0d6da06f.zip
scsi: g_NCR5380: Re-work PDMA loops
The polling loops in pread() and pwrite() can easily become infinite loops and hang the machine. Merge the IRQ check into host buffer wait loop and add polling limit. Also place a limit on polling for 53C80 registers accessibility. [Use NCR5380_poll_politely2() for register polling. Rely on polling for gated IRQ rather than polling for phase error, like the algorithm in the 53c400 datasheet. Move DTC436 workarounds into a separate patch. Factor-out common code as wait_for_53c80_access(). Rework the residual calculations. -- F.T.] Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Signed-off-by: Finn Thain <fthain@telegraphics.com.au> Tested-by: Ondrej Zary <linux@rainbow-software.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/pmcraid.h')
0 files changed, 0 insertions, 0 deletions