diff options
author | Finn Thain <fthain@telegraphics.com.au> | 2017-08-04 01:43:19 -0400 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-08-10 19:55:34 -0400 |
commit | 7640d91d285893a5cf1e62b2cd00f0884c401d93 (patch) | |
tree | d91b130372a9b8f5c00adf8fa77e38a2f3ea36e6 /sound/isa | |
parent | b36c7db977e794230aa337651f510b62ea328afd (diff) | |
download | lwn-7640d91d285893a5cf1e62b2cd00f0884c401d93.tar.gz lwn-7640d91d285893a5cf1e62b2cd00f0884c401d93.zip |
scsi: mac_esp: Fix PIO transfers for MESSAGE IN phase
When in MESSAGE IN phase, the ESP device does not automatically
acknowledge each byte that is transferred by PIO. The mac_esp driver
neglects to explicitly ack them, which causes a timeout during messages
larger than one byte (e.g. tag bytes during reconnect). Fix this with an
ESP_CMD_MOK command after each byte.
The MESSAGE IN phase is also different in that each byte transferred
raises ESP_INTR_FDONE. So don't exit the transfer loop for this interrupt,
for this phase.
That resolves the "Reconnect IRQ2 timeout" error on those Macs which use
PIO transfers instead of PDMA. This patch also improves on the weak tests
for unexpected interrupts and phase changes during PIO transfers.
Tested-by: Stan Johnson <userm57@yahoo.com>
Fixes: 02507a80b35e ("[PATCH] [SCSI] mac_esp: fix PIO mode, take 2")
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'sound/isa')
0 files changed, 0 insertions, 0 deletions