public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3] ACPI: Force I2C to be selected as a built-in module
@ 2018-01-25 15:43 Sinan Kaya
  2018-01-25 16:25 ` Rafael J. Wysocki
  0 siblings, 1 reply; 11+ messages in thread
From: Sinan Kaya @ 2018-01-25 15:43 UTC (permalink / raw)
  To: linux-acpi, timur
  Cc: eric.auger, hdegoede, mika.westerberg, wsa, linux-i2c, rjw,
	Sinan Kaya, Len Brown, open list

From: Auger Eric <eric.auger@redhat.com>

If I2C is built as a module, ACPI_I2C_OPREGION cannot be set
and any ACPI opregion calls targeting I2C fail with no opregion found.

Commit da3c6647ee08 ("I2C/ACPI: Clean up I2C ACPI code and Add
CONFIG_I2C_ACPI config") says following:

"Current there is a race between removing I2C ACPI operation region
and ACPI AML code accessing."

This patch forces core I2C support to be compiled as a built-in
module if ACPI is selected as code is not ready for dynamic module
removal.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Sinan Kaya <okaya@codeaurora.org>
---
 drivers/acpi/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig
index 4650539..5b48098 100644
--- a/drivers/acpi/Kconfig
+++ b/drivers/acpi/Kconfig
@@ -9,6 +9,8 @@ menuconfig ACPI
 	depends on IA64 || X86 || ARM64
 	depends on PCI
 	select PNP
+	# force building I2C in on ACPI systems, for opregion availability
+	imply I2C
 	default y if (IA64 || X86)
 	help
 	  Advanced Configuration and Power Interface (ACPI) support for 
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2018-02-08  9:54 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-25 15:43 [PATCH v3] ACPI: Force I2C to be selected as a built-in module Sinan Kaya
2018-01-25 16:25 ` Rafael J. Wysocki
2018-01-25 16:32   ` Sinan Kaya
2018-01-25 16:47     ` Rafael J. Wysocki
2018-01-25 16:53       ` Sinan Kaya
2018-01-25 16:57         ` Rafael J. Wysocki
2018-01-25 17:07           ` Sinan Kaya
2018-01-25 17:11             ` Hans de Goede
2018-01-25 17:36   ` Randy Dunlap
2018-02-06 14:25     ` Sinan Kaya
2018-02-08  9:52       ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox