|
From: | Philippe Mathieu-Daudé |
Subject: | Re: [PATCH v2 25/42] esp: remove CMD pdma_origin |
Date: | Tue, 23 Feb 2021 19:34:52 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 |
On 2/9/21 8:30 PM, Mark Cave-Ayland wrote: > The cmdbuf is really just a copy of FIFO data (including extra message phase > bytes) so its pdma_origin is effectively TI. Fortunately we already know when > we are receiving a SCSI command since do_cmd == 1 which enables us to > distinguish between the two cases in esp_pdma_read()/esp_pdma_write(). > > Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> > --- > hw/scsi/esp.c | 22 ++++++++++++---------- > include/hw/scsi/esp.h | 1 - > 2 files changed, 12 insertions(+), 11 deletions(-) Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
[Prev in Thread] | Current Thread | [Next in Thread] |