Read signature before initialzing panel

This patch reads the panel signature before sending the panel's
init command sequence. If the signature doesn't match LK will
not continue with the initializion of the panel.

While this patch might not work for all panels, it works
for the FP2 and FP2.5 LCD panels.

FPIIM-935

Change-Id: If870d7f3f5785d1616dfe2efb106ab13c6718ab2
diff --git a/platform/msm_shared/mipi_dsi.c b/platform/msm_shared/mipi_dsi.c
index c57dd76..ea6d75e 100644
--- a/platform/msm_shared/mipi_dsi.c
+++ b/platform/msm_shared/mipi_dsi.c
@@ -500,11 +500,12 @@
 					pinfo->num_of_panel_cmds);
 
 		} else {
+			if ( target_panel_auto_detect_enabled()
+			    && (status = mdss_dsi_read_panel_signature(pinfo->signature)) ){
+				return status;
+			}
 			status = mipi_dsi_cmds_tx(pinfo->panel_cmds,
 					pinfo->num_of_panel_cmds);
-			if (!status && target_panel_auto_detect_enabled())
-				status =
-					mdss_dsi_read_panel_signature(pinfo->signature);
 		}
 	}
 #endif