OSDN Git Service

esp: allow non-DMA callback in esp_transfer_data() initial transfer
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Wed, 19 May 2021 10:07:59 +0000 (11:07 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 15 Jun 2021 15:17:09 +0000 (17:17 +0200)
commit880d3089f1c667d7c84730ba9e9a2518220f7caf
treead56d5e543fe0d25e5e54812f9376521c572b1d7
parentaf947a3d853a235943681a00f07f3081f5143cc3
esp: allow non-DMA callback in esp_transfer_data() initial transfer

The current implementation only resumes DMA transfers when incoming data is
received from the target device, but this is also required for non-DMA transfers
with the next set of non-DMA changes.

Rather than duplicate the DMA/non-DMA dispatch logic in the initial transfer
section, update the code so that the initial transfer section can just
fallthrough to the main DMA/non-DMA dispatch logic.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-Id: <20210519100803.10293-2-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi/esp.c