Thread (4 messages) flat view 4 messages, 4 authors, 2021-11-30

Re: [PATCH v2] of: base: Skip CPU nodes with "fail"/"fail-..." status

From: Rob Herring <robh@kernel.org>
Date: 2021-11-30 17:38:22
Also in: lkml

On Mon, 22 Nov 2021 12:45:36 +0100, Matthias Schiffer wrote:
Allow fully disabling CPU nodes using status = "fail".

This allows a bootloader to change the number of available CPUs (for
example when a common DTS is used for SoC variants with different numbers
of cores) without deleting the nodes altogether, which could require
additional fixups to avoid dangling phandle references.

Unknown status values (everything that is not "okay"/"ok", "disabled" or
"fail"/"fail-...") will continue to be interpreted like "disabled",
meaning that the CPU can be enabled during boot.

References:
- https://www.lkml.org/lkml/2020/8/26/1237
- https://www.spinics.net/lists/devicetree-spec/msg01007.html
- https://github.com/devicetree-org/dt-schema/pull/61

Signed-off-by: Matthias Schiffer <redacted>
---

v2: Treat unknown status values like "disabled", not like "fail"


 drivers/of/base.c | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
Applied, thanks!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help