From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5AD89C3DA6D for ; Tue, 20 May 2025 18:39:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=dQZzSpw38okBWKsZXnPL9bfHWKnBcYjDpFLGg/aiMoo=; b=EkM9gFxaBPjZMgmogToO+o0Mej yQPW2lSKE6yyscFUkA6DveaENjjq2zlY2LvrJi6G6jlF5bVvfG4GIlTpsLKJw3kuZw5a2Rpqm5kV2 KW4XkY5CMndV6MG/WA+OoFixRL9yeYlgTW43tOOPUlVbVkux0d+P2f6JaquGUlm3JKxeuIsIurKJ3 wPOV1sUCiEnfcKO+rms2Ri+Fwew2FlIElpn2yKf0Z5JI6JrzAUWOfBHskKUMmm8CpEYV+kNrqNYFK AGExUl6ZjTJGaWBQno5eHNH2p6FR3SwNbBVMjGOT05WhADh1onGlgve3nooWUff6UY2u7tcJC43rY Z9rb28Wg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uHRrm-0000000Doa1-0vok; Tue, 20 May 2025 18:39:06 +0000 Received: from gloria.sntech.de ([185.11.138.130]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uHRpc-0000000DoIV-1ZHs; Tue, 20 May 2025 18:36:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sntech.de; s=gloria202408; h=Content-Type:Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID; bh=dQZzSpw38okBWKsZXnPL9bfHWKnBcYjDpFLGg/aiMoo=; b=HMouFCEzqAfmrdwzBosxpq8Ob7 kXuWO5h3ZwIfKoSWNU/C+KZtSD2ieMlvRN/nO5XwLfDR9XtZuo24ObGryH16edj7eAuzsY2M+mebl JKkhoZEbgQu+90bWRRfXEo42vPl7EQwgfXkSCKgPHF+EBQrMaaR3KPVMRZsB6r1bWXZynCul+//t6 6B3nDgMsQM/jc12a9l2zWppqLmeNI9jnF9reWAeB5E08hqfISdglgB7BQDvaIGe0rGhdnFIznPY70 kd+xLzQ6Tk2KrceUssdV0FgBIMVn5DpPX/X8PvSeScZxKHNQp6j9DKZ4BfUoIoJTKO1tZrcYKF7gO kWs20Rug==; Received: from [61.8.146.112] (helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uHRpP-000495-Ib; Tue, 20 May 2025 20:36:39 +0200 From: Heiko Stuebner To: ulf.hansson@linaro.org, mark.rutland@arm.com, lpieralisi@kernel.org, sudeep.holla@arm.com, Robin Murphy Cc: linux-pm@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 1/2] firmware: smccc: Stub out get_conduit() Date: Tue, 20 May 2025 20:36:38 +0200 Message-ID: <2195785.VLH7GnMWUR@phil> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250520_113652_432047_B7B1C271 X-CRM114-Status: GOOD ( 15.23 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Am Dienstag, 20. Mai 2025, 19:10:16 Mitteleurop=C3=A4ische Sommerzeit schri= eb Robin Murphy: > Various callers use arm_smccc_1_1_get_conduit() to guard their > arm_smccc_smc() calls - since the latter is already stubbed out to > support optional usage in !HAVE_ARM_SMCCC configs, do the equivalent > for the former as well to make life easier. >=20 > Signed-off-by: Robin Murphy Reviewed-by: Heiko Stuebner Way nicer than to require arm32 rockchip platforms to enable smcc stuff, even if not in use. > --- > include/linux/arm-smccc.h | 7 +++++++ > 1 file changed, 7 insertions(+) >=20 > diff --git a/include/linux/arm-smccc.h b/include/linux/arm-smccc.h > index a3863da1510e..97dc4d47c664 100644 > --- a/include/linux/arm-smccc.h > +++ b/include/linux/arm-smccc.h > @@ -315,7 +315,14 @@ enum arm_smccc_conduit { > * > * When SMCCCv1.1 is not present, returns SMCCC_CONDUIT_NONE. > */ > +#ifdef CONFIG_HAVE_ARM_SMCCC_DISCOVERY > enum arm_smccc_conduit arm_smccc_1_1_get_conduit(void); > +#else > +static inline enum arm_smccc_conduit arm_smccc_1_1_get_conduit(void) > +{ > + return SMCCC_CONDUIT_NONE; > +} > +#endif > =20 > /** > * arm_smccc_get_version() >=20