Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8645046rwb; Thu, 24 Nov 2022 02:19:53 -0800 (PST) X-Google-Smtp-Source: AA0mqf6aAnzmHUVY4oGxfCftLZUZsn0jeLG1s6s0guW7wTz2+dan9QRCvbx140Z7HBQz/RO5UlMx X-Received: by 2002:a05:6402:1caa:b0:467:78ce:5fe6 with SMTP id cz10-20020a0564021caa00b0046778ce5fe6mr13503691edb.325.1669285192931; Thu, 24 Nov 2022 02:19:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669285192; cv=none; d=google.com; s=arc-20160816; b=ozUzIW+JbTnfSGne0aBEhugZueSQH9PF77x5UfhK6iglqfjJR45mprhfuinWZoVWFF GsD9JYyTlcK5rWymoCJIfyY4tAax6EFnODhUC6jIdp0IQ5KWF78+ACQoRi7myBEWaFe7 T+vV8B4dp7iY445qD46DeA7L4KjTABIPpjxMUIS+/4ZvOKx1Dn6nkzeZ1ah75c+uFpb6 kOSt93kOzaAWxwqu6eqnmyOl0bMO/6r3O1c9/xcxQyBI9VAUWkufI8TR2+iYrWFA7d+P e11MPUnVWYB6a9rtO/63T4INmvM5SQdLx8lMJ77kUvB40ciGAiGDNn4pzhoNHdBmokLH GT9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-disposition:mime-version :message-id:subject:to:from:date; bh=695LUFPE8L+qZ9hJ+QeKaI4P3vcX3viGTQ9AOQ6w6iY=; b=vvDxQzCL3H/iCSmyu2AeFdXAIKYyCUBevoVSsaduW6ob4zDGGmz2CA7TPr+ajLXUHm aK68N4W2x5hcLVKZdaFZnO8Pbb4mQ/RA/iAzjjuH6i/9VviG1hUlK3BKuNpOibuYIx8U Id0psoSSs2DR+Le8RoMy1CL7aCVXnjUXSBjpkHkEnNNDmLJVGk8Lf0hfW/P7MUKf46SF 51EyG5I8bHB2FCkJKkDUMuZQ97lb3cf1Wk9usXl23293gzXmD1qatTJaQlL4E045wIsD y+nvWfW2PvnpC4aiPcuBs2j6RNFcJ/UEOvVccqslfJE2/zIjvcW/FGJZ0hqTA+rxmW4G YjLQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dm17-20020a170907949100b007919c624eadsi562494ejc.522.2022.11.24.02.19.31; Thu, 24 Nov 2022 02:19:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229821AbiKXKAh (ORCPT + 88 others); Thu, 24 Nov 2022 05:00:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229669AbiKXKAg (ORCPT ); Thu, 24 Nov 2022 05:00:36 -0500 Received: from smtpbgjp3.qq.com (smtpbgjp3.qq.com [54.92.39.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BEF6F175A7 for ; Thu, 24 Nov 2022 02:00:32 -0800 (PST) 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-Type: text/plain; charset=us-ascii Content-Disposition: inline X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtpipv:ucas.com.cn:qybglogicsvr:qybglogicsvr6 X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,RCVD_ILLEGAL_IP, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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