esp: remove transfer size check from DMA DATA IN and DATA OUT transfers
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Sat, 13 Jul 2024 22:42:49 +0000 (23:42 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 16 Jul 2024 18:04:08 +0000 (20:04 +0200)
commitdfaf55a19ab0e0afba8aa34c7fb04c1566e41519
tree8da70da5f0015bd6f48a26c831deda0f76dda5ee
parent6b6593107d65113d3b83a936b06bab6c1c9fafe0
esp: remove transfer size check from DMA DATA IN and DATA OUT transfers

The transfer size check was originally added to prevent consecutive DMA TI
commands from causing an assert() due to an existing SCSI request being in
progress, but since the last set of updates [*] this is no longer required.

Remove the transfer size check from DMA DATA IN and DATA OUT transfers so
that issuing a DMA TI command when there is no data left to transfer does
not cause an assert() due to an existing SCSI request being in progress.

[*] See commits f3ace75be8..78d68f312a

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2415
Message-ID: <20240713224249.468084-1-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/scsi/esp.c