]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI/PPTT: Modify node flag detection to find last IDENTICAL
authorJeremy Linton <jeremy.linton@arm.com>
Wed, 26 Jun 2019 21:37:15 +0000 (16:37 -0500)
committerWill Deacon <will@kernel.org>
Thu, 27 Jun 2019 15:52:13 +0000 (16:52 +0100)
commitca9f62a56a64c763b8364bc2423d33132b3a7042
tree89872e71ab6996f9938599031b475924361b7eeb
parent732a8db5ac910f88c18f5bdfbfb19c1dfc3fe54a
ACPI/PPTT: Modify node flag detection to find last IDENTICAL

The ACPI specification implies that the IDENTICAL flag should be
set on all non leaf nodes where the children are identical.
This means that we need to be searching for the last node with
the identical flag set rather than the first one.

Since this flag is also dependent on the table revision, we
need to add a bit of extra code to verify the table revision,
and the next node's state in the traversal. Since we want to
avoid function pointers here, lets just special case
the IDENTICAL flag.

Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Tested-by: Hanjun Guo <hanjun.guo@linaro.org>
Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
drivers/acpi/pptt.c