Ondrej, would you please test this new series? Changed since v1: - PDMA transfer residual is calculated earlier. - End of DMA flag check is now polled (if there is any residual). Changed since v2: - Bail out of transfer loops when Gated IRQ gets asserted. - Make udelay conditional on board type. - Drop sg_tablesize patch due to performance regression. Finn Thain (1): g_NCR5380: Cleanup comments and whitespace Ondrej Zary (3): g_NCR5380: Fix PDMA transfer size g_NCR5380: End PDMA transfer correctly on target disconnection g_NCR5380: Re-work PDMA loops drivers/scsi/g_NCR5380.c | 239 +++++++++++++++++++++++------------------------ 1 file changed, 116 insertions(+), 123 deletions(-) -- 2.13.0