[v2,1/3] hdat: Add 'primary' property to master chip xscom node

Submitted by Vasant Hegde on March 8, 2017, 11:01 a.m.

Details

Message ID 1488970892-8997-1-git-send-email-hegdevasant@linux.vnet.ibm.com
State New
Headers show

Commit Message

Vasant Hegde March 8, 2017, 11:01 a.m.
Needed for SBE communication as some of the SBE MBOX commands
has to be sent to master chip SBE only.

Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
---
 hdata/spira.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/hdata/spira.c b/hdata/spira.c
index 592197e..679d6fb 100644
--- a/hdata/spira.c
+++ b/hdata/spira.c
@@ -590,8 +590,10 @@  static void add_chiptod_node(unsigned int chip_id, int flags)
 	dt_add_property_strings(node, "compatible", "ibm,power-chiptod",
 			       compat_str);
 
-	if (flags & CHIPTOD_ID_FLAGS_PRIMARY)
+	if (flags & CHIPTOD_ID_FLAGS_PRIMARY) {
+		dt_add_property(xscom_node, "primary", NULL, 0);
 		dt_add_property(node, "primary", NULL, 0);
+	}
 	if (flags & CHIPTOD_ID_FLAGS_SECONDARY)
 		dt_add_property(node, "secondary", NULL, 0);
 }