From patchwork Mon Sep 14 07:50:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 1363344 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=BOGstOjE; 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 4Bqdp80gH3z9sTK for ; Mon, 14 Sep 2020 17:50:56 +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:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:To:From:Date: 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=F++yhe3qNMul+DilujsmNwX7PsC6RAc+HtrPVfeIX1A=; b=BOGstOjEx/jKVb6tXOq1coyRtA I7aXnMUvKl2rn2dJJ7mVkAbQsNSqDvdKTZkgI0duB28g2gN8tseyJSMAd1fOaKcZh7PbBJsIESIXh vBLM/OdsiRj2klq5d1fUOWpFcKR65TGcIIKH7dvM4x6wuTkZQft0gWw6+0DCkAPCL6ZBjUJcs8oyB LeYH04fsttzRXzz4stJw3alLhDwUvFeIisPtG2Z3sAAUibqPeeWI3Gi7RS4NjgMjG7M99JYr/Ht2h Kr0lZuHa7MBVwgTauH9nJPu7OCyxvSXexaKBaBNXRx2v+VtrhaLHQkIOxePniD3FuWvdp3AOR8wBG ZVTDPNWw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kHjFz-0004K6-Uf; Mon, 14 Sep 2020 07:50:35 +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 1kHjFx-0004JB-0v for linux-arm-kernel@lists.infradead.org; Mon, 14 Sep 2020 07:50:33 +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 E63DCD6E; Mon, 14 Sep 2020 00:50:28 -0700 (PDT) Received: from bogus (unknown [10.57.52.41]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A69E83F718; Mon, 14 Sep 2020 00:50:27 -0700 (PDT) Date: Mon, 14 Sep 2020 08:50:18 +0100 From: Sudeep Holla To: ARM SoC Team , SoC Team , ALKML Subject: [GIT PULL] firmware: arm_scmi: updates for v5.10 Message-ID: <20200914075018.2rvytvghxyutcbk4@bogus> MIME-Version: 1.0 Content-Disposition: inline User-Agent: NeoMutt/20171215 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200914_035033_138459_F370A69A X-CRM114-Status: GOOD ( 13.71 ) 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_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches 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 , Sudeep Holla , Arnd Bergmann , Kevin Hilman Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org Hi ARM SoC Team, Please pull ! Sorry for the delayed PR, but patches have been in -next for few days now. Regards, Sudeep -->8 The following changes since commit 9123e3a74ec7b934a4a099e98af6a61c2f80bbf5: Linux 5.9-rc1 (2020-08-16 13:04:57 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git tags/scmi-updates-5.10 for you to fetch changes up to 66d90f6ecee755e9c19a119c9255e80091165498: firmware: arm_scmi: Enable building as a single module (2020-09-14 07:31:03 +0100) ---------------------------------------------------------------- ARM SCMI updates for v5.10 Couple of main additions: SCMI system protocol support and ability to build SCMI driver as a single module which is needed by some transports like virtio as they may not be ready early during the boot. This also includes constification of scmi ops and related function pointers. ---------------------------------------------------------------- Cristian Marussi (2): firmware: arm_scmi: Add system power protocol support firmware: arm_scmi: Add SCMI device for system power protocol Rikard Falkeborn (3): cpufreq: arm_scmi: Constify scmi_perf_ops pointers firmware: arm_scmi: Constify ops pointers in scmi_handle firmware: arm_scmi: Constify static scmi-ops Sudeep Holla (5): firmware: arm_scmi: Fix NULL pointer dereference in mailbox_chan_free firmware: smccc: Export both smccc functions firmware: arm_scmi: Move scmi bus init and exit calls into the driver firmware: arm_scmi: Move scmi protocols registration into the driver firmware: arm_scmi: Enable building as a single module drivers/cpufreq/scmi-cpufreq.c | 6 +- drivers/firmware/Kconfig | 2 +- drivers/firmware/Makefile | 2 +- drivers/firmware/arm_scmi/Makefile | 6 +- drivers/firmware/arm_scmi/bus.c | 6 +- drivers/firmware/arm_scmi/clock.c | 9 +-- drivers/firmware/arm_scmi/common.h | 26 ++++++- drivers/firmware/arm_scmi/driver.c | 31 ++++++++- drivers/firmware/arm_scmi/mailbox.c | 4 +- drivers/firmware/arm_scmi/notify.c | 2 +- drivers/firmware/arm_scmi/perf.c | 9 +-- drivers/firmware/arm_scmi/power.c | 9 +-- drivers/firmware/arm_scmi/reset.c | 9 +-- drivers/firmware/arm_scmi/sensors.c | 9 +-- drivers/firmware/arm_scmi/smc.c | 2 +- drivers/firmware/arm_scmi/system.c | 131 ++++++++++++++++++++++++++++++++++++ drivers/firmware/smccc/smccc.c | 2 + include/linux/scmi_protocol.h | 32 +++++++-- 18 files changed, 238 insertions(+), 59 deletions(-) create mode 100644 drivers/firmware/arm_scmi/system.c