public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ACPI: video: Don't allow MFD devices to probe
@ 2026-03-06  2:51 Mario Limonciello (AMD)
  2026-03-06  3:05 ` Nirujogi, Pratap
  2026-03-06 10:50 ` Rafael J. Wysocki
  0 siblings, 2 replies; 8+ messages in thread
From: Mario Limonciello (AMD) @ 2026-03-06  2:51 UTC (permalink / raw)
  To: mario.limonciello, rafael, lenb, W_Armin
  Cc: Mario Limonciello (AMD), Pratap Nirujogi, rafael.j.wysocki,
	linux-acpi

After ACPI video was converted into a platform device in
commit 02c057ddefef5 ("ACPI: video: Convert the driver to a platform one")
other devices that are MFD children of LNXVIDEO are being probed.
This isn't intended.

During probe detect MFD cells and reject them.

Fixes: 02c057ddefef5 ("ACPI: video: Convert the driver to a platform one")
Reported-by: Pratap Nirujogi <pnirujog@amd.com>
Closes: https://lore.kernel.org/regressions/007e3390-6b2b-457e-83c7-c794c5952018@amd.com/
Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>
---
 drivers/acpi/acpi_video.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/acpi/acpi_video.c b/drivers/acpi/acpi_video.c
index 3fa28f1abca38..2cb526775ac47 100644
--- a/drivers/acpi/acpi_video.c
+++ b/drivers/acpi/acpi_video.c
@@ -14,6 +14,7 @@
 #include <linux/init.h>
 #include <linux/types.h>
 #include <linux/list.h>
+#include <linux/mfd/core.h>
 #include <linux/mutex.h>
 #include <linux/input.h>
 #include <linux/backlight.h>
@@ -1988,6 +1989,9 @@ static int acpi_video_bus_probe(struct platform_device *pdev)
 	int error;
 	acpi_status status;
 
+	if (mfd_get_cell(pdev))
+		return -ENODEV;
+
 	status = acpi_walk_namespace(ACPI_TYPE_DEVICE,
 				acpi_dev_parent(device)->handle, 1,
 				acpi_video_bus_match, NULL,
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-03-09  4:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-06  2:51 [PATCH] ACPI: video: Don't allow MFD devices to probe Mario Limonciello (AMD)
2026-03-06  3:05 ` Nirujogi, Pratap
2026-03-06 10:50 ` Rafael J. Wysocki
2026-03-06 12:17   ` Rafael J. Wysocki
2026-03-06 12:37     ` Rafael J. Wysocki
2026-03-09  4:24       ` Nirujogi, Pratap
2026-03-06 12:42     ` Mario Limonciello
2026-03-06 12:46       ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox