From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796387495; b=s10l9vhHxeuDu4MyN2maWwVtxCd1qeWy/JhRAfvS1dgf05Ya+ftsPj3r7b33QmWeS8wK ZaZB88XYjTGClOmgxZPlIdor9gdsfJAdCARRTT+fzErGq7r1DSiEKKLrwj5OGd/+UEpEP dT9FO0sJEGpldqGk5c1UEYwhWDT7pkrszaaCJvj7CoVlovjCVOA7uLZye8pSQxr6vNH2O UNrVeA6GbEU7hUbHBJ2slBygd012dLilT8y7vmGYXYI8K7aqg7ziuSQZaBLLqCigpjNa/ 4d8DbU//gJ8pOLTVefBD1r4PRMJe87J42DuBQBkdV95ZiGcYOKoLGq0cAVikaCLoGtg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796387495; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=ivJTflo9TTQf69WDw+Ko+MUdXRCCsb//VbA/WS+FBr4=; b=4sl1eMVO+9T5Eo/Q7LSgsPyUy5qGeOrlSuDhVAwWpHTz/Sq0bJi1CCPWvumwjuY2f91z 6Dqd6HTU8cInE2TXqzYL/pIpPRsoCNXeToRogjhiPkFgX2oxmtKWGJCew6cTHrkDAwFXf nNlNnr5L6GcgAobT9LZ+dAm9yqv+gQyv9VozBck2eDL3IO1NrOZG2IwG0RUwCKl0xsOF+ QMC0auPZ1o3Df1/OJiZGY1psRzAT5/9KFL2GoNalJPvh094AvNYtK1T5JPWQvnJsPzeTd zW+ATWmGp6j9Im/zfFUrZ/ErmdRl2MK9nfJTLieLQ4D04obrUaR47SN/+TbiTcUStUg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=PwyJqj16; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 28357606A32D; Fri, 4 Dec 2026 12:31:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=PwyJqj16 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 97AE01F000C2; Fri, 4 Dec 2026 12:31:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796387495; bh=ivJTflo9TTQf69WDw+Ko+MUdXRCCsb//VbA/WS+FBr4=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=PwyJqj16qzG0NO749oyUyyBEyK0cSSNZ5qMlQR5NS9rVtkPL+006kB5iOqbxsZ+2p zK75YJcdLgp4OOfTmbMUy/EzjOo/lXnPc/Ud7Tz9q/WtUHsPV+AydBEBUh5QjJKwby uWHakQI7q+z7J7+eAiEEjYKJ7MLDmfR7dv4FBVYo= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, "Rafael J. Wysocki" , Andy Shevchenko , Sasha Levin Subject: [PATCH 6.1 0267/1059] ACPI: glue: Reduce debug noise from acpi_device_notify() Date: Fri, 4 Dec 2026 18:56:38 +0900 Message-ID: <20261204100651.190918521@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100643.980430235@linuxfoundation.org> References: <20261204100643.980430235@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Rafael J. Wysocki [ Upstream commit 5bc1e72f80da4c20ce8b57851be4fad67e855ebd ] When debug is enabled in the ACPI glue code that handles binding devices to ACPI companions, acpi_device_notify() produces a lot of message noise related to devices that have no ACPI companions. Reduce that noise by checking the most obvious case, ACPI device objects, directly and returning from acpi_device_notify() in that case without printing any debug messages. Also avoid printing a debug message when there is no matching ACPI bus type definition for the given device, which is the case for the vast majority of devices. Additionally, make the debug messages that get printed more informative. Signed-off-by: Rafael J. Wysocki Reviewed-by: Andy Shevchenko Link: https://patch.msgid.link/6325978.lOV4Wx5bFT@rafael.j.wysocki Signed-off-by: Rafael J. Wysocki Stable-dep-of: c94619c8a5b5 ("ACPI: glue: Carry out companion lookup under bus_type_sem") Signed-off-by: Sasha Levin --- drivers/acpi/glue.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/acpi/glue.c b/drivers/acpi/glue.c index cc9ee8cb820fc..54cc709be3166 100644 --- a/drivers/acpi/glue.c +++ b/drivers/acpi/glue.c @@ -356,22 +356,27 @@ void acpi_device_notify(struct device *dev) struct acpi_device *adev; int ret; + /* ACPI devices have no ACPI companions. */ + if (dev->bus == &acpi_bus_type) + return; + ret = acpi_bind_one(dev, NULL); if (ret) { struct acpi_bus_type *type = acpi_get_bus_type(dev); if (!type) - goto err; + return; adev = type->find_companion(dev); if (!adev) { dev_dbg(dev, "ACPI companion not found\n"); - goto err; + return; } ret = acpi_bind_one(dev, adev); - if (ret) - goto err; - + if (ret) { + dev_dbg(dev, "Binding to ACPI companion failed\n"); + return; + } if (type->setup) { type->setup(dev); goto done; @@ -393,11 +398,6 @@ void acpi_device_notify(struct device *dev) done: acpi_handle_debug(ACPI_HANDLE(dev), "Bound to device %s\n", dev_name(dev)); - - return; - -err: - dev_dbg(dev, "No ACPI support\n"); } void acpi_device_notify_remove(struct device *dev) -- 2.53.0