After switching i2c-scmi driver to be a plaform one, it stopped being enumerated on number of Kontron platforms, because it's listed in the forbidden_id_list. To resolve the situation, add a flag and count the resources of the forbiden device. If the count is non-zero, the device must be skipped. Changelog v3: - provided completely rewritten solution (Rafael) - due to above, added two new patches - due to above, dropped tags from patch 3 Andy Shevchenko (4): ACPI: bus: Constify acpi_companion_match() returned value ACPI: bus: Introduce acpi_match_acpi_device() helper ACPI: platform: Ignore SMB0001 only when it has resources ACPI: platform: Move SMB0001 HID to the header and reuse drivers/acpi/acpi_platform.c | 31 +++++++++++++++++++++++++++---- drivers/acpi/bus.c | 21 ++++++++++++++------- drivers/acpi/device_sysfs.c | 2 +- drivers/acpi/internal.h | 2 +- drivers/i2c/busses/i2c-scmi.c | 3 --- include/acpi/acpi_drivers.h | 2 ++ include/linux/acpi.h | 9 +++++++++ 7 files changed, 54 insertions(+), 16 deletions(-) -- 2.40.0.1.gaa8946217a0b