[PATCH v4 0/5] g_NCR5380: PDMA fixes and cleanup

From: Finn Thain
Date: Wed Jun 28 2017 - 00:04:58 EST


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.

Changed since v3:
- Add Ondrej's workaround for corrupt WRITE commands on DTC boards.
- Reset the 53c400 logic after any short PDMA transfer.
- Don't fail the transfer if the 53c400 logic got a reset.


Finn Thain (1):
g_NCR5380: Cleanup comments and whitespace

Ondrej Zary (4):
g_NCR5380: Fix PDMA transfer size
g_NCR5380: End PDMA transfer correctly on target disconnection
g_NCR5380: Limit PDMA send to 512 B to avoid random corruption on
DTC3181E
g_NCR5380: Re-work PDMA loops

drivers/scsi/g_NCR5380.c | 239 ++++++++++++++++++++++++-----------------------
1 file changed, 120 insertions(+), 119 deletions(-)

--
2.13.0