Re: [PATCH v9 3/8] powerpc: detect the trusted boot state of the system

From: Nayna Jain
Date: Fri Oct 25 2019 - 12:50:51 EST

On 10/24/19 12:38 PM, Lakshmi Ramasubramanian wrote:
On 10/23/2019 8:47 PM, Nayna Jain wrote:

+bool is_ppc_trustedboot_enabled(void)
+ÂÂÂ struct device_node *node;
+ÂÂÂ bool enabled = false;
+ÂÂÂ node = get_ppc_fw_sb_node();
+ÂÂÂ enabled = of_property_read_bool(node, "trusted-enabled");

Can get_ppc_fw_sb_node return NULL?
Would of_property_read_bool handle the case when node is NULL?


Thanks & Regards,

ÂÂÂÂ - Nayna