diff mbox

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

Message ID 1421998959-6595-1-git-send-email-jarkko.nikula@linux.intel.com (mailing list archive)
State Accepted, archived
Delegated to: Rafael Wysocki
Headers show

Commit Message

Jarkko Nikula Jan. 23, 2015, 7:42 a.m. UTC
Intel Lynxpoint I2C does not have clock parameter register like SPI and UART
do have. Therefore remove LPSS_CLK_GATE flag from the Lynxpoint I2C device
description in order to not needlessly toggle clock enable bit in
non-existing register.

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
---
For linux-next branch. This has been here since commit f58b082aed43
("ACPI / scan: Add special handler for Intel Lynxpoint LPSS devices")
without known problems.

Mika: I assumed this holds true for INT3432 and INT3433 too?
---
 drivers/acpi/acpi_lpss.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Mika Westerberg Jan. 23, 2015, 10:52 a.m. UTC | #1
On Fri, Jan 23, 2015 at 09:42:39AM +0200, Jarkko Nikula wrote:
> Intel Lynxpoint I2C does not have clock parameter register like SPI and UART
> do have. Therefore remove LPSS_CLK_GATE flag from the Lynxpoint I2C device
> description in order to not needlessly toggle clock enable bit in
> non-existing register.
> 
> Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
> ---
> For linux-next branch. This has been here since commit f58b082aed43
> ("ACPI / scan: Add special handler for Intel Lynxpoint LPSS devices")
> without known problems.
> 
> Mika: I assumed this holds true for INT3432 and INT3433 too?

Yes.

IIRC there used to be versions of Lynxpoint where the clock was actually
gated even if the document said the register is reserved. That's why the
I2C still tries to ungate the clock.

As long as you tested this properly,

Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Rafael J. Wysocki Jan. 30, 2015, 12:08 a.m. UTC | #2
On Friday, January 23, 2015 12:52:39 PM Mika Westerberg wrote:
> On Fri, Jan 23, 2015 at 09:42:39AM +0200, Jarkko Nikula wrote:
> > Intel Lynxpoint I2C does not have clock parameter register like SPI and UART
> > do have. Therefore remove LPSS_CLK_GATE flag from the Lynxpoint I2C device
> > description in order to not needlessly toggle clock enable bit in
> > non-existing register.
> > 
> > Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
> > ---
> > For linux-next branch. This has been here since commit f58b082aed43
> > ("ACPI / scan: Add special handler for Intel Lynxpoint LPSS devices")
> > without known problems.
> > 
> > Mika: I assumed this holds true for INT3432 and INT3433 too?
> 
> Yes.
> 
> IIRC there used to be versions of Lynxpoint where the clock was actually
> gated even if the document said the register is reserved. That's why the
> I2C still tries to ungate the clock.
> 
> As long as you tested this properly,
> 
> Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>

Queued up for 3.20 then, thanks!
diff mbox

Patch

diff --git a/drivers/acpi/acpi_lpss.c b/drivers/acpi/acpi_lpss.c
index 4f3febf8a589..9d43f79627a9 100644
--- a/drivers/acpi/acpi_lpss.c
+++ b/drivers/acpi/acpi_lpss.c
@@ -129,7 +129,7 @@  static struct lpss_device_desc lpt_dev_desc = {
 };
 
 static struct lpss_device_desc lpt_i2c_dev_desc = {
-	.flags = LPSS_CLK | LPSS_CLK_GATE | LPSS_LTR,
+	.flags = LPSS_CLK | LPSS_LTR,
 	.prv_offset = 0x800,
 };