i2c: fix ACPI_I2C_OPREGION dependency
Subsystems (3)
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
@@ -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
+linux-acpi
Quoted 14 lines · Eric Auger
If
CONFIG_I2C=mwe fail gettingACPI_I2C_OPREGIONset. Let's makeACPI_I2C_OPREGIONdepend on I2C.Signed-off-by Eric Auger <[email protected]>--- drivers/i2c/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/i2c/Kconfig +0
-0
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.
Quoted 17 lines · Sinan Kaya
+linux-acpi
Quoted 14 lines · Eric Auger
If
CONFIG_I2C=mwe fail gettingACPI_I2C_OPREGIONset. Let's makeACPI_I2C_OPREGIONdepend on I2C.Signed-off-by Eric Auger <[email protected]>--- drivers/i2c/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/i2c/Kconfig +0
-0@@ -26,7 +26,7 @@ config I2C
Quoted 10 lines
drivers/i2c/Kconfig config I2C · line 32
Quoted 8 lines
drivers/i2c/Kconfig +1
-1config 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
Quoted 11 lines · Randy Dunlap
Quoted 9 lines
drivers/i2c/Kconfig config I2C · line 32
Quoted 8 lines
config
ACPI_I2C_OPREGIONdrivers/i2c/Kconfig +1
-1bool "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.
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_OPREGIONdrivers/i2c/Kconfig +1
-1bool "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_OPREGIONdoesn't get selected. Therefore, any ACPI opregion calls targeting I2C fail with no opregion found.The goal is to select
ACPI_I2C_OPREGIONindependent 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.
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_OPREGIONdrivers/i2c/Kconfig +1
-1bool "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_OPREGIONdoesn't get selected. Therefore, any ACPI opregion calls targeting I2C fail with no opregion found.The goal is to select
ACPI_I2C_OPREGIONindependent 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