Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp4888067ybe; Mon, 16 Sep 2019 21:54:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqzNdHTkabc7ms1batsQr46BOrAjhjbgOSaH1NSoVE2HEaiwsPPiDgtpJTWp2cDKISMnl8sR X-Received: by 2002:a17:906:32c2:: with SMTP id k2mr707755ejk.140.1568696069188; Mon, 16 Sep 2019 21:54:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568696069; cv=none; d=google.com; s=arc-20160816; b=G31pbGNKr8FDrS1dCGcKizUH5362V+rLEkXdPmSIbGQtjNfAfT17he6JZ/nJlz9c1R KVhZPJM8sFAK70HC3jeFkCoDd0R0iM+OEG3gdos677U0eNZJYFb4oqyKrB2rJV3hg6C3 9XWI+89Petz98d9xSuB4x749VdYI8r4BzFgCgW8Y4stVPC/vJNUrkKHXc/YlGw5uLcYn sWi28uF2gXiaKXYc+/3zr3aO3GnWXeIXa4C0VGGULwqVGtcvT4xux5yE5+TqKEevu0xh fJ6Q1JpMh+eT1zQJO5pdjSPiPLIp3qM8YeddBpmgpNEotGXR9nhuK6Sr2n4lE8Snv2V1 c7ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:user-agent:subject:from:to:cc :references:in-reply-to:content-transfer-encoding:mime-version :message-id:dkim-signature; bh=WLp+GPttGVxHZ4bc1E597l7UcWrj5/s8colAd/Zrf1E=; b=pkMwgqkRJDr/8hZo6EjypvhZ9KbmQ8AcF1JmOlzLgtNEnPo0YtQonntCW1OKC9oYGI Zuq8TWBsRwiqQC7cBsbcUcO4/G4U8531TUoSAT+2OeGTWh8OblVbiYSJiTutDkBJGXF3 iuWMT96AsOOZrpi5gMb9TNClua2/ZSgv1UFs6wB2jFqpnc217AZWzk/Qnb3xX4PGqARY HYU9XwPIkagUhRL6k/BPcSbXCnJfBvAmSh3UVl9M14Ts/PP2AZ7keW5aHYm+P5/Oe69t VFd0CK6M/HjKzQt0sZAlTh8frWYcEYYNt4mfcyJ5EdyxomAYgmbAKtf8r5X3AwWQe1TG TFww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=HGBAC2Lz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v53si721587edc.378.2019.09.16.21.54.05; Mon, 16 Sep 2019 21:54:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=HGBAC2Lz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388218AbfIPTnR (ORCPT + 99 others); Mon, 16 Sep 2019 15:43:17 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:45853 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727577AbfIPTnQ (ORCPT ); Mon, 16 Sep 2019 15:43:16 -0400 Received: by mail-pg1-f194.google.com with SMTP id 4so553354pgm.12 for ; Mon, 16 Sep 2019 12:43:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=message-id:mime-version:content-transfer-encoding:in-reply-to :references:cc:to:from:subject:user-agent:date; bh=WLp+GPttGVxHZ4bc1E597l7UcWrj5/s8colAd/Zrf1E=; b=HGBAC2LzEi2bY7Z5K1cpZPh8ExkzEXavrfUP/mkdESNHmIDONxGqHmbtiXYrdIS+dt GZX7uhRA3ZPgYGD2tzXp2i/JLavp1eAt+gwRUkef0S2ToGnZEXw7ID0TeV0i1C6LiYdO DUjHMhgwnt3lWZcw7w2FJs7Yl/+tGsBPcK6Nk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:mime-version :content-transfer-encoding:in-reply-to:references:cc:to:from:subject :user-agent:date; bh=WLp+GPttGVxHZ4bc1E597l7UcWrj5/s8colAd/Zrf1E=; b=IjaJB0a39g9s/0Kv0hgGrGW05+I0lb60H5HOmRdVJx+AJPbu0kYfidyMNcwkQ/h2/Z FXYTPoAL1n2XZ0K+nFDvvRqLOfk1UnS4mPItpbUZJLXsQKYNHjfde8LKC+yS+dv3XwPS z5ePkukhe1/Ick/5PF8wWvVU9zrbQKs+I89AlPVRoXgqUoTJoTyZIgOH8PhYjGfDM0Qo NVb7lwB5mTBb/nkMP6VaUbsU9q0paMoxvkH2gtiYoIrQLdRJ8/pJJ588JS8r4IiDZhXt Rz0o7BoLfto0kAASf7JDqC3dHXGDbswly+0X/yHLqkgMCRRnUDMY6xV6CxWMhv/NUabq nFGQ== X-Gm-Message-State: APjAAAW+PYjTu0F7Scd1H228QJ0omFn5CNWqrQSmtyOvw6HlzT8cdsZ1 kXWhTDrM8pkYbToqYBgb7F24vA== X-Received: by 2002:a62:8c97:: with SMTP id m145mr9801pfd.241.1568662994612; Mon, 16 Sep 2019 12:43:14 -0700 (PDT) Received: from chromium.org ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id em21sm372496pjb.31.2019.09.16.12.43.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Sep 2019 12:43:13 -0700 (PDT) Message-ID: <5d7fe5d1.1c69fb81.eca3b.1121@mx.google.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20190912091019.5334-1-srinivas.kandagatla@linaro.org> References: <20190912091019.5334-1-srinivas.kandagatla@linaro.org> Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla To: Srinivas Kandagatla , andy.gross@linaro.org, bjorn.andersson@linaro.org From: Stephen Boyd Subject: Re: [PATCH] soc: qcom: socinfo: add missing soc_id sysfs entry User-Agent: alot/0.8.1 Date: Mon, 16 Sep 2019 12:43:11 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Srinivas Kandagatla (2019-09-12 02:10:19) > looks like SoC ID is not exported to sysfs for some reason. > This patch adds it! >=20 > This is mostly used by userspace libraries like SNPE. What is SNPE? >=20 > Signed-off-by: Srinivas Kandagatla > --- > drivers/soc/qcom/socinfo.c | 2 ++ > 1 file changed, 2 insertions(+) Hmm I wasn't aware this driver was merged. >=20 > diff --git a/drivers/soc/qcom/socinfo.c b/drivers/soc/qcom/socinfo.c > index 8dc86a74559b..876a3f6612a3 100644 > --- a/drivers/soc/qcom/socinfo.c > +++ b/drivers/soc/qcom/socinfo.c > @@ -422,6 +422,8 @@ static int qcom_socinfo_probe(struct platform_device = *pdev) > qs->attr.family =3D "Snapdragon"; > qs->attr.machine =3D socinfo_machine(&pdev->dev, > le32_to_cpu(info->id)); > + qs->attr.soc_id =3D devm_kasprintf(&pdev->dev, GFP_KERNEL, "%u", > + le32_to_cpu(info->id)); > qs->attr.revision =3D devm_kasprintf(&pdev->dev, GFP_KERNEL, "%u.= %u", > SOCINFO_MAJOR(le32_to_cpu(info= ->ver)), > SOCINFO_MINOR(le32_to_cpu(info= ->ver)));