ACPI: platform: Ignore SMB0001 only when it has resources
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 3 Jul 2023 12:14:08 +0000 (15:14 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 4 Jul 2023 17:28:20 +0000 (19:28 +0200)
commitcefbd80bf52c791fede129ab5cf8be6ed9e8ce38
treee8a9f9335f6e8d6b4e5b02aade1d622937d789f2
parent2b5ae9604949391da6661eab0a854de4ecd140f6
ACPI: platform: Ignore SMB0001 only when it has resources

After switching i2c-scmi driver to be a platform 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 to driver data to allow devices
with no resources in _CRS to be enumerated via platform bus.

Fixes: 03d4287add6e ("i2c: scmi: Convert to be a platform driver")
Closes: https://lore.kernel.org/r/60c1756765b9a3f1eab0dcbd84f59f00fe1caf48.camel@kontron.com
Link: https://lore.kernel.org/r/20230621151652.79579-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
[ rjw: Move has_resource definition to the block in which it is used and
  initialize it to 'false' ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_platform.c