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: 187195 Delivered-To: patches@linaro.org Received: by 2002:a92:5b0a:0:0:0:0:0 with SMTP id p10csp5097069ilb; Mon, 25 May 2020 09:48:22 -0700 (PDT) X-Received: by 2002:a2e:b5d0:: with SMTP id g16mr12699618ljn.436.1590425302444; Mon, 25 May 2020 09:48:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590425302; cv=none; d=google.com; s=arc-20160816; b=VqjJ0Tg1XFUue42PZJVyjVEI3XcUHWF93oYtfSsufC+KaasPhzTWWokApDiDVPmW0k 30PA+daMm3n6m8HzXk0Cvi8wi998ay4MumP2dCieJDYssgNwAJ+FFS7t7+Fo3x1684Wz v/K+NX3De7JVqZai5rsrLqQDyv3gg0hdRz38YxOSroKT7lucQ9bsy9LkFhopK7Cwli6p pa2UqBx/zC/56qMFE8mTnsbryOzsZIQLOLy6AFT8p1fzvJudgbitdu/NG9hCrm7hBTge dfouCiYFWqNlLjSbc72zFI8//RSQ8OAufb9ZuRVmvF1MrgjJM1Lu5mBeeAz2r3OBL31P GWUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=qiWKxhYi/YMJ+m01984GaO2DEsOeOP9WoQp14EKeVgY=; b=Fb/ImmrhokE2KyjjFRfc+5JNlGSCmAXvx4ZUcw24pV+uQDOOALTA2/h6S/dVKdtxKF 8z9VDnDmZOAXCFP+q734EqcUHj+gYQq596KEH0jaKP131iNcf929CF9jFxHEg834P2v7 VZLnz/byha9r4A8G+fL/DP+ytZ/BEi3GJVfTr7SvEh09sK7nnO6tKTs9xnOaazez5wyJ M/NjVLXB7lVfjIQLwHqFCCtQwZ1tyZJGCnYPcytF3TZ87RWvmtn4rsDga11RFFQdfADt 3nxTr2ab9olitju3e3DFR9HFOtUfQb2SxH+lIbiO8/IrOtkVikb0zcSg36vlM1Naoevj tmNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Jker/vaU"; spf=pass (google.com: domain of dmitry.baryshkov@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=dmitry.baryshkov@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id e17sor7566305ljn.71.2020.05.25.09.48.22 for (Google Transport Security); Mon, 25 May 2020 09:48:22 -0700 (PDT) Received-SPF: pass (google.com: domain of dmitry.baryshkov@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Jker/vaU"; spf=pass (google.com: domain of dmitry.baryshkov@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=dmitry.baryshkov@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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=I5U5UzeJR966ZqW5EYFx4VukEu3B4q55lUyxKHHCv7YELGNOniixMck45WDsx33MF6 FF7gpXwCKQoSh89Ymdy0noV4Latc5mDpuwUb3vvJ76wtGeGxRO5vyvoO01oU/PeAhDrI noPKQ2IlQqbIXz8ax9mWR3la2V10L2woF/udXxCe4cjpMeAj6GX8QYHXgt2lfPuHkkGw 8D4NBqDe+GpqEVZTrTIkdhkRuYobb8Zyaqu3a9h3PkOKrx3m8zI8maA9MNOVm+bx7xL8 jtxlwBwuOIU4DAEBWpdvb5YNdH+egJ8PToyTIa9lHrS7HngwD8PETEtK+HLeeH4TWP3F HyUw== X-Gm-Message-State: AOAM5321Bkc1zhszm56fF7cRe0Kq8lgdJ/9b2XFoO4bUbqy+/+0oI7jL QIGUfL93ECK5uOSGjGU9QBjsXAZo 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) Return-Path: 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 To ease debugging socinfo driver for newer chips add debugfs file returning SoC info format version. Signed-off-by: Dmitry Baryshkov --- drivers/soc/qcom/socinfo.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.26.2 Reviewed-by: Bjorn Andersson 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);