Commit defe8cc7d4 for qemu.org
commit defe8cc7d4b4a4659899e3b8e775a6d7a6f867b1
Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Date: Sat Sep 26 08:44:01 2026 +0100
hw/ide/macio: use pmac_ide_transfer_cb() for disk DMA read callback
Since its original implementation the disk DMA callback pmac_ide_transfer_cb()
accidentally made use of the CDROM DMA read callback pmac_ide_atapi_transfer_cb()
for disk DMA reads instead of itself.
Fixes: be1e343995e ("macio: switch over to new byte-aligned DMA helpers")
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
Reviewed-by: BALATON Zoltan <balaton@eik.bme.hu>
Message-ID: <20260926074425.468348-1-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
diff --git a/hw/ide/macio.c b/hw/ide/macio.c
index 40fb4f3b4f..a95e68083f 100644
--- a/hw/ide/macio.c
+++ b/hw/ide/macio.c
@@ -180,7 +180,7 @@ static void pmac_ide_transfer_cb(void *opaque, int ret)
switch (s->dma_cmd) {
case IDE_DMA_READ:
s->bus->dma->aiocb = dma_blk_read(s->blk, &s->sg, offset, 0x1,
- pmac_ide_atapi_transfer_cb, io);
+ pmac_ide_transfer_cb, io);
break;
case IDE_DMA_WRITE:
s->bus->dma->aiocb = dma_blk_write(s->blk, &s->sg, offset, 0x1,