[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/3] ahci: trim signatures on raise/lower
From: |
John Snow |
Subject: |
[Qemu-devel] [PATCH 1/3] ahci: trim signatures on raise/lower |
Date: |
Wed, 30 May 2018 20:43:21 -0400 |
These functions work on the AHCI device, not the individual
AHCI devices, so trim the AHCIDevice argument.
Signed-off-by: John Snow <address@hidden>
---
hw/ide/ahci.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c
index e22d7be05f..b7a6f68790 100644
--- a/hw/ide/ahci.c
+++ b/hw/ide/ahci.c
@@ -131,7 +131,7 @@ static uint32_t ahci_port_read(AHCIState *s, int port, int
offset)
return val;
}
-static void ahci_irq_raise(AHCIState *s, AHCIDevice *dev)
+static void ahci_irq_raise(AHCIState *s)
{
DeviceState *dev_state = s->container;
PCIDevice *pci_dev = (PCIDevice *) object_dynamic_cast(OBJECT(dev_state),
@@ -146,7 +146,7 @@ static void ahci_irq_raise(AHCIState *s, AHCIDevice *dev)
}
}
-static void ahci_irq_lower(AHCIState *s, AHCIDevice *dev)
+static void ahci_irq_lower(AHCIState *s)
{
DeviceState *dev_state = s->container;
PCIDevice *pci_dev = (PCIDevice *) object_dynamic_cast(OBJECT(dev_state),
@@ -174,9 +174,9 @@ static void ahci_check_irq(AHCIState *s)
trace_ahci_check_irq(s, old_irq, s->control_regs.irqstatus);
if (s->control_regs.irqstatus &&
(s->control_regs.ghc & HOST_CTL_IRQ_EN)) {
- ahci_irq_raise(s, NULL);
+ ahci_irq_raise(s);
} else {
- ahci_irq_lower(s, NULL);
+ ahci_irq_lower(s);
}
}
--
2.14.3
- [Qemu-devel] [PATCH 0/3] ahci: fix completion race condition, John Snow, 2018/05/30
- [Qemu-devel] [PATCH 3/3] ahci: don't schedule unnecessary BH, John Snow, 2018/05/30
- [Qemu-devel] [PATCH 2/3] ahci: fix PxCI register race, John Snow, 2018/05/30
- [Qemu-devel] [PATCH 1/3] ahci: trim signatures on raise/lower,
John Snow <=
- Re: [Qemu-devel] [Qemu-block] [PATCH 0/3] ahci: fix completion race condition, Stefan Hajnoczi, 2018/05/31
- Re: [Qemu-devel] [PATCH 0/3] ahci: fix completion race condition, Bruce Rogers, 2018/05/31
- Re: [Qemu-devel] [PATCH 0/3] ahci: fix completion race condition, John Snow, 2018/05/31