Skip to contentSkip to conversation

Revert "ACPI / LPSS: Remove non-existing clock control from Intel Lynxpoint I2C"

PATCH Applied Jarkko Nikula 3 participants 3 messages Feb 16, 2015 – Feb 18, 2015 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Revert "ACPI / LPSS: Remove non-existing clock control from Intel Lynxpoint I2C"

Revert commit b893e80e3147 ("ACPI / LPSS: Remove non-existing clock control from Intel Lynxpoint I2C") because it causes touchpad to not load on Dell XPS13.

Regression is a clear indication that not only some early prototype version of Lynxpoint I2C but also newer versions can be doing clock gating even documentation does not state it.

Therefore it is best to revert since this clock gating haven't caused known issues on those Lynxpoint version which don't do clock gating.

---
For v3.20.

---
 drivers/acpi/acpi_lpss.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/acpi_lpss.c +1 -1
index 02e835f3cf8a..fa0e3d61e5e7 100644
@@ -125,7 +125,7 @@ static struct lpss_device_desc lpt_dev_desc = {
 };
 
 static struct lpss_device_desc lpt_i2c_dev_desc = {
-	.flags = LPSS_CLK | LPSS_LTR,
+	.flags = LPSS_CLK | LPSS_CLK_GATE | LPSS_LTR,
 	.prv_offset = 0x800,
 };
 
Signature · 1 line
2.1.4
Tested-by on v1 1/1
#1 lore raw
Quoted 24 lines · Jarkko Nikula

Revert commit b893e80e3147 ("ACPI / LPSS: Remove non-existing clock control from Intel Lynxpoint I2C") because it causes touchpad to not load on Dell XPS13.

Regression is a clear indication that not only some early prototype version of Lynxpoint I2C but also newer versions can be doing clock gating even documentation does not state it.

Therefore it is best to revert since this clock gating haven't caused known issues on those Lynxpoint version which don't do clock gating.

---
For v3.20.

---
 drivers/acpi/acpi_lpss.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/acpi_lpss.c +0 -0
index 02e835f3cf8a..fa0e3d61e5e7 100644

drivers/acpi/acpi_lpss.c static struct lpss_device_desc lpt_dev_desc = { · line 130

Quoted 7 lines
drivers/acpi/acpi_lpss.c +1 -1
@@ -125,7 +125,7 @@ static struct lpss_device_desc lpt_dev_desc = {
 };
 
 static struct lpss_device_desc lpt_i2c_dev_desc = {
-       .flags = LPSS_CLK | LPSS_LTR,
+       .flags = LPSS_CLK | LPSS_CLK_GATE | LPSS_LTR,
        .prv_offset = 0x800,
 };
#2 lore raw
In reply to Jarkko Nikula
Quoted 8 lines · Jarkko Nikula

Revert commit b893e80e3147 ("ACPI / LPSS: Remove non-existing clock control from Intel Lynxpoint I2C") because it causes touchpad to not load on Dell XPS13.

Regression is a clear indication that not only some early prototype version of Lynxpoint I2C but also newer versions can be doing clock gating even documentation does not state it.

Quoted 5 lines

Therefore it is best to revert since this clock gating haven't caused known issues on those Lynxpoint version which don't do clock gating.

Applied, thanks!

Quoted 20 lines

---
For v3.20.

---
 drivers/acpi/acpi_lpss.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/acpi_lpss.c +1 -1
index 02e835f3cf8a..fa0e3d61e5e7 100644
@@ -125,7 +125,7 @@ static struct lpss_device_desc lpt_dev_desc = {
 };
 
 static struct lpss_device_desc lpt_i2c_dev_desc = {
-	.flags = LPSS_CLK | LPSS_LTR,
+	.flags = LPSS_CLK | LPSS_CLK_GATE | LPSS_LTR,
 	.prv_offset = 0x800,
 };
 
Signature · 2 lines
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.