UPSTREAM: arch/x86/acpi: Allow "transparent" ACPI device names
Certain devices, such as the northbridge on AMD Opteron systems,
do not require a node in the ACPI device path. Allow such devices
to be passed over by the ACPI path generator if the device-specific
ACPI name function returns a zero-length (non-NULL) string.
BUG=none
BRANCH=none
TEST=none
Change-Id: Ia6c018bca0641a6cd04803715b1a5ff8d47ef8f5
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: aeb6101a78
Original-Change-Id: Iffffc9a30b395b0bd6d60e411439a437e89f554e
Original-Signed-off-by: Timothy Pearson <tpearson@raptorengineering.com>
Original-Reviewed-on: https://review.coreboot.org/19281
Original-Tested-by: build bot (Jenkins)
Original-Tested-by: Raptor Engineering Automated Test Stand <noreply@raptorengineeringinc.com>
Original-Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/480295
This commit is contained in:
parent
c973a1fabe
commit
00d99a9312
1 changed files with 3 additions and 1 deletions
|
|
@ -113,7 +113,9 @@ static size_t acpi_device_path_fill(struct device *dev, char *buf,
|
|||
|
||||
/* Fill in the path from the root device */
|
||||
next += snprintf(buf + next, buf_len - next, "%s%s",
|
||||
dev->path.type == DEVICE_PATH_ROOT ? "" : ".", name);
|
||||
(dev->path.type == DEVICE_PATH_ROOT
|
||||
|| (strlen(name) == 0)) ?
|
||||
"" : ".", name);
|
||||
|
||||
return next;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue