|
|
357786 |
From 2b9789734ace2edd99aab3e76a559f29201e0d8d Mon Sep 17 00:00:00 2001
|
|
|
357786 |
From: John Snow <jsnow@redhat.com>
|
|
|
357786 |
Date: Tue, 10 Jul 2018 23:06:14 +0200
|
|
|
357786 |
Subject: [PATCH 31/89] ahci: trim signatures on raise/lower
|
|
|
357786 |
|
|
|
357786 |
RH-Author: John Snow <jsnow@redhat.com>
|
|
|
357786 |
Message-id: <20180710230616.11000-2-jsnow@redhat.com>
|
|
|
357786 |
Patchwork-id: 81295
|
|
|
357786 |
O-Subject: [RHEL-7.6 qemu-kvm-rhev PATCH 1/3] ahci: trim signatures on raise/lower
|
|
|
357786 |
Bugzilla: 1584914
|
|
|
357786 |
RH-Acked-by: Laurent Vivier <lvivier@redhat.com>
|
|
|
357786 |
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
|
|
|
357786 |
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
|
|
|
357786 |
|
|
|
357786 |
These functions work on the AHCI device, not the individual
|
|
|
357786 |
AHCI devices, so trim the AHCIDevice argument.
|
|
|
357786 |
|
|
|
357786 |
Signed-off-by: John Snow <jsnow@redhat.com>
|
|
|
357786 |
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
|
|
|
357786 |
Reviewed-by: Jeff Cody <jcody@redhat.com>
|
|
|
357786 |
Message-id: 20180531004323.4611-2-jsnow@redhat.com
|
|
|
357786 |
Signed-off-by: John Snow <jsnow@redhat.com>
|
|
|
357786 |
(cherry picked from commit dc5a43eda68fff32c7b0b43847332db325b094f3)
|
|
|
357786 |
Signed-off-by: John Snow <jsnow@redhat.com>
|
|
|
357786 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
357786 |
---
|
|
|
357786 |
hw/ide/ahci.c | 8 ++++----
|
|
|
357786 |
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
357786 |
|
|
|
357786 |
diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c
|
|
|
357786 |
index e22d7be..b7a6f68 100644
|
|
|
357786 |
--- a/hw/ide/ahci.c
|
|
|
357786 |
+++ b/hw/ide/ahci.c
|
|
|
357786 |
@@ -131,7 +131,7 @@ static uint32_t ahci_port_read(AHCIState *s, int port, int offset)
|
|
|
357786 |
return val;
|
|
|
357786 |
}
|
|
|
357786 |
|
|
|
357786 |
-static void ahci_irq_raise(AHCIState *s, AHCIDevice *dev)
|
|
|
357786 |
+static void ahci_irq_raise(AHCIState *s)
|
|
|
357786 |
{
|
|
|
357786 |
DeviceState *dev_state = s->container;
|
|
|
357786 |
PCIDevice *pci_dev = (PCIDevice *) object_dynamic_cast(OBJECT(dev_state),
|
|
|
357786 |
@@ -146,7 +146,7 @@ static void ahci_irq_raise(AHCIState *s, AHCIDevice *dev)
|
|
|
357786 |
}
|
|
|
357786 |
}
|
|
|
357786 |
|
|
|
357786 |
-static void ahci_irq_lower(AHCIState *s, AHCIDevice *dev)
|
|
|
357786 |
+static void ahci_irq_lower(AHCIState *s)
|
|
|
357786 |
{
|
|
|
357786 |
DeviceState *dev_state = s->container;
|
|
|
357786 |
PCIDevice *pci_dev = (PCIDevice *) object_dynamic_cast(OBJECT(dev_state),
|
|
|
357786 |
@@ -174,9 +174,9 @@ static void ahci_check_irq(AHCIState *s)
|
|
|
357786 |
trace_ahci_check_irq(s, old_irq, s->control_regs.irqstatus);
|
|
|
357786 |
if (s->control_regs.irqstatus &&
|
|
|
357786 |
(s->control_regs.ghc & HOST_CTL_IRQ_EN)) {
|
|
|
357786 |
- ahci_irq_raise(s, NULL);
|
|
|
357786 |
+ ahci_irq_raise(s);
|
|
|
357786 |
} else {
|
|
|
357786 |
- ahci_irq_lower(s, NULL);
|
|
|
357786 |
+ ahci_irq_lower(s);
|
|
|
357786 |
}
|
|
|
357786 |
}
|
|
|
357786 |
|
|
|
357786 |
--
|
|
|
357786 |
1.8.3.1
|
|
|
357786 |
|