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 11F13C43219 for ; Thu, 24 Nov 2022 10:01:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:To:From :Date:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=e9AkpKjj7yVR4jRNag4PvZrFqAHH7WiydzkYNuVuavE=; b=Zf7TR0RYjlwzb8 VJ0Lec2o3jjXYW4S4n1QS0SD4xucOsqC0OchuFTXLGBw1L1RA9Y0f1G1gmuQNmwqH6kA9zJNde8vX mBOB5IJqh+W354Nrzs2qgyNlfHa8G/91J7qIuLcVf9yoQDeEO/e21JaVnkVOvSsifZqJiUQn946cs zs+dJMsDJG3YHb6ta7rEAVKwn369saUu0z+xkE79ivgIyM4X/9CG22sS9oTHDykIOdWfJriSDPNdm AzrAY50EDaXybuI7F11z9ByGMDPU+XFOWYXtHA2RIU642c9lYhht6cjBA9kNZO9Gam9AZENTm6lpl 7yQ2Q7bwOO0/j0zLRIbA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oy91y-007OyI-RE; Thu, 24 Nov 2022 10:00:30 +0000 Received: from smtpbgsg1.qq.com ([54.254.200.92]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oy91u-007Oiv-Az for linux-arm-kernel@lists.infradead.org; Thu, 24 Nov 2022 10:00:28 +0000 X-QQ-mid: bizesmtpipv601t1669283989t4ga Received: from localhost ( [255.244.225.9]) by bizesmtp.qq.com (ESMTP) with id ; Thu, 24 Nov 2022 17:59:48 +0800 (CST) X-QQ-SSF: 01400000002000506000B00A0000000 X-QQ-FEAT: zT6n3Y95oi0KjB5qD2vgo+9Z95mG8fSYlxILX8DZ9Qq5/iqAp8PHe5OxNq8eL hJ2hQo0hU2Dk1mB4yOb0a94YOYxnKDFu46U1j6a/hMalHEIEslPeoVyKOTptT+Ge1CjjU3k mu0oxtxfE+QVNiEV9MbYmsuYw4EONYqnU3WQ4dR7HjEPeORGWqKHsQcNrtBj6GJ1e5kdqp1 mKTP5+q+3vFZejjCEEKWRDUW+4YLGJ6/bnTLPcQSWvo8aJ09roPHfIm87tzG3wIalo188l2 VCVrImUV8LuAAxmYFZ62Day8KsbOeowrBL/WD5ih7yncqP5gDzw3NOYRWNMO9eWnBp/p/vL zew2rrqEBK4YgjsDrdtTlZ43QYRtsGraL3NCIZBp8ySd0er4Fgrm7HNbmpR+A== X-QQ-GoodBg: 2 Date: Thu, 24 Nov 2022 17:59:47 +0800 From: Wang Honghui To: Sudeep Holla , Cristian Marussi , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH V2 3/3] arm_scpi: Rev last modify to support acpi Message-ID: <566DA2F800E4BACA+Y39Ak8xtNJaBqB90@TP-P15V.lan> MIME-Version: 1.0 Content-Disposition: inline X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtpipv:ucas.com.cn:qybglogicsvr:qybglogicsvr6 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221124_020026_942349_13E0A5AC X-CRM114-Status: UNSURE ( 8.70 ) X-CRM114-Notice: Please train this message. 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Rev last modify to support acpi Signed-off-by: Wang Honghui --- drivers/firmware/arm_scpi.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/firmware/arm_scpi.c b/drivers/firmware/arm_scpi.c index e2e90dcc38bd..aca0a9780c12 100644 --- a/drivers/firmware/arm_scpi.c +++ b/drivers/firmware/arm_scpi.c @@ -908,7 +908,9 @@ static const struct of_device_id shmem_of_match[] __maybe_unused = { { } }; +#ifdef CONFIG_PHYTIUM_MBOX extern struct mbox_chan *phytium_mbox_request_channel(struct mbox_client *cl); +#endif static int scpi_probe(struct platform_device *pdev) { @@ -1047,6 +1049,7 @@ static int scpi_probe(struct platform_device *pdev) ret = scpi_alloc_xfer_list(dev, pchan); +#ifdef phytium_mbox_request_channel if (!ret) { pchan->chan = phytium_mbox_request_channel(cl); @@ -1058,6 +1061,7 @@ static int scpi_probe(struct platform_device *pdev) dev_err(dev, "failed to get channel%d err %d\n", idx, ret); } +#endif return ret; } -- 2.34.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel