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 6EE21C3DA4A for ; Thu, 8 Aug 2024 09:44:37 +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-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:CC:To: Subject:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=cqYXrzNawm/1X9JQS34OLHXhEA/j+MQAVWX9RVFGQgY=; b=yG6ugK5EQFTOj72WTf4xkHdlD0 YJU/7RjPE+l2Vw6lFkJ575iHlZHRK6JA21940837xMb2k94zpx/FOfwYXo1SmCT/i95euFpOatze9 M+nbLmCRjANQVf2gJ03A+SEkYxjZnm/harorMgm8PcOfvtuQ0Ok1ZcqpwRZgy8+QjwwRohiDhpsdt nlm8PGpeAy5HoDhab6bJvHHgZF3JNA7/wM39qDI6lP88SxPeXxBpHsFJin7/NTES0ee9fs6UwiD8s kIPmHtF6Z2tV5oY0LItNaJWvuDmAFj7QHfgzxyfg693fCwUd9WMGI/G7w3XzEnmMsLokf2sQSd+qK Mv5um4lg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbzh6-00000007lBs-0QTG; Thu, 08 Aug 2024 09:44:28 +0000 Received: from szxga02-in.huawei.com ([45.249.212.188]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbzgW-00000007l70-3I7i for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 09:43:54 +0000 Received: from mail.maildlp.com (unknown [172.19.163.174]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Wfhrr1f2KzDqb9; Thu, 8 Aug 2024 17:41:48 +0800 (CST) Received: from dggpemf500002.china.huawei.com (unknown [7.185.36.57]) by mail.maildlp.com (Postfix) with ESMTPS id 88A4A1401E0; Thu, 8 Aug 2024 17:43:42 +0800 (CST) Received: from [10.174.178.247] (10.174.178.247) by dggpemf500002.china.huawei.com (7.185.36.57) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Thu, 8 Aug 2024 17:43:42 +0800 Subject: Re: [PATCH v3] ACPI: introduce acpi_arch_init To: , "Rafael J. Wysocki" , Len Brown , Sunil V L , Sudeep Holla CC: , References: <20240808-intro-acpi-arch-init-v3-1-ba510859baff@gmail.com> From: Hanjun Guo Message-ID: <64bd9991-61a9-5cb5-60fe-941cb4171290@huawei.com> Date: Thu, 8 Aug 2024 17:43:41 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20240808-intro-acpi-arch-init-v3-1-ba510859baff@gmail.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.178.247] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpemf500002.china.huawei.com (7.185.36.57) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_024353_012620_BD91DAEC X-CRM114-Status: GOOD ( 10.50 ) 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 On 2024/8/8 17:00, Miao Wang via B4 Relay wrote: > From: Miao Wang > > To avoid arch-specific code in general ACPI initialization flow, > we introduce a weak symbol acpi_arch_init. Currently, arm64 can > utillize this to insert its specific flow. In the future, > other architectures can also have chance to define their own > arch-specific acpi initialization process if necessary. > > Signed-off-by: Miao Wang > Reviewed-by: Sunil V L > Reviewed-by: Sudeep Holla > --- > Changes from v1 > - Change acpi_arch_init from a static inline stub to a weak function > according to Haijun Guo's advice > --- > Changes from v2: > - Add __init attribute to the weak acpi_arch_init stub > - Link to v2: https://lore.kernel.org/r/20240807-intro-acpi-arch-init-v2-1-9231e23a7721@gmail.com Thanks for the quick update, Acked-by: Hanjun Guo Thanks Hanjun