hw/i386/ich9: add comment explaining an argument to acpi_pcihp_reset call
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
@@ -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
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.Signed-off-by Ani Sinha <[email protected]>--- hw/acpi/ich9.c | 5 +++++ 1 file changed, 5 insertions(+)hw/acpi/ich9.c +5
-1@@ -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
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.Signed-off-by Ani Sinha <[email protected]>--- hw/acpi/ich9.c | 5 +++++ 1 file changed, 5 insertions(+)hw/acpi/ich9.c +5
-1@@ -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
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.Signed-off-by Ani Sinha <[email protected]>--- hw/acpi/ich9.c | 5 +++++ 1 file changed, 5 insertions(+)hw/acpi/ich9.c +0
-0
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
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.Signed-off-by Ani Sinha <[email protected]>--- hw/acpi/ich9.c | 5 +++++ 1 file changed, 5 insertions(+)hw/acpi/ich9.c +0
-0@@ -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
-0if (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