public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/4] ACPI: scan: Handle generic system devices directly
@ 2025-12-15 13:31 Rafael J. Wysocki
  2025-12-15 13:34 ` [PATCH v1 1/4] ACPI: PNP: Drop PNP0C01 and PNP0C02 from acpi_pnp_device_ids[] Rafael J. Wysocki
                   ` (4 more replies)
  0 siblings, 5 replies; 15+ messages in thread
From: Rafael J. Wysocki @ 2025-12-15 13:31 UTC (permalink / raw)
  To: Linux ACPI
  Cc: LKML, Bjorn Helgaas, Zhang Rui, Chen Yu, Andy Shevchenko,
	Mika Westerberg, Linux PCI, Alex Hung, Hans de Goede,
	Ilpo Järvinen, platform-driver-x86, AceLan Kao

Hi All,

As per the changelog of patch [1/4], there is a long-standing problem with ACPI
device enumeration that if the given device has a compatible ID which is one of
the generic system resource device IDs (PNP0C01 and PNP0C02), it will be claimed
by the PNP scan handler and it will not be represented as a platform device, so
it cannot be handled by a platform driver.

Obviously, PNP0C01 and PNP0C02 need to be removed from acpi_pnp_device_ids[] to
address this problem, but it cannot be done without making any other changes
due to the way the legacy PNP system driver works (see the changelog of patch
[1/4] for details) and the approach used in patch [1/4] is to reserve the
"motherboard resources" directly in the ACPI core without creating platform
devices for "system" devices (whose _HID is either PNP0C01 or PNP0C02).  The
new code doing works along the lines of the PNP system driver to avoid
regressions.

The remaining patches in the series are simplifications that can be done on
top of the first one.

Patches [2-3/4] remove platform device creation code from Intel HID and VBTN
drivers that don't need to worry about _CID including PNP0C02 any more.

Patch [4/4] drops acpi_nonpnp_device_ids[] that was added as a workaround for
the issue at hand in the first place.

Thanks!




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

end of thread, other threads:[~2025-12-29 13:59 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-15 13:31 [PATCH v1 0/4] ACPI: scan: Handle generic system devices directly Rafael J. Wysocki
2025-12-15 13:34 ` [PATCH v1 1/4] ACPI: PNP: Drop PNP0C01 and PNP0C02 from acpi_pnp_device_ids[] Rafael J. Wysocki
2025-12-15 21:18   ` Mario Limonciello
2025-12-16 11:44     ` Rafael J. Wysocki
2025-12-28 19:11   ` Andy Shevchenko
2025-12-29 13:12     ` Rafael J. Wysocki
2025-12-29 13:58       ` Andy Shevchenko
2025-12-15 13:35 ` [PATCH v1 2/4] platform/x86/intel/hid: Stop creating a platform device Rafael J. Wysocki
2025-12-28 19:13   ` Andy Shevchenko
2025-12-29 13:07     ` Rafael J. Wysocki
2025-12-29 13:59       ` Andy Shevchenko
2025-12-15 13:35 ` [PATCH v1 3/4] platform/x86/intel/vbtn: " Rafael J. Wysocki
2025-12-28 19:14   ` Andy Shevchenko
2025-12-15 13:36 ` [PATCH v1 4/4] ACPI: PNP: Drop acpi_nonpnp_device_ids[] Rafael J. Wysocki
2025-12-16 14:03 ` [PATCH v1 0/4] ACPI: scan: Handle generic system devices directly Mario Limonciello

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