From patchwork Thu Feb 14 03:41:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaishali Thakkar X-Patchwork-Id: 158299 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp859931jaa; Wed, 13 Feb 2019 19:41:24 -0800 (PST) X-Google-Smtp-Source: AHgI3Ibfo+R/ewQH2Yw4YZlvI65oJOsCVBu8e/IrwMR9ZrkwPWvPCtifrO2sBt7WMteOz/8iWpHr X-Received: by 2002:a17:902:a50a:: with SMTP id s10mr1798657plq.278.1550115684869; Wed, 13 Feb 2019 19:41:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550115684; cv=none; d=google.com; s=arc-20160816; b=rzgwkxkbGUskF+HxvULKAeqHoT2sAF5MQbld9bJNx9JzmfbquihZE0Xqa6oXbtb+Kt QBzYrhdk+Wt9UG9YHCR1IYPQ/tW4eSvSq1mN1b3h562wHmpJy24OVto7Gi3Z/dH/63Vq tvVZW1UGOJWKxXCSBkS9e07oFKtCFZ5Tl7LP+br0bLYUdQvMZHGMD4sushw/YrQV7hTw dcsrz8P/x0vR7OfyPHsTBJN7N6Ff05vTVPeXm3MeSc8g31zauluK5g5nWrjcsz3a4mT8 29fEcVs4N4MdD3KC0LOwK1pwcgl5gY3Pk+F0vm+8BG6+7yPtYXD6BXDownqYGZNrtxa8 mlBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=hdLRKsT0cs+98+3MV9OcAfaAjHpVtLRfYHo+ZXFC1FA=; b=KX/o3AyzdpqP8EYgC5a6Sfv5u9sfe0yjKkaGLUgJqg+YU5Oz/2FvmVOt2xYOf8f0qM BnXK/WP56hF/6zhHD6MDkMZug9mUdOB0tPSKNwHy3Vos+zTjRtZyeW6L+48plNtGeZsy 7G4wmaDo/RAnG1d0gNz1KULZZblh8ff4nu6rgg31if1OtXQXJaiIxJQwRRAI3olhwV4O /+rPpP49TuYTRPTeHnrkVcGp1yfBzw5QYNfjss7dv1UJc/a0mHzSJ7+c3rwsYuqcYRn9 DEZoP9CQHSIECTBeBg9FOAZIW/xL++kCXbPB/SWc/a2OfIiq/ML8DTL2D5F0dMLIn9SK WyTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vB1VWDvi; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d12si1260177pfd.183.2019.02.13.19.41.24; Wed, 13 Feb 2019 19:41:24 -0800 (PST) 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=@linaro.org header.s=google header.b=vB1VWDvi; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2395355AbfBNDlX (ORCPT + 31 others); Wed, 13 Feb 2019 22:41:23 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:37113 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389764AbfBNDlW (ORCPT ); Wed, 13 Feb 2019 22:41:22 -0500 Received: by mail-pg1-f196.google.com with SMTP id q206so2300884pgq.4 for ; Wed, 13 Feb 2019 19:41:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=hdLRKsT0cs+98+3MV9OcAfaAjHpVtLRfYHo+ZXFC1FA=; b=vB1VWDviEvygcYmbEjWdkjXokIpawvpYVPirQPjJUbXUuxPNOceumKiKDL9f91L/rx WOlAo+y6VyW1Z+KzDCVQaum/ZevRH2IFISE6WNuzfWsm686/7KhZfKT1NfRT9fTdR6Hq EQKfuvQ65vpibOMFzeh8E6vaQfh0V+xBILGKn5o7Su5l4YU8rMF+2C7udhm9gSeg9nvd SiXb2/2En/tOP8r6OLHN0kzVk5hStJglrXfzViDaQY8uPNCYitHnjNa56TLV8Y1keda7 OyG8Q7rQqAHUXyKkwfFOkz2YWrDFLEilYAevp/eNoghwT/5ZSC8DfXGKxTyR94pvpY5O rhzw== 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; bh=hdLRKsT0cs+98+3MV9OcAfaAjHpVtLRfYHo+ZXFC1FA=; b=boJZQVW50Z+X6Piyq2v3Gv1iGdlwWjBDF13b2LzMVwhZEX/UR8EomyfdhrqamDdy9u FO8zOdFgvTW2+8UGRkRU3DL+/CYQQFstEPWftO+1ad4JHJbr7mZk3E7i5L9RqzdeqsIv L0UaldMDxumtNku50LKPJDQyUJ1sdC6Ra05JyzB5+b+ST3Swb8mbGEulb5RTBt7sIOLQ ONJO++lp64zBgWMyXNnrQRND4AQYcie6BSKi8ITF4EHLqWYYlDliZ1E9k+DtN5zwo/es D/c9AP2GHRy9sUViANMaMRaG8Zi3k701c0l4ItfIBoiUHEZ5liRs8fAyrD37t9R5e/9s drUQ== X-Gm-Message-State: AHQUAubyDuMpyLAsXluQ6ZL/Kx00fCbKJt/zj36CcXVA3FcGt3OTtYSI 6ZYyzhkWunGIqQiYeHF3PEeR5w== X-Received: by 2002:a63:d301:: with SMTP id b1mr1688134pgg.61.1550115682006; Wed, 13 Feb 2019 19:41:22 -0800 (PST) Received: from localhost.localdomain ([103.240.171.178]) by smtp.gmail.com with ESMTPSA id y66sm1460087pfy.66.2019.02.13.19.41.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Feb 2019 19:41:21 -0800 (PST) From: Vaishali Thakkar To: andy.gross@linaro.org Cc: david.brown@linaro.org, gregkh@linuxfoundation.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, rafael@kernel.org, Vaishali Thakkar Subject: [PATCH 0/5] soc: qcom: Add SoC info driver Date: Thu, 14 Feb 2019 09:11:11 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset adds SoC info driver which can provide information such as Chip ID, Chip family and serial number about Qualcomm SoCs to user space via sysfs. Furthermore, it allows userspace to get information about custom attributes and various image version information via debugfs. The patchset cleanly applies on top of v5.0-rc6. Vaishali Thakkar (5): base: soc: Add serial_number attribute to soc soc: qcom: Add socinfo driver soc: qcom: socinfo: Expose custom attributes soc: qcom: socinfo: Expose image information base: soc: Export soc_device_register/unregister APIs Documentation/ABI/testing/sysfs-devices-soc | 7 + drivers/base/soc.c | 9 + drivers/soc/qcom/Kconfig | 8 + drivers/soc/qcom/Makefile | 1 + drivers/soc/qcom/smem.c | 8 + drivers/soc/qcom/socinfo.c | 610 ++++++++++++++++++++ include/linux/sys_soc.h | 1 + 7 files changed, 644 insertions(+) create mode 100644 drivers/soc/qcom/socinfo.c -- 2.17.1