From patchwork Thu Nov 24 09:59:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wang Honghui X-Patchwork-Id: 25416 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3298806wrr; Thu, 24 Nov 2022 02:05:16 -0800 (PST) X-Google-Smtp-Source: AA0mqf4QgoHjTtJZONqVX4GgqHiLejBYgUksAVaGjLdRPdvYtuwT5+Aasytsu3Nw9oUZv9gwCNK8 X-Received: by 2002:a17:90a:bd11:b0:206:64cd:4797 with SMTP id y17-20020a17090abd1100b0020664cd4797mr34761780pjr.103.1669284316482; Thu, 24 Nov 2022 02:05:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669284316; cv=none; d=google.com; s=arc-20160816; b=B4Bv+8LNKDz3U+t1FNY7SK7NyRdkK3ETiJuI0IG7UUrm4POj7iRLq8NcjHp81b250c pxCIycipwd4XOB/NVyjma+IJmO5aOJTyuUdMMvaleeuZd/O4tpsDr84EoqdfEBpXVD/F rT/Gf4a9cpCl3DnzNtz1oL4NkJTPZ4+H3AlCjHYZxv4s9r8Q6iSRMtYk+hxeNeTmLEKq KbnOXT4TmVMZeYF5P/PSCBLsNZhp2dJiGJpBISQHGEzxc+RrTcbrkpkLNMVGhrVC0Y7C O7meXZ5OnzhKYagd4UkfpQy/MJxh+O/7Jcm/fWDzOZkz7FsYwaEi+/2In1ZqkoFRmgMS xzHg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 35-20020a631163000000b004707dd3280asi152772pgr.204.2022.11.24.02.05.03; Thu, 24 Nov 2022 02:05:16 -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 + 99 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-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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750371471350482506?= X-GMAIL-MSGID: =?utf-8?q?1750371471350482506?= 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; }