Furquan Shaikh has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/44037 )
Change subject: sconfig: Allow chipset to provide a base devicetree
......................................................................
Patch Set 9:
(1 comment)
https://review.coreboot.org/c/coreboot/+/44037/9/util/sconfig/main.c
File util/sconfig/main.c:
https://review.coreboot.org/c/coreboot/+/44037/9/util/sconfig/main.c@713
PS9, Line 713: base_root_dev
An alias added in override tree isn't getting caught as a duplicate so it just ends up getting assigned to the first one silently.
Aah it is because `new_device()`, `find_alias()` uses base_root_dev always. That should really be root_parent because that holds the pointer to current parent under which devices are being added. So, `new_device()` should check for alias conflict within the current tree and then `override_devicetree()` should check for alias conflict within the primary tree.
since adding a device reference in an override doesn't really make sense in the first place.
We might need that if devices are added/defined only in the overridetree and also referenced there?
--
To view, visit
https://review.coreboot.org/c/coreboot/+/44037
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ia7500a62f6211243b519424ef3834b9e7615e2fd
Gerrit-Change-Number: 44037
Gerrit-PatchSet: 9
Gerrit-Owner: Duncan Laurie
dlaurie@chromium.org
Gerrit-Reviewer: Aaron Durbin
adurbin@chromium.org
Gerrit-Reviewer: Angel Pons
th3fanbus@gmail.com
Gerrit-Reviewer: Furquan Shaikh
furquan@google.com
Gerrit-Reviewer: Julius Werner
jwerner@chromium.org
Gerrit-Reviewer: Martin Roth
martinroth@google.com
Gerrit-Reviewer: Nick Vaccaro
nvaccaro@google.com
Gerrit-Reviewer: Nico Huber
nico.h@gmx.de
Gerrit-Reviewer: Patrick Georgi
pgeorgi@google.com
Gerrit-Reviewer: Stefan Reinauer
stefan.reinauer@coreboot.org
Gerrit-Reviewer: Tim Wawrzynczak
twawrzynczak@chromium.org
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-Comment-Date: Tue, 06 Oct 2020 20:58:58 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Furquan Shaikh
furquan@google.com
Comment-In-Reply-To: Duncan Laurie
dlaurie@chromium.org
Gerrit-MessageType: comment