Skip to contentSkip to conversation

hw/i386/ich9: add comment explaining an argument to acpi_pcihp_reset call

PATCH In review Ani Sinha 2 participants 5 messages Jul 27, 2021 – Aug 4, 2021

lore
Share & tools
lore

Ani Sinha

author
#0 lore raw

PATCH 1/1 hw/i386/ich9: add comment explaining an argument to acpi_pcihp_reset call

acpi_pcihp_reset() call from ich9/pm_reset() passes an unconditional truth value as the second argument. Added a commnet here to explain the reason why the argument is being passed unconditionally.

---
 hw/acpi/ich9.c | 5 +++++
 1 file changed, 5 insertions(+)
hw/acpi/ich9.c +5 -0
index 778e27b659..b2e3c46075 100644
@@ -281,6 +281,11 @@ static void pm_reset(void *opaque)
     pm->smi_en_wmask = ~0;
 
     if (pm->use_acpi_hotplug_bridge) {
+        /*
+         * PCI Express root buses do not support hot-plug, for
+         * details see docs/pcie.txt. Hence, the second argument
+         * is unconditionally true.
+         */
         acpi_pcihp_reset(&pm->acpi_pci_hotplug, true);
     }
 
Signature · 1 line
2.25.1
author
#1 lore raw

ping ...

Quoted 29 lines · Ani Sinha

acpi_pcihp_reset() call from ich9/pm_reset() passes an unconditional truth value as the second argument. Added a commnet here to explain the reason why the argument is being passed unconditionally.

---
 hw/acpi/ich9.c | 5 +++++
 1 file changed, 5 insertions(+)
hw/acpi/ich9.c +5 -1
index 778e27b659..b2e3c46075 100644
@@ -281,6 +281,11 @@ static void pm_reset(void *opaque)
     pm->smi_en_wmask = ~0;
 
     if (pm->use_acpi_hotplug_bridge) {
+        /*
+         * PCI Express root buses do not support hot-plug, for
+         * details see docs/pcie.txt. Hence, the second argument
+         * is unconditionally true.
+         */
         acpi_pcihp_reset(&pm->acpi_pci_hotplug, true);
     }
 
--

2.25.1

author
#2 lore raw

Ping ...

Quoted 34 lines · Ani Sinha

ping ...

Quoted 29 lines · Ani Sinha

acpi_pcihp_reset() call from ich9/pm_reset() passes an unconditional truth value as the second argument. Added a commnet here to explain the reason why the argument is being passed unconditionally.

---
 hw/acpi/ich9.c | 5 +++++
 1 file changed, 5 insertions(+)
hw/acpi/ich9.c +5 -1
index 778e27b659..b2e3c46075 100644
@@ -281,6 +281,11 @@ static void pm_reset(void *opaque)
     pm->smi_en_wmask = ~0;
 
     if (pm->use_acpi_hotplug_bridge) {
+        /*
+         * PCI Express root buses do not support hot-plug, for
+         * details see docs/pcie.txt. Hence, the second argument
+         * is unconditionally true.
+         */
         acpi_pcihp_reset(&pm->acpi_pci_hotplug, true);
     }
 
--

2.25.1

#3 lore raw
In reply to Ani Sinha
Quoted 14 lines · Ani Sinha

acpi_pcihp_reset() call from ich9/pm_reset() passes an unconditional truth value as the second argument. Added a commnet here to explain the reason why the argument is being passed unconditionally.

---
 hw/acpi/ich9.c | 5 +++++
 1 file changed, 5 insertions(+)
hw/acpi/ich9.c +0 -0
index 778e27b659..b2e3c46075 100644

hw/acpi/ich9.c static void pm_reset(void *opaque) · line 290

Quoted 10 lines
hw/acpi/ich9.c +5 -0
@@ -281,6 +281,11 @@ static void pm_reset(void *opaque)
     pm->smi_en_wmask = ~0;
 
     if (pm->use_acpi_hotplug_bridge) {
+        /*
+         * PCI Express root buses do not support hot-plug, for
+         * details see docs/pcie.txt. Hence, the second argument
+         * is unconditionally true.
+         */
         acpi_pcihp_reset(&pm->acpi_pci_hotplug, true);
     }

I don't see this comment as especially elluminating, sorry.

Quoted 3 lines
Signature · 2 lines
-- 
2.25.1
author
#4 lore raw
Quoted 17 lines · Michael S. Tsirkin
Quoted 16 lines · Ani Sinha

acpi_pcihp_reset() call from ich9/pm_reset() passes an unconditional truth value as the second argument. Added a commnet here to explain the reason why the argument is being passed unconditionally.

---
 hw/acpi/ich9.c | 5 +++++
 1 file changed, 5 insertions(+)
hw/acpi/ich9.c +0 -0
index 778e27b659..b2e3c46075 100644
@@ -281,6 +281,11 @@ static void pm_reset(void *opaque)
     pm->smi_en_wmask = ~0;
 
Quoted 11 lines

hw/acpi/ich9.c static void pm_reset(void *opaque) · line 290

Quoted 8 lines
hw/acpi/ich9.c +5 -0
     if (pm->use_acpi_hotplug_bridge) {
+        /*
+         * PCI Express root buses do not support hot-plug, for
+         * details see docs/pcie.txt. Hence, the second argument
+         * is unconditionally true.
+         */
         acpi_pcihp_reset(&pm->acpi_pci_hotplug, true);
     }

I don't see this comment as especially elluminating, sorry.

Ok fine. I do not feel strongly about this one either.

Ani