Michael Niewöhner has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/39509 )
Change subject: util/inteltool: powermgt: add code for dumping config registers
......................................................................
Patch Set 9:
(2 comments)
https://review.coreboot.org/c/coreboot/+/39509/8/util/inteltool/powermgt.c
File util/inteltool/powermgt.c:
https://review.coreboot.org/c/coreboot/+/39509/8/util/inteltool/powermgt.c@6...
PS8, Line 678: struct pci_dev *acpi;
"= NULL" is missing here. […]
Done
https://review.coreboot.org/c/coreboot/+/39509/8/util/inteltool/powermgt.c@8...
PS8, Line 899: if (acpi)
: pci_free_dev(acpi);
i'd move this to line 867 after the switch case statement and before the for loop, since the for loop doesn't need the acpi device pointer.
It does, see line 874 for example: "pci_read_long(acpi, ..."
i'd also like to see the pci_free_dev(acpi) cleanup in another patch, because it's and additional thing it does that isn't mentioned in the commit message
It's not additional; this was done before in lines 816 and 858. Since acpi is used in the for-loop, this needed to be moved here
--
To view, visit
https://review.coreboot.org/c/coreboot/+/39509
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ic78f847ba07240c112492229f9a23f9a88275ad9
Gerrit-Change-Number: 39509
Gerrit-PatchSet: 9
Gerrit-Owner: Michael Niewöhner
Gerrit-Reviewer: Aaron Durbin
adurbin@chromium.org
Gerrit-Reviewer: Angel Pons
th3fanbus@gmail.com
Gerrit-Reviewer: Christian Walter
christian.walter@9elements.com
Gerrit-Reviewer: Felix Held
felix-coreboot@felixheld.de
Gerrit-Reviewer: HAOUAS Elyes
ehaouas@noos.fr
Gerrit-Reviewer: Idwer Vollering
vidwer@gmail.com
Gerrit-Reviewer: Maxim Polyakov
max.senia.poliak@gmail.com
Gerrit-Reviewer: Mimoja
coreboot@mimoja.de
Gerrit-Reviewer: Nico Huber
nico.h@gmx.de
Gerrit-Reviewer: Patrick Georgi
pgeorgi@google.com
Gerrit-Reviewer: Patrick Rudolph
patrick.rudolph@9elements.com
Gerrit-Reviewer: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-Reviewer: Stefan Reinauer
stefan.reinauer@coreboot.org
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-Comment-Date: Wed, 18 Mar 2020 20:20:21 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Felix Held
felix-coreboot@felixheld.de
Gerrit-MessageType: comment