diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2019-05-10 05:46:03 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-05-13 04:40:21 -0400 |
commit | a423bd845c6043c205eedc413f40f81c7550e85c (patch) | |
tree | 0cf81bbbb892d9d32fe00764a8c32d78d3c6217b | |
parent | 5695f51d055057b9db069f0a060fc7c397278c2e (diff) |
Documentation: ACPI: Direct references are allowed to devices only
In ACPI it is possible to make references to device objects only,
not to other objects inside a device.
In practice this means that hierarchical data extension targets
must be in parentheses to make them strings, or an ACPICA warning
will be produced.
Reported-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
[ rjw: Changelog ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | Documentation/firmware-guide/acpi/dsd/data-node-references.rst | 6 | ||||
-rw-r--r-- | Documentation/firmware-guide/acpi/dsd/graph.rst | 12 |
2 files changed, 9 insertions, 9 deletions
diff --git a/Documentation/firmware-guide/acpi/dsd/data-node-references.rst b/Documentation/firmware-guide/acpi/dsd/data-node-references.rst index 1351984e767c..febccbc5689d 100644 --- a/Documentation/firmware-guide/acpi/dsd/data-node-references.rst +++ b/Documentation/firmware-guide/acpi/dsd/data-node-references.rst | |||
@@ -45,8 +45,8 @@ the ANOD object which is also the final target node of the reference. | |||
45 | Name (_DSD, Package () { | 45 | Name (_DSD, Package () { |
46 | ToUUID("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), | 46 | ToUUID("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), |
47 | Package () { | 47 | Package () { |
48 | Package () { "node@0", NOD0 }, | 48 | Package () { "node@0", "NOD0" }, |
49 | Package () { "node@1", NOD1 }, | 49 | Package () { "node@1", "NOD1" }, |
50 | } | 50 | } |
51 | }) | 51 | }) |
52 | Name (NOD0, Package() { | 52 | Name (NOD0, Package() { |
@@ -58,7 +58,7 @@ the ANOD object which is also the final target node of the reference. | |||
58 | Name (NOD1, Package() { | 58 | Name (NOD1, Package() { |
59 | ToUUID("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), | 59 | ToUUID("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), |
60 | Package () { | 60 | Package () { |
61 | Package () { "anothernode", ANOD }, | 61 | Package () { "anothernode", "ANOD" }, |
62 | } | 62 | } |
63 | }) | 63 | }) |
64 | Name (ANOD, Package() { | 64 | Name (ANOD, Package() { |
diff --git a/Documentation/firmware-guide/acpi/dsd/graph.rst b/Documentation/firmware-guide/acpi/dsd/graph.rst index 8a9019a38b66..1a6ce7afba5e 100644 --- a/Documentation/firmware-guide/acpi/dsd/graph.rst +++ b/Documentation/firmware-guide/acpi/dsd/graph.rst | |||
@@ -45,7 +45,7 @@ with "port" and must be followed by the "@" character and the number of the | |||
45 | port as its key. The target object it refers to should be called "PRTX", where | 45 | port as its key. The target object it refers to should be called "PRTX", where |
46 | "X" is the number of the port. An example of such a package would be:: | 46 | "X" is the number of the port. An example of such a package would be:: |
47 | 47 | ||
48 | Package() { "port@4", PRT4 } | 48 | Package() { "port@4", "PRT4" } |
49 | 49 | ||
50 | Further on, endpoints are located under the port nodes. The hierarchical | 50 | Further on, endpoints are located under the port nodes. The hierarchical |
51 | data extension key of the endpoint nodes must begin with | 51 | data extension key of the endpoint nodes must begin with |
@@ -54,7 +54,7 @@ endpoint. The object it refers to should be called "EPXY", where "X" is the | |||
54 | number of the port and "Y" is the number of the endpoint. An example of such a | 54 | number of the port and "Y" is the number of the endpoint. An example of such a |
55 | package would be:: | 55 | package would be:: |
56 | 56 | ||
57 | Package() { "endpoint@0", EP40 } | 57 | Package() { "endpoint@0", "EP40" } |
58 | 58 | ||
59 | Each port node contains a property extension key "port", the value of which is | 59 | Each port node contains a property extension key "port", the value of which is |
60 | the number of the port. Each endpoint is similarly numbered with a property | 60 | the number of the port. Each endpoint is similarly numbered with a property |
@@ -91,7 +91,7 @@ A simple example of this is show below:: | |||
91 | }, | 91 | }, |
92 | ToUUID("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), | 92 | ToUUID("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), |
93 | Package () { | 93 | Package () { |
94 | Package () { "port@0", PRT0 }, | 94 | Package () { "port@0", "PRT0" }, |
95 | } | 95 | } |
96 | }) | 96 | }) |
97 | Name (PRT0, Package() { | 97 | Name (PRT0, Package() { |
@@ -101,7 +101,7 @@ A simple example of this is show below:: | |||
101 | }, | 101 | }, |
102 | ToUUID("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), | 102 | ToUUID("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), |
103 | Package () { | 103 | Package () { |
104 | Package () { "endpoint@0", EP00 }, | 104 | Package () { "endpoint@0", "EP00" }, |
105 | } | 105 | } |
106 | }) | 106 | }) |
107 | Name (EP00, Package() { | 107 | Name (EP00, Package() { |
@@ -121,7 +121,7 @@ A simple example of this is show below:: | |||
121 | Name (_DSD, Package () { | 121 | Name (_DSD, Package () { |
122 | ToUUID("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), | 122 | ToUUID("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), |
123 | Package () { | 123 | Package () { |
124 | Package () { "port@4", PRT4 }, | 124 | Package () { "port@4", "PRT4" }, |
125 | } | 125 | } |
126 | }) | 126 | }) |
127 | 127 | ||
@@ -132,7 +132,7 @@ A simple example of this is show below:: | |||
132 | }, | 132 | }, |
133 | ToUUID("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), | 133 | ToUUID("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), |
134 | Package () { | 134 | Package () { |
135 | Package () { "endpoint@0", EP40 }, | 135 | Package () { "endpoint@0", "EP40" }, |
136 | } | 136 | } |
137 | }) | 137 | }) |
138 | 138 | ||