From 597341a889a8f7c347677f775aa0a044986cc588 Mon Sep 17 00:00:00 2001
From: Soumen Ghosh <soumeng@codeaurora.org>
Date: Wed, 13 Sep 2017 18:46:44 +0530
Subject: [PATCH] lrdpv2: chipset value is fixed for parsing qtf of napali
 target         Pass the proper chipset id, earlier it was passing msmsdm845
 to qtf to parse qtf logs.

Change-Id: I9472a4ac09a9adf2a7bf0d7aa96aac9a5b986b8c
---
 linux-ramdump-parser-v2/debug_image_v2.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/linux-ramdump-parser-v2/debug_image_v2.py b/linux-ramdump-parser-v2/debug_image_v2.py
index 734ea44..9fc51cb 100644
--- a/linux-ramdump-parser-v2/debug_image_v2.py
+++ b/linux-ramdump-parser-v2/debug_image_v2.py
@@ -424,7 +424,9 @@ class DebugImage_v2():
         qtf_dir = os.path.join(out_dir, 'qtf')
         workspace = os.path.join(qtf_dir, 'qtf.workspace')
         qtf_out = os.path.join(out_dir, 'qtf.txt')
-        chipset = 'msm' + ram_dump.hw_id
+        chipset = ram_dump.hw_id
+        if "sdm" not in ram_dump.hw_id.lower():
+            chipset = "msm" + ram_dump.hw_id
         hlos = 'LA'
 
         #Temp change to handle descripancy between tools usage
-- 
GitLab