Re: [PATCH v2] i2c: Allow ACPI_I2C_OPREGION if I2C is built as a module

From: Hans de Goede
Date: Wed Jan 24 2018 - 11:09:32 EST


Hi,

On 24-01-18 16:37, Sinan Kaya wrote:
On 1/24/2018 10:23 AM, Hans de Goede wrote:
There must be a middle ground somewhere.

One thing which comes to mind is to simply not allow building i2c as a module
when ACPI is selected, something like this should work I think:

Âconfig I2C
ÂÂÂÂÂÂÂÂ tristate "I2C support"
ÂÂÂÂÂÂÂÂ select RT_MUTEXES
ÂÂÂÂÂÂÂÂ select IRQ_DOMAIN
+ÂÂÂÂÂÂÂ # force building I2C in on ACPI systems, for opregion availability
+ÂÂÂÂÂÂÂ depends on y || !ACPI

This works for me.

OK, so feel free to turn it into a proper patch and submit it
upstream.

Regards,

Hans