[qca-ssdk]: return ok directly if when ess-switch status value is disabled

For VP platform doesn't have ethernet ports, and it use same profile with
RUMI, so VP platform will be crash when loading dts and do later opearations.
In order to avoid this issue, we can add status=disabled to VP dts file,
and let it return OK directly when status value is disabled.

Change-Id: I74bc502ec4b3629c5df6e034173525f478a3588e
Signed-off-by: mingxinh <mingxinh@codeaurora.org>
diff --git a/src/init/ssdk_init.c b/src/init/ssdk_init.c
index fe73894..be82f2a 100755
--- a/src/init/ssdk_init.c
+++ b/src/init/ssdk_init.c
@@ -1940,6 +1940,7 @@
 	const __be32 *reg_cfg, *mac_mode,*led_source,*phy_addr;
 	const __be32 *led_number;
 	a_uint8_t *led_str;
+	a_uint8_t *status_value;
 
 
 	/*
@@ -1952,6 +1953,12 @@
 	}
 	printk("ess-switch DT exist!\n");
 
+	if (!of_property_read_string(switch_node, "status", (const char **)&status_value))
+	{
+		if (!strcmp(status_value, "disabled"))
+			return SW_DISABLE;
+	}
+
 	reg_cfg = of_get_property(switch_node, "reg", &len);
 	if(!reg_cfg) {
 		printk("%s: error reading device node properties for reg\n", switch_node->name);
@@ -3757,7 +3764,10 @@
 
 	#ifndef BOARD_AR71XX
 	#if defined(CONFIG_OF) && (LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,0))
-	ssdk_dt_parse(&cfg);
+	if(SW_DISABLE == ssdk_dt_parse(&cfg)) {
+		printk("ess-switch status value is disabled\n");
+		return SW_OK;
+	}
 	#endif
 	#endif