Skip to contentSkip to conversation

i2c: fix ACPI_I2C_OPREGION dependency

PATCH In review Eric Auger 3 participants 6 messages Nov 22, 2017 – Jan 3, 2018

Subsystems (3)
lore
Share & tools
lore

Eric Auger

author
#0 lore raw

PATCH 1/1 i2c: fix ACPI_I2C_OPREGION dependency

If CONFIG_I2C=m we fail getting ACPI_I2C_OPREGION set. Let's make ACPI_I2C_OPREGION depend on I2C.

---
 drivers/i2c/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/Kconfig +1 -1
index efc3354..5951e9d 100644
@@ -26,7 +26,7 @@ config I2C
 
 config ACPI_I2C_OPREGION
 	bool "ACPI I2C Operation region support"
-	depends on I2C=y && ACPI
+	depends on I2C && ACPI
 	default y
 	help
 	  Say Y here if you want to enable ACPI I2C operation region support.
Signature · 1 line
2.5.5
#1 lore raw

+linux-acpi

Quoted 14 lines · Eric Auger

If CONFIG_I2C=m we fail getting ACPI_I2C_OPREGION set. Let's make ACPI_I2C_OPREGION depend on I2C.

---
 drivers/i2c/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/Kconfig +0 -0
index efc3354..5951e9d 100644

drivers/i2c/Kconfig config I2C · line 32

Quoted 8 lines
drivers/i2c/Kconfig +1 -1
@@ -26,7 +26,7 @@ config I2C
 
 config ACPI_I2C_OPREGION
 	bool "ACPI I2C Operation region support"
-	depends on I2C=y && ACPI
+	depends on I2C && ACPI
 	default y
 	help
 	  Say Y here if you want to enable ACPI I2C operation region support.

Anybody picking this up?

Signature · 3 lines
Sinan Kaya
Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc.
Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.
#2 lore raw
Quoted 17 lines · Sinan Kaya

+linux-acpi

Quoted 14 lines · Eric Auger

If CONFIG_I2C=m we fail getting ACPI_I2C_OPREGION set. Let's make ACPI_I2C_OPREGION depend on I2C.

---
 drivers/i2c/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/Kconfig +0 -0
index efc3354..5951e9d 100644
@@ -26,7 +26,7 @@ config I2C
 
Quoted 10 lines

drivers/i2c/Kconfig config I2C · line 32

Quoted 8 lines
drivers/i2c/Kconfig +1 -1
 config ACPI_I2C_OPREGION
 	bool "ACPI I2C Operation region support"
-	depends on I2C=y && ACPI
+	depends on I2C && ACPI
 	default y
 	help
 	  Say Y here if you want to enable ACPI I2C operation region support.

Anybody picking this up?

Well. It looks to me like the patch is reversed or the patch description needs some improvement. Or I just don't understand it.

Signature · 1 line
~Randy
#3 lore raw
Quoted 11 lines · Randy Dunlap
Quoted 9 lines

drivers/i2c/Kconfig config I2C · line 32

Quoted 8 lines

config ACPI_I2C_OPREGION

drivers/i2c/Kconfig +1 -1
 	bool "ACPI I2C Operation region support"
-	depends on I2C=y && ACPI
+	depends on I2C && ACPI
 	default y
 	help
 	  Say Y here if you want to enable ACPI I2C operation region support.

Anybody picking this up?

Well. It looks to me like the patch is reversed or the patch description needs some improvement. Or I just don't understand it.

I'll let Eric improve the description.

Issue is that if you compile I2C as a module, ACPI_I2C_OPREGION doesn't get selected. Therefore, any ACPI opregion calls targeting I2C fail with no opregion found.

The goal is to select ACPI_I2C_OPREGION independent of the I2C module type selection.

Signature · 3 lines
Sinan Kaya
Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc.
Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.
#4 lore raw
Quoted 13 lines · Sinan Kaya
Quoted 11 lines · Randy Dunlap
Quoted 9 lines

drivers/i2c/Kconfig config I2C · line 32

Quoted 8 lines

config ACPI_I2C_OPREGION

drivers/i2c/Kconfig +1 -1
 	bool "ACPI I2C Operation region support"
-	depends on I2C=y && ACPI
+	depends on I2C && ACPI
 	default y
 	help
 	  Say Y here if you want to enable ACPI I2C operation region support.

Anybody picking this up?

Well. It looks to me like the patch is reversed or the patch description needs some improvement. Or I just don't understand it.

Quoted 7 lines

I'll let Eric improve the description.

Issue is that if you compile I2C as a module, ACPI_I2C_OPREGION doesn't get selected. Therefore, any ACPI opregion calls targeting I2C fail with no opregion found.

The goal is to select ACPI_I2C_OPREGION independent of the I2C module type selection.

I hope I was able to explain it. =y above is the problem. This config option will only be selected if module is built-in not for m case.

Signature · 3 lines
Sinan Kaya
Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc.
Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.
author
#5 lore raw

Hi Sinan,

Quoted 16 lines · Sinan Kaya
Quoted 15 lines · Sinan Kaya
Quoted 11 lines · Randy Dunlap
Quoted 9 lines

drivers/i2c/Kconfig config I2C · line 32

Quoted 8 lines

config ACPI_I2C_OPREGION

drivers/i2c/Kconfig +1 -1
 	bool "ACPI I2C Operation region support"
-	depends on I2C=y && ACPI
+	depends on I2C && ACPI
 	default y
 	help
 	  Say Y here if you want to enable ACPI I2C operation region support.

Anybody picking this up?

Well. It looks to me like the patch is reversed or the patch description needs some improvement. Or I just don't understand it.

I'll let Eric improve the description.

Quoted 8 lines
Quoted 5 lines

Issue is that if you compile I2C as a module, ACPI_I2C_OPREGION doesn't get selected. Therefore, any ACPI opregion calls targeting I2C fail with no opregion found.

The goal is to select ACPI_I2C_OPREGION independent of the I2C module type selection.

I hope I was able to explain it. =y above is the problem. This config option will only be selected if module is built-in not for m case.

Thank you for your input. I just sent a v2 with reworded commit message. Hope this makes more sense.

Thanks

Eric

Quoted 1 line