[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 8/9] ide: clear interrupt on command write
From: |
John Snow |
Subject: |
[PULL 8/9] ide: clear interrupt on command write |
Date: |
Thu, 1 Oct 2020 13:46:48 -0400 |
Not known to fix any bug, but I couldn't help but notice that ATA
specifies that writing to this register should clear an interrupt.
ATA7: Section 5.3.3 (Command register - Effect)
ATA6: Section 7.4.4 (Command register - Effect)
ATA5: Section 7.4.4 (Command register - Effect)
ATA4: Section 7.4.4 (Command register - Effect)
ATA3: Section 5.2.2 (Command register)
Other editions: try searching for the phrase "Writing this register".
Signed-off-by: John Snow <jsnow@redhat.com>
---
hw/ide/core.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/ide/core.c b/hw/ide/core.c
index 8a55352e4b2..0d745d63a18 100644
--- a/hw/ide/core.c
+++ b/hw/ide/core.c
@@ -1312,6 +1312,7 @@ void ide_ioport_write(void *opaque, uint32_t addr,
uint32_t val)
default:
case ATA_IOPORT_WR_COMMAND:
ide_clear_hob(bus);
+ qemu_irq_lower(bus->irq);
ide_exec_cmd(bus, val);
break;
}
--
2.26.2
- [PULL 0/9] Ide patches, John Snow, 2020/10/01
- [PULL 4/9] ide: don't tamper with the device register, John Snow, 2020/10/01
- [PULL 5/9] ide: model HOB correctly, John Snow, 2020/10/01
- [PULL 3/9] ide: rename cmd_write to ctrl_write, John Snow, 2020/10/01
- [PULL 1/9] MAINTAINERS: Update my git address, John Snow, 2020/10/01
- [PULL 2/9] hw/ide/ahci: Do not dma_memory_unmap(NULL), John Snow, 2020/10/01
- [PULL 8/9] ide: clear interrupt on command write,
John Snow <=
- [PULL 7/9] ide: remove magic constants from the device register, John Snow, 2020/10/01
- [PULL 6/9] ide: reorder set/get sector functions, John Snow, 2020/10/01
- [PULL 9/9] ide: cancel pending callbacks on SRST, John Snow, 2020/10/01
- Re: [PULL 0/9] Ide patches, Peter Maydell, 2020/10/01