summaryrefslogtreecommitdiff
path: root/src/drivers/i2c/generic
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/i2c/generic')
-rw-r--r--src/drivers/i2c/generic/generic.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/drivers/i2c/generic/generic.c b/src/drivers/i2c/generic/generic.c
index 981c2d9532..15fe7adebb 100644
--- a/src/drivers/i2c/generic/generic.c
+++ b/src/drivers/i2c/generic/generic.c
@@ -77,6 +77,16 @@ void i2c_generic_fill_ssdt(const struct device *dev,
}
}
+ if (config->has_power_resource && !config->disable_gpio_export_in_crs) {
+ /*
+ * This case will most likely cause timing problems. The OS driver might be
+ * controlling the GPIOs, but the ACPI Power Resource will also be controlling
+ * them. This will result in the two fighting and stomping on each other.
+ */
+ printk(BIOS_ERR, "%s: Exposing GPIOs in Power Resource and _CRS\n",
+ dev_path(dev));
+ }
+
/* Device */
acpigen_write_scope(scope);
acpigen_write_device(acpi_device_name(dev));