forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'devprop-5.17-rc1' of git://git.kernel.org/pub/scm/linux/ke…
…rnel/git/rafael/linux-pm Pull device properties framework updates from Rafael Wysocki: "These update the handling of software nodes and graph properties, and the MAINTAINERS entry for the former. Specifics: - Remove device_add_properties() which does not work correctly if software nodes holding additional device properties are shared or reused (Heikki Krogerus). - Fix nargs_prop property handling for software nodes (Clément Léger). - Update documentation of ACPI device properties (Sakari Ailus). - Update the handling of graph properties in the generic framework to match the DT case (Sakari Ailus). - Update software nodes entry in MAINTAINERS (Andy Shevchenko)" * tag 'devprop-5.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: software node: Update MAINTAINERS data base software node: fix wrong node passed to find nargs_prop device property: Drop fwnode_graph_get_remote_node() device property: Use fwnode_graph_for_each_endpoint() macro device property: Implement fwnode_graph_get_endpoint_count() Documentation: ACPI: Update references Documentation: ACPI: Fix data node reference documentation device property: Fix documentation for FWNODE_GRAPH_DEVICE_DISABLED device property: Fix fwnode_graph_devcon_match() fwnode leak device property: Remove device_add_properties() API driver core: Don't call device_remove_properties() from device_del() PCI: Convert to device_create_managed_software_node()
- Loading branch information
Showing
11 changed files
with
127 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,17 +5,17 @@ | |
Referencing hierarchical data nodes | ||
=================================== | ||
|
||
:Copyright: |copy| 2018 Intel Corporation | ||
:Copyright: |copy| 2018, 2021 Intel Corporation | ||
:Author: Sakari Ailus <[email protected]> | ||
|
||
ACPI in general allows referring to device objects in the tree only. | ||
Hierarchical data extension nodes may not be referred to directly, hence this | ||
document defines a scheme to implement such references. | ||
|
||
A reference consist of the device object name followed by one or more | ||
hierarchical data extension [1] keys. Specifically, the hierarchical data | ||
extension node which is referred to by the key shall lie directly under the | ||
parent object i.e. either the device object or another hierarchical data | ||
hierarchical data extension [dsd-guide] keys. Specifically, the hierarchical | ||
data extension node which is referred to by the key shall lie directly under | ||
the parent object i.e. either the device object or another hierarchical data | ||
extension node. | ||
|
||
The keys in the hierarchical data nodes shall consist of the name of the node, | ||
|
@@ -33,7 +33,7 @@ extension key. | |
Example | ||
======= | ||
|
||
In the ASL snippet below, the "reference" _DSD property [2] contains a | ||
In the ASL snippet below, the "reference" _DSD property contains a | ||
device object reference to DEV0 and under that device object, a | ||
hierarchical data extension key "node@1" referring to the NOD1 object | ||
and lastly, a hierarchical data extension key "anothernode" referring to | ||
|
@@ -52,12 +52,14 @@ the ANOD object which is also the final target node of the reference. | |
Name (NOD0, Package() { | ||
ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), | ||
Package () { | ||
Package () { "reg", 0 }, | ||
Package () { "random-property", 3 }, | ||
} | ||
}) | ||
Name (NOD1, Package() { | ||
ToUUID("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), | ||
Package () { | ||
Package () { "reg", 1 }, | ||
Package () { "anothernode", "ANOD" }, | ||
} | ||
}) | ||
|
@@ -74,7 +76,11 @@ the ANOD object which is also the final target node of the reference. | |
Name (_DSD, Package () { | ||
ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), | ||
Package () { | ||
Package () { "reference", ^DEV0, "node@1", "anothernode" }, | ||
Package () { | ||
"reference", Package () { | ||
^DEV0, "node@1", "anothernode" | ||
} | ||
}, | ||
} | ||
}) | ||
} | ||
|
@@ -85,10 +91,6 @@ Documentation/firmware-guide/acpi/dsd/graph.rst. | |
References | ||
========== | ||
|
||
[1] Hierarchical Data Extension UUID For _DSD. | ||
<https://www.uefi.org/sites/default/files/resources/_DSD-hierarchical-data-extension-UUID-v1.1.pdf>, | ||
referenced 2018-07-17. | ||
|
||
[2] Device Properties UUID For _DSD. | ||
<https://www.uefi.org/sites/default/files/resources/_DSD-device-properties-UUID.pdf>, | ||
referenced 2016-10-04. | ||
[dsd-guide] DSD Guide. | ||
https://github.com/UEFI/DSD-Guide/blob/main/dsd-guide.adoc, referenced | ||
2021-11-30. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17734,12 +17734,17 @@ F: drivers/firmware/arm_sdei.c | |
F: include/linux/arm_sdei.h | ||
F: include/uapi/linux/arm_sdei.h | ||
|
||
SOFTWARE NODES | ||
SOFTWARE NODES AND DEVICE PROPERTIES | ||
R: Andy Shevchenko <[email protected]> | ||
R: Daniel Scally <[email protected]> | ||
R: Heikki Krogerus <[email protected]> | ||
R: Sakari Ailus <[email protected]> | ||
L: [email protected] | ||
S: Maintained | ||
F: drivers/base/property.c | ||
F: drivers/base/swnode.c | ||
F: include/linux/fwnode.h | ||
F: include/linux/property.h | ||
|
||
SOFTWARE RAID (Multiple Disks) SUPPORT | ||
M: Song Liu <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.