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 679EFC43458 for ; Thu, 2 Jul 2026 21:26:00 +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-Type:MIME-Version: References:In-Reply-To:Subject:Cc:To:From:Message-ID: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=o2YLLUSdPgZxZ+qMmhQjPi0zw0gGJ6LyLSY1j/SWtzE=; b=AqyHf994bubVqxsks175AamhqD uMhHov/yCyBxJ+yZvrMP1TnwEJJt0IhGYpHzReEOxy16holNSUqaX0TPuPt7zQ/fzjSPaEJM989w8 +L4QGYXX7KzdNX2DYuBpTHpCSG5rW9i1BJDZ3L+gC1/XJaH5lV+6hr3HNo9fVpR/Q3DDfMPiYaDog ywzaS0Z0J9DPAfTmCSX+/ZeNmiayYWj0StuVQ5xckjkBADjdAMLlqw+QKDv/L6aXxAA5r2SbThyMr f8MIogKBq4W+MBblqkA9dB+PsubV/WtnFiab0iciQpOGi/eg03u0GNlNMo4H1ma4vGbzc9s3q0crU 5ePNpkuQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wfOuu-00000005WnI-0sCX; Thu, 02 Jul 2026 21:25:52 +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 1wfOut-00000005Wmy-1eo2; Thu, 02 Jul 2026 21:25:51 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 3B129402E3; Thu, 2 Jul 2026 21:25:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 184D91F000E9; Thu, 2 Jul 2026 21:25:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1783027550; bh=o2YLLUSdPgZxZ+qMmhQjPi0zw0gGJ6LyLSY1j/SWtzE=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=ZYsp0k4VZBiQCsL/hB7G/7j4LkXv2lS9x5BtNp9e6p6cwONDrTNqZOqsUipd8UQZZ qHvZCN3jVZHqqeVonmyj9FxBbR3UHuyR8oEGZmjo/jMWviGYiiqo22OOEDeKnG2/rp F/MXuvtaKix6RugXWn4HszwCp9caPnUh6vQE2EmnFLdENPRQ+rjTq/zQVeVjfWEulh KVpQWz5lXU09zeOV/9Rk8A3fFv8EeuiafSd45yU4AlSA6OPIh4O13bInqF01ao1tuo NOFJ13Uvdg+73zWlkKCU/Sev/GC6LYUh08QI9f3WXW7Xt7TU89+6t62fXMR8QfYwHQ qx365FVVN1XAg== Received: from sofa.misterjones.org ([185.219.108.64] helo=lobster-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wfOup-00000000v60-33nF; Thu, 02 Jul 2026 21:25:47 +0000 Date: Thu, 02 Jul 2026 22:27:35 +0100 Message-ID: <87jyrd6q0o.wl-maz@kernel.org> From: Marc Zyngier To: Lorenzo Pieralisi 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 In-Reply-To: <20260701-gic-v5-acpi-iwb-probe-deferral-v3-1-c5562cf0fe29@kernel.org> 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> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/30.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: lpieralisi@kernel.org, rafael@kernel.org, lenb@kernel.org, sunilvl@ventanamicro.com, tglx@kernel.org, chenhuacai@kernel.org, anup@brainfault.org, guohanjun@huawei.com, sudeep.holla@kernel.org, catalin.marinas@arm.com, will@kernel.org, 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@intel.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false 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 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. That's my useless comment of the evening. M. -- Jazz isn't dead. It just smells funny.