<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Linux Device Tree: What those status = &#8220;okay&#8221; are about</title>
	<atom:link href="http://billauer.se/blog/2017/02/linux-dts-dtsi-status-ok/feed/" rel="self" type="application/rss+xml" />
	<link>https://billauer.se/blog/2017/02/linux-dts-dtsi-status-ok/</link>
	<description>Anything I found worthy to write down.</description>
	<lastBuildDate>Thu, 26 Mar 2026 13:15:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: 3V3RYONE</title>
		<link>https://billauer.se/blog/2017/02/linux-dts-dtsi-status-ok/comment-page-1/#comment-1842</link>
		<dc:creator>3V3RYONE</dc:creator>
		<pubDate>Fri, 11 Jul 2025 11:49:19 +0000</pubDate>
		<guid isPermaLink="false">https://billauer.se/blog/?p=5111#comment-1842</guid>
		<description>With the mainline Linux kernel,
the &quot;of_device_is_available()&quot; function will return true even if the status property is not present in the device tree node.

Code:

```
 468 /**
   469  *  __of_device_is_available - check if a device is available for use
   470  *
   471  *  @device: Node to check for availability, with locks already held
   472  *
   473  *  Return: True if the status property is absent or set to &quot;okay&quot; or &quot;ok&quot;,
   474  *  false otherwise
   475  */
   476 static bool __of_device_is_available(const struct device_node *device)
   477 {
   478         static const char * const ok[] = {&quot;okay&quot;, &quot;ok&quot;, NULL};
   479
   480         if (!device)
   481                 return false;
   482
   483         return !__of_get_property(device, &quot;status&quot;, NULL) &#124;&#124;
   484                 __of_device_is_status(device, ok);
   485 
```</description>
		<content:encoded><![CDATA[<p>With the mainline Linux kernel,<br />
the &#8220;of_device_is_available()&#8221; function will return true even if the status property is not present in the device tree node.</p>
<p>Code:</p>
<p>&#8220;`<br />
 468 /**<br />
   469  *  __of_device_is_available &#8211; check if a device is available for use<br />
   470  *<br />
   471  *  @device: Node to check for availability, with locks already held<br />
   472  *<br />
   473  *  Return: True if the status property is absent or set to &#8220;okay&#8221; or &#8220;ok&#8221;,<br />
   474  *  false otherwise<br />
   475  */<br />
   476 static bool __of_device_is_available(const struct device_node *device)<br />
   477 {<br />
   478         static const char * const ok[] = {&#8220;okay&#8221;, &#8220;ok&#8221;, NULL};<br />
   479<br />
   480         if (!device)<br />
   481                 return false;<br />
   482<br />
   483         return !__of_get_property(device, &#8220;status&#8221;, NULL) ||<br />
   484                 __of_device_is_status(device, ok);<br />
   485<br />
&#8220;`</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Albert Lin</title>
		<link>https://billauer.se/blog/2017/02/linux-dts-dtsi-status-ok/comment-page-1/#comment-1807</link>
		<dc:creator>Albert Lin</dc:creator>
		<pubDate>Thu, 17 Oct 2024 06:11:44 +0000</pubDate>
		<guid isPermaLink="false">https://billauer.se/blog/?p=5111#comment-1807</guid>
		<description>This is very good and clear article!</description>
		<content:encoded><![CDATA[<p>This is very good and clear article!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ranran</title>
		<link>https://billauer.se/blog/2017/02/linux-dts-dtsi-status-ok/comment-page-1/#comment-1390</link>
		<dc:creator>ranran</dc:creator>
		<pubDate>Wed, 19 Dec 2018 09:19:40 +0000</pubDate>
		<guid isPermaLink="false">https://billauer.se/blog/?p=5111#comment-1390</guid>
		<description>thank you for the valuable articles!</description>
		<content:encoded><![CDATA[<p>thank you for the valuable articles!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
