From patchwork Mon Jul 6 16:53:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 1323752 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=G4rz6Fg6; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4B0s8j6rsdz9sRK for ; Tue, 7 Jul 2020 02:53:41 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Owner; bh=M/GgtXitvqRzyWtMSFgWqWeTnPv5/eaCwwTEVrHJ0/0=; b=G4rz6Fg6pkKwHVu0/eTyCwTr+x xWX8H87skYTyOwg9DU2EwPVHyH33LNy74Uw41NoEFPkNdki1E0nwNYaz25dl5YDQ2VM6QITcPt+Jj PCUoeCP4zmv/XmaAQXQBrFUmrmAI8oyrzAPYOTU2Sf/naROBeFeZ/VkRMwkB0TkQtikfzxXTEV+Af nvxMZDR+xHOlNZis4vJuOfwT5j6B+/6sScEeczy5HF54YvvQ0BShj6vn2zqtFq6NaciPLrsitVmyI 4OWzTkeUiSxydfeWv0i8zDKol/4Ddl6aTFKzMly4Yg+Z77BQ+uWPfjaC9w5xV3ha7ezHU+PG1AMtk xttc69bQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jsUMv-0004aU-VI; Mon, 06 Jul 2020 16:53:26 +0000 Received: from foss.arm.com ([217.140.110.172]) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jsUMt-0004Zo-Vf for linux-arm-kernel@lists.infradead.org; Mon, 06 Jul 2020 16:53:24 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DF9721FB; Mon, 6 Jul 2020 09:53:21 -0700 (PDT) Received: from usa.arm.com (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id E0A943F68F; Mon, 6 Jul 2020 09:53:20 -0700 (PDT) From: Sudeep Holla To: ARM SoC Team , SoC Team , ALKML Subject: [GIT PULL] soc: attributes: updates for v5.9 Date: Mon, 6 Jul 2020 17:53:12 +0100 Message-Id: <20200706165312.40697-1-sudeep.holla@arm.com> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200706_125324_075719_533253E0 X-CRM114-Status: GOOD ( 11.12 ) X-Spam-Score: -2.3 (--) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-2.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [217.140.110.172 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Olof Johansson , Kevin Hilman , Arnd Bergmann , Sudeep Holla MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org Hi ARM SoC Team, Please pull ! This is unusual pull request, feel free to pull individual patches. I have asked Arnd couple of time and since I haven't got any objection, I am sending PR anyways. The cleanup patches are acked/reviewed by Greg and platform maintainers. Regards, Sudeep -->8 The following changes since commit b3a9e3b9622ae10064826dccb4f7a52bd88c7407: Linux 5.8-rc1 (2020-06-14 12:45:04 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git tags/soc-attr-updates-5.9 for you to fetch changes up to 821b67fa46390baea0ac5139a60eaa48805261b2: firmware: smccc: Add ARCH_SOC_ID support (2020-07-06 09:48:06 +0100) ---------------------------------------------------------------- SoC attributes update for v5.9 1. Addition of ARM SMCCC ARCH_SOC_ID support 2. Usage of the custom soc attribute groups already supported in the infrastucture instead of device_create_file which eliminates the need for any cleanup when soc is unregistered 3. Minor clean up switching to use standard DEVICE_ATTR_RO() instead of direct __ATTR ---------------------------------------------------------------- Sudeep Holla (9): soc: realview: Switch to use DEVICE_ATTR_RO() soc: realview: Use custom soc attribute group instead of device_create_file soc: integrator: Switch to use DEVICE_ATTR_RO() soc: integrator: Use custom soc attribute group instead of device_create_file soc: ux500: Switch to use DEVICE_ATTR_RO() soc: ux500: Use custom soc attribute group instead of device_create_file ARM: OMAP2: Switch to use DEVICE_ATTR_RO() ARM: OMAP2: Use custom soc attribute group instead of device_create_file firmware: smccc: Add ARCH_SOC_ID support Documentation/ABI/testing/sysfs-devices-soc | 30 ++++++++ arch/arm/mach-omap2/id.c | 20 ++--- drivers/firmware/smccc/Kconfig | 9 +++ drivers/firmware/smccc/Makefile | 1 + drivers/firmware/smccc/soc_id.c | 114 ++++++++++++++++++++++++++++ drivers/soc/ux500/ux500-soc-id.c | 22 +++--- drivers/soc/versatile/soc-integrator.c | 48 ++++++------ drivers/soc/versatile/soc-realview.c | 48 ++++++------ include/linux/arm-smccc.h | 5 ++ 9 files changed, 228 insertions(+), 69 deletions(-) create mode 100644 drivers/firmware/smccc/soc_id.c