Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8713416rwb; Thu, 24 Nov 2022 03:23:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf7sBFHm75QPt1Zr+jM0SwVnJS2i/q7w/tnqZYhMn88ge4pcel2bxzyHXanpkI2s43lnVFFu X-Received: by 2002:a17:903:26ce:b0:186:8a1e:5055 with SMTP id jg14-20020a17090326ce00b001868a1e5055mr13119613plb.116.1669288987971; Thu, 24 Nov 2022 03:23:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669288987; cv=none; d=google.com; s=arc-20160816; b=VZJZB64uLCbmQYZkFQRjgktjFXwhGMD5tjW1xIq6gt5QMoD/T1e8KbSrKhXTRN/HXY ql6lMdvKrXrn93QODPO3UPMeAGG52EG2Msw+TzWxP1tBuhvKNu1JbNfSR0tNhY5nlpMu jv/3f0yxmEylSW7iQI5vOPDoWfAO4ZNavqbChP5a0PAUi+p3YyUVuKV3g+WhLS95XysY 7ZycWEKdK2p+Z//ZgJv7UzCLQtU5tIoKy5WIQBgcFDsxkbotPcY8NcwQmp9bmT0aa2AF nY9h0/aaFhxyUxuOm6iUtxWlzwfSHD29aG/MM4IA7xaTw56RDu6cVf/QmdRHHHV+ZQQb 2dyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=7Z06qUbSioK3WC8+PT89wqUPHMWLFCoTT4YPSUyOGGY=; b=cC1R10QH1H4FpKlHHahXlWysLlQeDS9xiO0NuvIoMHnCNSu9zenF2nzH+Xukqkkv2V hqvpKEuxd6xSEoT4fXy5klRVhE6oLKX84WCL2jcUxCOsTcZpALXWdE5Hlp1ykaEfppaw CYa0lVThazmy+3YWQCPisZosmnKP1cdKbuzXUWIhBtv5W5DBpTWNj6BPrpxmCS/b4Van cjsB2Rhcx/Dj75Zfz4+oZlMnmJPCXK8MqU18MGUrgnMkRcWQcUtyUlNZnBCSr+eDNMsW RQaLMMu2gT80QaOGL4KnoAz7cYIrZ4w1NT0C7RTFapwNEECYsA/+WZucG017oM8LGH+h RAdA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x2-20020a056a00188200b00573f637f587si876937pfh.227.2022.11.24.03.22.56; Thu, 24 Nov 2022 03:23:07 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230031AbiKXLO6 (ORCPT + 86 others); Thu, 24 Nov 2022 06:14:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230034AbiKXLOz (ORCPT ); Thu, 24 Nov 2022 06:14:55 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CD3501448EB for ; Thu, 24 Nov 2022 03:14:53 -0800 (PST) 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 D622E106F; Thu, 24 Nov 2022 03:14:59 -0800 (PST) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id AB42C3F587; Thu, 24 Nov 2022 03:14:52 -0800 (PST) Date: Thu, 24 Nov 2022 11:14:50 +0000 From: Sudeep Holla To: Wang Honghui Cc: Cristian Marussi , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V2 3/3] arm_scpi: Rev last modify to support acpi Message-ID: <20221124111450.mqfpmatba6f7pap6@bogus> References: <566DA2F800E4BACA+Y39Ak8xtNJaBqB90@TP-P15V.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <566DA2F800E4BACA+Y39Ak8xtNJaBqB90@TP-P15V.lan> X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham 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 On Thu, Nov 24, 2022 at 05:59:47PM +0800, Wang Honghui wrote: > 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 I have already NACK the approach you have taken for SCPI + ACPI. Just forgot to mention SCPI is old and deprecated protocol and SCMI replaced it. You much be using that if possible. Anyways, this kind of #ifdeffery is not allowed in any generic code even if I agreed with the approach. So please don't change the code in such a way. -- Regards, Sudeep