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 2AAB1C2BD09 for ; Mon, 24 Jun 2024 15:02:42 +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:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=7eywUR8kJ35tl2LKleR00qP0Wf4lXvJIVwtwLATq9fA=; b=Dn8diP7Pp88TuYjk4sue4iAC/G iq8W82k5cTAmFsuMCmH515PvaNzrBNo41f17aNJEVAyxW4BUF0JDH3BYRl9G5VEPYkF5lS5iBAcy5 aa3xiCrjd6/wykgboAhZumgXLGuRxZ4X2/56UfbD3YtykH4Thto16juewJmDnWkVt84itjqha43gd RHhUcEcJ6Ac10gVkcUmyTQ6XtNECKOkxy8NfDqGg2T6muVuv7zkl3YKSsvUsH6B+AqEDb+mzjkB5O Oag49Nw4l3CMvrL9dSPXe0lomYRrD1OkpDMn95ACT50UL1kkB1NpL+JAV16ig+txMBPGFO/utwMug C7rByCrg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLlDA-0000000HDrv-1rT4; Mon, 24 Jun 2024 15:02:28 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLlD4-0000000HDpw-49fL for linux-arm-kernel@lists.infradead.org; Mon, 24 Jun 2024 15:02:24 +0000 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 C821DDA7; Mon, 24 Jun 2024 08:02:46 -0700 (PDT) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3A8243F73B; Mon, 24 Jun 2024 08:02:20 -0700 (PDT) Date: Mon, 24 Jun 2024 16:02:17 +0100 From: Sudeep Holla To: Youwan Wang , catalin.marinas@arm.com Cc: guohanjun@huawei.com, lenb@kernel.org, linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, lpieralisi@kernel.org, rafael@kernel.org, will@kernel.org, Sudeep Holla Subject: Re: [PATCH v4] ACPI / amba: Drop unnecessary check for registered amba_dummy_clk Message-ID: References: <20240620133758.319392-1-youwan@nfschina.com> <20240624023101.369633-1-youwan@nfschina.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240624023101.369633-1-youwan@nfschina.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240624_080223_106634_5DCDB0BB X-CRM114-Status: GOOD ( 11.64 ) 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 Mon, Jun 24, 2024 at 10:31:01AM +0800, Youwan Wang wrote: > amba_register_dummy_clk() is called only once from acpi_amba_init() > and acpi_amba_init() itself is called once during the initialisation. > amba_dummy_clk can't be initialised before this in any other code > path and hence the check for already registered amba_dummy_clk is > not necessary. Drop the same. > > Signed-off-by: Youwan Wang > Acked-by: Sudeep Holla > Acked-by: Hanjun Guo > --- Hi Catalin, Can you please pick up this simple cleanup patch under ACPI changes ? It is very hard to follow the versions as it is messed up, but this version is good to take though. -- Regards, Sudeep