Furquan Shaikh (furquan(a)google.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/16871
-gerrit
commit 180dfade0052f41ddc0b520daab4aa30365e94e7
Author: Furquan Shaikh <furquan(a)chromium.org>
Date: Mon Oct 3 23:30:14 2016 -0700
x86/acpi_device: Fix writing of array property
Only acpi_dp of type DP_TYPE_TABLE is allowed to be an array. This
DP_TYPE_TABLE does not have a value which is written. Thus,
acpi_dp_write_array needs to start counting from the next element type
in the array. Fix this by updating the initialization in for loop for
writing array elements.
BUG=chrome-os-partner:55988
BRANCH=None
TEST=Verified that the correct number of elements are passed for
add_gpio in maxim sdmode-gpio.
Change-Id: I8e1e540d66086971de2edf0bb83494d3b1dbd176
Signed-off-by: Furquan Shaikh <furquan(a)chromium.org>
---
src/arch/x86/acpi_device.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/arch/x86/acpi_device.c b/src/arch/x86/acpi_device.c
index 2982999..c633cbf 100644
--- a/src/arch/x86/acpi_device.c
+++ b/src/arch/x86/acpi_device.c
@@ -530,7 +530,12 @@ static void acpi_dp_write_array(const struct acpi_dp *array)
/* Package element count determined as it is populated */
pkg_count = acpigen_write_package(0);
- for (dp = array; dp; dp = dp->next) {
+ /*
+ * Only acpi_dp of type DP_TYPE_TABLE is allowed to be an array. DP_TYPE
+ * TABLE does not have a value to be written. Thus, start the loop from
+ * next type in the array.
+ */
+ for (dp = array->next; dp; dp = dp->next) {
acpi_dp_write_value(dp);
(*pkg_count)++;
}
the following patch was just integrated into master:
commit 5e0242b0ec5c44bc684faf4985884ce39d93cdfb
Author: Elyes HAOUAS <ehaouas(a)noos.fr>
Date: Mon Oct 3 22:06:08 2016 +0200
src/cpu: Remove whitespace after sizeof
Change-Id: I30b911a8444529653c8ea4a736a902143fe7ab20
Signed-off-by: Elyes HAOUAS <ehaouas(a)noos.fr>
Reviewed-on: https://review.coreboot.org/16864
Tested-by: build bot (Jenkins)
Reviewed-by: Jonathan Neuschäfer <j.neuschaefer(a)gmx.net>
See https://review.coreboot.org/16864 for details.
-gerrit
the following patch was just integrated into master:
commit 0d4b11a4f8ccf64fb1a8272a0cd2e4833e54d90e
Author: Elyes HAOUAS <ehaouas(a)noos.fr>
Date: Mon Oct 3 21:57:21 2016 +0200
src/northbridge: Remove whitespace after sizeof
Change-Id: Iea0352f85f4d5f47fc906edbe625e7bbf3f03afd
Signed-off-by: Elyes HAOUAS <ehaouas(a)noos.fr>
Reviewed-on: https://review.coreboot.org/16863
Reviewed-by: Martin Roth <martinroth(a)google.com>
Tested-by: build bot (Jenkins)
See https://review.coreboot.org/16863 for details.
-gerrit
the following patch was just integrated into master:
commit 5c22825c1924b1f5fb9cebff8e13b83792d3ecb9
Author: Elyes HAOUAS <ehaouas(a)noos.fr>
Date: Sat Oct 1 15:10:11 2016 +0200
mainboard/amd/torpedo: Improve code formatting
Change-Id: I18de4740e0d3512ec81e10b32d13d07a35791b57
Signed-off-by: Elyes HAOUAS <ehaouas(a)noos.fr>
Reviewed-on: https://review.coreboot.org/16846
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth(a)google.com>
See https://review.coreboot.org/16846 for details.
-gerrit