From patchwork Mon May 25 16:48:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 11569055 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 65D2560D for ; Mon, 25 May 2020 16:48:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 499BC207DA for ; Mon, 25 May 2020 16:48:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="AAkQHu34" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389160AbgEYQsV (ORCPT ); Mon, 25 May 2020 12:48:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389087AbgEYQsV (ORCPT ); Mon, 25 May 2020 12:48:21 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03CCFC061A0E for ; Mon, 25 May 2020 09:48:21 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id a25so9770967ljp.3 for ; Mon, 25 May 2020 09:48:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=qFuxiaLQtj25y9sBPvZbzcmOPRrE2+OoU7mnXmLdh80=; b=AAkQHu34gVqwD+D2io1X/xsVdIEw5/KTRUNCC/awsiMQ7KbAutU7D0Y6s7rtgmWObv Zi//1vNOknwT67jcp752ncHZHZmVuzUv8CaK3P1lHjNrxZUqfhhQv2YiCzPT4+PMXxHt fEE+b0SIKZS66MDiQCMKoJehuSg/kotgyd/+oUhBS0Sqq5dblAiVlGJ67aejHulH7PKD 4ZpllbZtsuxUOjvq8z+ubrFYZEUa+Zyq3cmG6ReT1nMbqxDsQujN1wfqUO2VUCsO4r3I GOlwv7hIA3RVr2E1QGWDGfZ5wVhl1zebLP6Yoqe8sN75tXTR0z69yj4SgO0/ZTbylcM3 khhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=qFuxiaLQtj25y9sBPvZbzcmOPRrE2+OoU7mnXmLdh80=; b=V6qITQ2wFceUTAYk2LzgM7sYIZhdTjhrD6gSztPojBs2tYHmDKB8Z6Q77x401ACA2X +lkkJaA+z2y9mpqELM++ZuYuivAvIW3r9j5tqHGc/OMhl6+kSDQE9I80rjp+ZYlFGHyN XxcIxrYoOzpX62OkOXbLWyckVQLJYoljP9eY79lZaLxlBQLE/pwl8w5ia3FuErEtssbl jYPRJU4kUIpiVzUXigWVEyH7ithRb5rdBjixXljakB25ISxfY6+7ff7bDPyNI2YkQpiF 1j+tH3/Ieiglo5Xa8D3fjdv/E2q/T8k9oqsxaLViKKXS7UP2swO6ORCOR4kfr8betyAm msEg== X-Gm-Message-State: AOAM531ngb3crPAMo6XFFzyV9Eni0eemMCPWu+MUHk6t2xO3Z66dYcQt pMfc+n4vyLnfCstBeZ8oZs9FqpA7J68= X-Google-Smtp-Source: ABdhPJyeiI7t9sxbcbWgBBAvyIrby0YcjkJfjSkpCvcX492Za8Xf13NcKAnKE4AknK9Swn5an8h1MA== X-Received: by 2002:a2e:8018:: with SMTP id j24mr13760743ljg.99.1590425299065; Mon, 25 May 2020 09:48:19 -0700 (PDT) Received: from lothlann.lan ([188.162.64.24]) by smtp.gmail.com with ESMTPSA id y21sm2914337ljg.48.2020.05.25.09.48.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 May 2020 09:48:18 -0700 (PDT) From: Dmitry Baryshkov To: linux-arm-msm@vger.kernel.org Cc: Andy Gross , Bjorn Andersson , patches@linaro.org, linaro-kernel@lists.linaro.org Subject: [PATCH 1/4] soc: qcom: socinfo: add support for newer socinfo data Date: Mon, 25 May 2020 19:48:14 +0300 Message-Id: <20200525164817.2938638-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add support for newer Qualcomm SoC info structures (up to version 0.15). Signed-off-by: Dmitry Baryshkov Reviewed-by: Bjorn Andersson --- drivers/soc/qcom/socinfo.c | 55 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/drivers/soc/qcom/socinfo.c b/drivers/soc/qcom/socinfo.c index ebb49aee179b..0e6adf1161c0 100644 --- a/drivers/soc/qcom/socinfo.c +++ b/drivers/soc/qcom/socinfo.c @@ -24,6 +24,7 @@ #define SOCINFO_VERSION(maj, min) ((((maj) & 0xffff) << 16)|((min) & 0xffff)) #define SMEM_SOCINFO_BUILD_ID_LENGTH 32 +#define SMEM_SOCINFO_CHIP_ID_LENGTH 32 /* * SMEM item id, used to acquire handles to respective @@ -121,6 +122,16 @@ struct socinfo { __le32 chip_family; __le32 raw_device_family; __le32 raw_device_num; + /* Version 13 */ + __le32 nproduct_id; + char chip_id[SMEM_SOCINFO_CHIP_ID_LENGTH]; + /* Version 14 */ + __le32 num_clusters; + __le32 ncluster_array_offset; + __le32 num_defective_parts; + __le32 ndefective_parts_array_offset; + /* Version 15 */ + __le32 nmodem_supported; }; #ifdef CONFIG_DEBUG_FS @@ -135,6 +146,12 @@ struct socinfo_params { u32 raw_ver; u32 hw_plat; u32 fmt; + u32 nproduct_id; + u32 num_clusters; + u32 ncluster_array_offset; + u32 num_defective_parts; + u32 ndefective_parts_array_offset; + u32 nmodem_supported; }; struct smem_image_version { @@ -268,9 +285,19 @@ static int qcom_show_pmic_die_revision(struct seq_file *seq, void *p) return 0; } +static int qcom_show_chip_id(struct seq_file *seq, void *p) +{ + struct socinfo *socinfo = seq->private; + + seq_printf(seq, "%s\n", socinfo->chip_id); + + return 0; +} + QCOM_OPEN(build_id, qcom_show_build_id); QCOM_OPEN(pmic_model, qcom_show_pmic_model); QCOM_OPEN(pmic_die_rev, qcom_show_pmic_die_revision); +QCOM_OPEN(chip_id, qcom_show_chip_id); #define DEFINE_IMAGE_OPS(type) \ static int show_image_##type(struct seq_file *seq, void *p) \ @@ -309,6 +336,34 @@ static void socinfo_debugfs_init(struct qcom_socinfo *qcom_socinfo, qcom_socinfo->info.fmt = __le32_to_cpu(info->fmt); switch (qcom_socinfo->info.fmt) { + case SOCINFO_VERSION(0, 15): + qcom_socinfo->info.nmodem_supported = __le32_to_cpu(info->nmodem_supported); + + debugfs_create_u32("nmodem_supported", 0400, qcom_socinfo->dbg_root, + &qcom_socinfo->info.nmodem_supported); + /* Fall through */ + case SOCINFO_VERSION(0, 14): + qcom_socinfo->info.num_clusters = __le32_to_cpu(info->num_clusters); + qcom_socinfo->info.ncluster_array_offset = __le32_to_cpu(info->ncluster_array_offset); + qcom_socinfo->info.num_defective_parts = __le32_to_cpu(info->num_defective_parts); + qcom_socinfo->info.ndefective_parts_array_offset = __le32_to_cpu(info->ndefective_parts_array_offset); + + debugfs_create_u32("num_clusters", 0400, qcom_socinfo->dbg_root, + &qcom_socinfo->info.num_clusters); + debugfs_create_u32("ncluster_array_offset", 0400, qcom_socinfo->dbg_root, + &qcom_socinfo->info.ncluster_array_offset); + debugfs_create_u32("num_defective_parts", 0400, qcom_socinfo->dbg_root, + &qcom_socinfo->info.num_defective_parts); + debugfs_create_u32("ndefective_parts_array_offset", 0400, qcom_socinfo->dbg_root, + &qcom_socinfo->info.ndefective_parts_array_offset); + /* Fall through */ + case SOCINFO_VERSION(0, 13): + qcom_socinfo->info.nproduct_id = __le32_to_cpu(info->nproduct_id); + + debugfs_create_u32("nproduct_id", 0400, qcom_socinfo->dbg_root, + &qcom_socinfo->info.nproduct_id); + DEBUGFS_ADD(info, chip_id); + /* Fall through */ case SOCINFO_VERSION(0, 12): qcom_socinfo->info.chip_family = __le32_to_cpu(info->chip_family); From patchwork Mon May 25 16:48:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 11569057 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5911860D for ; Mon, 25 May 2020 16:48:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4110420776 for ; Mon, 25 May 2020 16:48:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="vkWuIn0z" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391233AbgEYQsW (ORCPT ); Mon, 25 May 2020 12:48:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389087AbgEYQsW (ORCPT ); Mon, 25 May 2020 12:48:22 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A5C0C061A0E for ; Mon, 25 May 2020 09:48:22 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id z6so21367802ljm.13 for ; Mon, 25 May 2020 09:48:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hLLac1fRuRW93cBHaKE0yJPxIw5p9I3En46VkMcc2XY=; b=vkWuIn0zGI0GsGTu8GD+A30tBGc9GakWacPqWoPMXYMbqMx1/wvSjxaULu207Z6Rg4 g2FQDU1uyFBksSoK9gF+6Qt3/RNkGp9RGJWm4mmJu7/XWA2hTYHtmaPX1xnQb/2M+GGr dJxg1ojN6CyvHUDAYpV41QFxzyfkLW/aX+c+GuosLe1rvtpm8kyffGPnf6pFAX9VUqXV IZAo1EF9AYBKrOv+e2d5oxLJdZaW6cklQoMymW2no3XypppgTVRbd4poYHviuTDecnfC P8D79U6q/vwRJ4yn9GRKZ0IifnmLDXyPdg3OFLAwH6X9PsRHC0Nwmux8dhutxBvZ0PyY crzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=hLLac1fRuRW93cBHaKE0yJPxIw5p9I3En46VkMcc2XY=; b=RXtb3OO2Q8CmbLYgetm/uS5YCgI4HtTAwXbSeuzVdRrtM1iEhSN7jZA9LZIAcZPDKR bEiTqPpWIpsF1c0P99Q2LaqWjiHpY6QgcUg250xXTJb7BzRhiVC78T8YZDlzSgfraMXV mAA4zm4NZUVy5/yMadp5hJ1y3NI+b3ogTuB50j3+xq4oScuQbT1FtDAsSwaWaF/MR+uT 7FuQF7ajlmY8nXRALVBgE+9HoadZAcSh0AkONd0KLamnfDhFnHKIPzQ/dA2oWVj9hbDC o4PFL7aUQgqxdUaPiQVFbgaEl8Z3DTvAlM9CkDMETWzNJEE4s7uRAnNT2s6U/FWiHgND D9+A== X-Gm-Message-State: AOAM532n+9qabi/WDBQ5ptFxDUAQ0/eS/zvgCynlQZBXa4Xemp0PaG/B D4qz9sL6LM2FQu0IyHid0+v9u259gFc= X-Google-Smtp-Source: ABdhPJyX3HhRY0EYbLe4KxnpTY7caK05udU0l6Usk0hAMdvcyCn2ESccsrAMR3FbZDxf93aUgNd1Kg== X-Received: by 2002:a2e:890e:: with SMTP id d14mr14198060lji.216.1590425300344; Mon, 25 May 2020 09:48:20 -0700 (PDT) Received: from lothlann.lan ([188.162.64.24]) by smtp.gmail.com with ESMTPSA id y21sm2914337ljg.48.2020.05.25.09.48.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 May 2020 09:48:19 -0700 (PDT) From: Dmitry Baryshkov To: linux-arm-msm@vger.kernel.org Cc: Andy Gross , Bjorn Andersson , patches@linaro.org, linaro-kernel@lists.linaro.org Subject: [PATCH 2/4] soc: qcom: socinfo: fix printing of pmic_model Date: Mon, 25 May 2020 19:48:15 +0300 Message-Id: <20200525164817.2938638-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200525164817.2938638-1-dmitry.baryshkov@linaro.org> References: <20200525164817.2938638-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Print sensible string instead of just "(null)" for unknown PMIC models. Also as we are at it, do not let debugfs handler access past pmic_models array. Signed-off-by: Dmitry Baryshkov Reviewed-by: Bjorn Andersson --- drivers/soc/qcom/socinfo.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/soc/qcom/socinfo.c b/drivers/soc/qcom/socinfo.c index 0e6adf1161c0..41f48c3447cc 100644 --- a/drivers/soc/qcom/socinfo.c +++ b/drivers/soc/qcom/socinfo.c @@ -269,7 +269,10 @@ static int qcom_show_pmic_model(struct seq_file *seq, void *p) if (model < 0) return -EINVAL; - seq_printf(seq, "%s\n", pmic_models[model]); + if (model <= ARRAY_SIZE(pmic_models) && pmic_models[model]) + seq_printf(seq, "%s\n", pmic_models[model]); + else + seq_printf(seq, "unknown (%d)\n", model); return 0; } From patchwork Mon May 25 16:48:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 11569059 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3CA9660D for ; Mon, 25 May 2020 16:48:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 25CB020849 for ; Mon, 25 May 2020 16:48:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Jker/vaU" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391265AbgEYQsY (ORCPT ); Mon, 25 May 2020 12:48:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389087AbgEYQsY (ORCPT ); Mon, 25 May 2020 12:48:24 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF044C061A0E for ; Mon, 25 May 2020 09:48:23 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id v16so21438685ljc.8 for ; Mon, 25 May 2020 09:48:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=qiWKxhYi/YMJ+m01984GaO2DEsOeOP9WoQp14EKeVgY=; b=Jker/vaUihP9dB/QptkseqeqyGMgRlEGX8R6uIqyNsuPjg1FR2WNDHwGYx4+begViw d9xOFNhgj+EZkqCurFyf2ohJW/2vwWhw9fPlgxMgqqHy15W8t7m2ax9+MuXhG5eBZeFE b8IJvmIwgjzmKR7LtSpSXjkG7I1EalErLGwbsa2nBW8YMRXcx3GQwqWJeJFDRggfkXN+ S8Q+r6bFUTVzMZ5KpQF2ycD9TdLJVZ5NLP6hktYVTv74+up35fZ/EmITp2mfo2hVCJLk heuBkbnz+D6P1+tRn1mqblkOiTWry369H32afiq5ID+2eXU5aW5Sgm9sUtQHo7cg2Poj Jobw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=qiWKxhYi/YMJ+m01984GaO2DEsOeOP9WoQp14EKeVgY=; b=R2/p0+Mdt5Z/+lttQ5a7Jr1EOUVwPkiI3KNyWd14+Qk0RNA5c9rMQ7FRSJitqCna77 ogFe3JkcvZMqts6JtDycyKdcpifM0FHZCAnDgmXsRHK3xZHaHeckEGaqjj1sBp6qE/IZ 7gRjPI6qFufpTq9p6ANu8WUVOBqXr8ek+7vgb/B+QNxDHCeFJkS9FN0HjvvXQawQ7fyB 9vu4ktqr3uRHT3VDXaDV2nBauCoquI4PKOYZAQSUJlcj25s2anf4+6QAyNk7b6P4X4Id +Iyn510dnQgrb1y2bqrR4HrqMuqY3O+tcrbFb4vIDaQ4jql/X9zW5ThjyHnb+JNzbEOI 8VYw== X-Gm-Message-State: AOAM532Hv5RKOKi6xAUeTg5Y6tjgHzOLGnjJiLw2o/hc9NWYVggDXe99 o4vKcqa/s8br6MEVmq5sFVYjKRGlE4Q= X-Google-Smtp-Source: ABdhPJw4ZfvriwVp8OJvPY3JYXP5NaW1Atd85v4ZanHFGaTMBXkqHB8AOT0TbHXh1/wG7tdh00U/MQ== X-Received: by 2002:a2e:95d2:: with SMTP id y18mr11693961ljh.342.1590425301583; Mon, 25 May 2020 09:48:21 -0700 (PDT) Received: from lothlann.lan ([188.162.64.24]) by smtp.gmail.com with ESMTPSA id y21sm2914337ljg.48.2020.05.25.09.48.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 May 2020 09:48:21 -0700 (PDT) From: Dmitry Baryshkov To: linux-arm-msm@vger.kernel.org Cc: Andy Gross , Bjorn Andersson , patches@linaro.org, linaro-kernel@lists.linaro.org Subject: [PATCH 3/4] soc: qcom: socinfo: add file with SoC info format version Date: Mon, 25 May 2020 19:48:16 +0300 Message-Id: <20200525164817.2938638-3-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200525164817.2938638-1-dmitry.baryshkov@linaro.org> References: <20200525164817.2938638-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org To ease debugging socinfo driver for newer chips add debugfs file returning SoC info format version. Signed-off-by: Dmitry Baryshkov Reviewed-by: Bjorn Andersson --- drivers/soc/qcom/socinfo.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/soc/qcom/socinfo.c b/drivers/soc/qcom/socinfo.c index 41f48c3447cc..5f98949c7562 100644 --- a/drivers/soc/qcom/socinfo.c +++ b/drivers/soc/qcom/socinfo.c @@ -338,6 +338,9 @@ static void socinfo_debugfs_init(struct qcom_socinfo *qcom_socinfo, qcom_socinfo->info.fmt = __le32_to_cpu(info->fmt); + debugfs_create_x32("info_fmt", 0400, qcom_socinfo->dbg_root, + &qcom_socinfo->info.fmt); + switch (qcom_socinfo->info.fmt) { case SOCINFO_VERSION(0, 15): qcom_socinfo->info.nmodem_supported = __le32_to_cpu(info->nmodem_supported); From patchwork Mon May 25 16:48:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 11569061 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0F71D60D for ; Mon, 25 May 2020 16:48:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E2FBE2078B for ; Mon, 25 May 2020 16:48:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="EpxHfRui" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391266AbgEYQsZ (ORCPT ); Mon, 25 May 2020 12:48:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389087AbgEYQsZ (ORCPT ); Mon, 25 May 2020 12:48:25 -0400 Received: from mail-lf1-x141.google.com (mail-lf1-x141.google.com [IPv6:2a00:1450:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C849CC061A0E for ; Mon, 25 May 2020 09:48:24 -0700 (PDT) Received: by mail-lf1-x141.google.com with SMTP id a4so10793650lfh.12 for ; Mon, 25 May 2020 09:48:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=NRfikZQfnzv3DqAQbjEWBAHDTgL1DbiRjO2Ao7KxpKU=; b=EpxHfRuilQ3olQsMfwSX2RsB+/aIgAezO/2jVLjevP84jZh3OPMrJqmaOYjYVik7Cl QZqfFAnMT5tf1X8bRQH6kK9Ud4zGH0ln6ASjoWEMzLPh+zn9grolTsZYS+nRLwzOUy7a J4vSMEJocjc7wu/snlHmYBlT2ReXQVmjRPbYQcAt7o+5WcboXxINK+4OGiyMCoiZFJKv LX6cAzEBNGKBhI/HLfe0nQL2n4e9WiOxiOJixp6YcAngqfWo0yrseeyQTFp3eny6livV D3xFnJbX9QjbLbfz0GSTQdsMeMO+Fa5V4TZU4ywvfui1ghAS3w4CHio0Gl+5awInyRrV o15Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=NRfikZQfnzv3DqAQbjEWBAHDTgL1DbiRjO2Ao7KxpKU=; b=nFCZ/pVQZlNSOFQVS8A22Gk2Hs9NObyiBCmbCzmjXE0u2spv2+5ub9HPyXbkxW8JTf DqY2DYPnZ9b13hvKJ1zgA1I60jhQnKEKbeNLFAKg9W1b0CNgUq/h3WgDxwF1EOju0tfX 4hHE34HYrKqmXvwxjJDHzX1ugO7Q7umsM578GKi+x/kxb/cLubrq5c3KstYl1F/SDtbA wAphAHdY3Xza80nNm3+IY4uBwJBknF93LnmZHxAjOqwDZK7ubVUb/+KNNitwBzb0WjoT Q15fYRNJUgu3TGId8YaFdR7FelIXUIMSj4JiwCBoNMZuCjZEn1lSW88KNmBLGvu1ZZwl 0vaQ== X-Gm-Message-State: AOAM530s5q6St3PckuwIV2MGU1HqLfhtHu8By159i+He4HHtgmH61tGd xbBYc3iZ0RKLcqDdIgCCGIr4oD7D0NI= X-Google-Smtp-Source: ABdhPJzFGU3gVLo1w0mNJyPSUGTPxZ33nK83+0n06lPIrqq4nc9ArDq1Z7p3REQXcCY0gNEiCA6I0Q== X-Received: by 2002:a19:4048:: with SMTP id n69mr9737662lfa.31.1590425302951; Mon, 25 May 2020 09:48:22 -0700 (PDT) Received: from lothlann.lan ([188.162.64.24]) by smtp.gmail.com with ESMTPSA id y21sm2914337ljg.48.2020.05.25.09.48.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 May 2020 09:48:22 -0700 (PDT) From: Dmitry Baryshkov To: linux-arm-msm@vger.kernel.org Cc: Andy Gross , Bjorn Andersson , patches@linaro.org, linaro-kernel@lists.linaro.org Subject: [PATCH 4/4] soc: qcom: socinfo: add SM8250 entry to soc_id array Date: Mon, 25 May 2020 19:48:17 +0300 Message-Id: <20200525164817.2938638-4-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200525164817.2938638-1-dmitry.baryshkov@linaro.org> References: <20200525164817.2938638-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add an entry for SM8250 SoC. Signed-off-by: Dmitry Baryshkov Reviewed-by: Bjorn Andersson --- drivers/soc/qcom/socinfo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/soc/qcom/socinfo.c b/drivers/soc/qcom/socinfo.c index 5f98949c7562..3e08cf9836ae 100644 --- a/drivers/soc/qcom/socinfo.c +++ b/drivers/soc/qcom/socinfo.c @@ -217,6 +217,7 @@ static const struct soc_id soc_id[] = { { 312, "APQ8096SG" }, { 321, "SDM845" }, { 341, "SDA845" }, + { 356, "SM8250" }, }; static const char *socinfo_machine(struct device *dev, unsigned int id)