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 4DA6BC43458 for ; Mon, 6 Jul 2026 08:47:25 +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=UGILdGIqq+1IKf9yow+nP7y57LK2rfH/A9Z6IA5aPb8=; b=Ov94gTTtaGq2YfUsy0jD88ix3V 7bs5O7MXcAVOA82AfVqgWMqbiW4uKUOyNgi0U6DXjWvaDCoo6ugk2CtGfrYGtk/ut2pSs2Se/GQQS T4kcwxs7NnhWzttMkHL4iuC7Tb8YBA1a8oV7CNt+PDzbe+wL/MbmXNX6ZiiepxZaLKFJ3I+3TAvU2 njZXufLgFfOl82SAX3By8Oj0dC32r2bE5uswVLCdSxT5MrJw99xSu0LDDJVKMi368Zm1NmLE50L3f /FqFiJCy6vJQzsdRhZ4Ec7MZsU5SZL3jBP+13NaNUzS4k+xCIQKiWrmeGoqA91WGSkCnq2YkLH2gV +PYVxcfQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wgeys-0000000Bt0Y-0Uds; Mon, 06 Jul 2026 08:47:10 +0000 Received: from sea.source.kernel.org ([172.234.252.31]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wgeyk-0000000Bsz3-2O0y; Mon, 06 Jul 2026 08:47:04 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 5577A436AD; Mon, 6 Jul 2026 08:47:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4ABB91F00A3A; Mon, 6 Jul 2026 08:46:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1783327622; bh=UGILdGIqq+1IKf9yow+nP7y57LK2rfH/A9Z6IA5aPb8=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=InZqhSUj695xT8151QVlSgvSGozgmRqrqPlRN2PvXVEEtO9zST/H3OxPkj30S6yaY df8jJSnuAmgMXe/bdfXiQJlywBHbBAIEmuz43lTQYBf4lj4GfvWxUxP8aVPbmZA7D4 t3TUek+erMuQZ382Dqaef1EXQpDuxmOgtjFm/K1zidRcOrNexyxKmGElpl/Jq+mdh7 AdeYW/PKYBZdx8qDlmm4/BH4NFWcr4bumSVDkq4/n/Ua7VnnJIr5L0RgJhHGeaymYd /9pOER+OfAX+MJMw3yhAkIXIkXy78z7fjvGEHJ8BW5CBIdhrlbcannRN6sBR1HP+xv cSRaozu9sWEoA== Date: Mon, 6 Jul 2026 10:46:55 +0200 From: Lorenzo Pieralisi To: Marc Zyngier Cc: "Rafael J. Wysocki" , Len Brown , Sunil V L , Thomas Gleixner , Huacai Chen , Anup Patel , Hanjun Guo , Sudeep Holla , Catalin Marinas , Will Deacon , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, loongarch@lists.linux.dev, "Rafael J. Wysocki" Subject: Re: [PATCH v3 1/7] ACPI: Add acpi_device_clear_dep() helper function Message-ID: References: <20260701-gic-v5-acpi-iwb-probe-deferral-v3-0-c5562cf0fe29@kernel.org> <20260701-gic-v5-acpi-iwb-probe-deferral-v3-1-c5562cf0fe29@kernel.org> <87jyrd6q0o.wl-maz@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87jyrd6q0o.wl-maz@kernel.org> 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 Thu, Jul 02, 2026 at 10:27:35PM +0100, Marc Zyngier wrote: > On Wed, 01 Jul 2026 15:38:49 +0100, > Lorenzo Pieralisi wrote: > > > > Code clearing device dependencies in ACPI in drivers through > > > > acpi_dev_clear_dependencies() > > > > requires annoying ifdeffery to make sure it is compiled out on > > !CONFIG_ACPI configurations. > > > > Implement a wrapper function to clear device dependencies that can be used > > in device drivers without conditional compilation. > > > > Signed-off-by: Lorenzo Pieralisi > > Cc: "Rafael J. Wysocki" > > --- > > include/linux/acpi.h | 8 ++++++++ > > 1 file changed, 8 insertions(+) > > > > diff --git a/include/linux/acpi.h b/include/linux/acpi.h > > index 10d6c6c11bdf..4f950f5386d7 100644 > > --- a/include/linux/acpi.h > > +++ b/include/linux/acpi.h > > @@ -94,6 +94,12 @@ static inline void acpi_preset_companion(struct device *dev, > > ACPI_COMPANION_SET(dev, acpi_find_child_device(parent, addr, false)); > > } > > > > +static inline void acpi_device_clear_dep(struct device *dev) > > uber nit: "clear_dep" is singular, while "clear_dependencies" is > obviously plural. acpi_device_clear_deps() would look slightly > clearer. Hi Marc, sure I will update it and respin a final version. Thanks, Lorenzo