coreboot-kgpe-d16/util/sconfig
Furquan Shaikh b9c22e0965 util/sconfig: Compare probe conditions for override device match
When the override functionality looks for device match, check that
the probe list for both the devices matches exactly if probe list
exists for the base device. This ensures that if there are two devices
with same identity (e.g. I2C address or USB port #) but using
different properties (registers) controlled by different probe
statements, then the two devices are not incorrectly matched as the
same device.

The check for base device having a probe list is performed before
comparing the probe lists because a base device might not really have
any probe requirements at all. So, when overriding such a device,
there is no need to check for the probe list match.

BUG=b:187193527
TEST=Verified by adding two I2C devices in the override tree with the
same I2C address and chip but different probe statements and confirmed
that both the devices are present in generated static.c file.

Change-Id: Ib18868b336cf4ffc9aa38aee7c6f333a35d32fce
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/57111
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-by: Weimin Wu <wuweimin@huaqin.corp-partner.google.com>
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
2021-09-01 19:20:05 +00:00
..
Makefile.inc
description.md
lex.yy.c_shipped util/sconfig: Remove unused devicetree keywords ESPI & LPC 2021-07-14 20:24:00 +00:00
main.c util/sconfig: Compare probe conditions for override device match 2021-09-01 19:20:05 +00:00
sconfig.h util/sconfig: Add support for discontiguous FW_CONFIG fields 2021-05-03 07:40:57 +00:00
sconfig.l util/sconfig: Remove unused devicetree keywords ESPI & LPC 2021-07-14 20:24:00 +00:00
sconfig.tab.c_shipped util/sconfig: Remove unused devicetree keywords ESPI & LPC 2021-07-14 20:24:00 +00:00
sconfig.tab.h_shipped util/sconfig: Remove unused devicetree keywords ESPI & LPC 2021-07-14 20:24:00 +00:00
sconfig.y util/sconfig: Remove unused devicetree keywords ESPI & LPC 2021-07-14 20:24:00 +00:00