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 0F449C43458 for ; Thu, 2 Jul 2026 21:26:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Subject:To:From:Message-ID:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=sTLQt4YjEJBc83XL1VJTOWz8JT+jjQ/lQn78RyuYYMY=; b=IqecC+Kmn7VIDk /a/Ovr4VHbk7G8beLVYZQqO+h8QBArAl5yYFTnzrdGitAq+OA5t37v/zu54DHsg6iP/7X7dJ/EaNT /bKZvE50s1ofw3ilrmSJ+gYAO5IYAc3n51gtV3NQZL27gdF2eD2tKu2/JF6KYFfHSXbZ8lFsDlOfE shYGle8WbezqjwmqWTap/SoYb/hvw7OnjwyjKy9oNupVKPOhSbsKvqly2cG8+BLa3vqmcsYR1YGXM keC2JHd+Aqj3tatHegK7QoJVEAIQIl0Oilzq0DpgeZ2CgnJOQMmxqpxQZNepcs85udSmjnbm+xxxi 73RKvOnWj3CQYUSgJYAg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wfOuu-00000005WnM-1FbN; 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 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") 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-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Rafael J. Wysocki" , Catalin Marinas , "Rafael J. Wysocki" , Anup Patel , Huacai Chen , linux-kernel@vger.kernel.org, Sudeep Holla , linux-acpi@vger.kernel.org, Thomas Gleixner , loongarch@lists.linux.dev, Hanjun Guo , linux-riscv@lists.infradead.org, Will Deacon , linux-arm-kernel@lists.infradead.org, Len Brown Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=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. _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv