From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934314AbeAXQ4H (ORCPT ); Wed, 24 Jan 2018 11:56:07 -0500 Received: from mx1.redhat.com ([209.132.183.28]:36082 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933988AbeAXQ4F (ORCPT ); Wed, 24 Jan 2018 11:56:05 -0500 Subject: Re: [PATCH v2] i2c: Allow ACPI_I2C_OPREGION if I2C is built as a module To: Sinan Kaya , Hans de Goede , Andy Shevchenko References: <1514988151-12248-1-git-send-email-eric.auger@redhat.com> <20180124055615.c3qwhwnj7spmcr3w@ninjato> <20180124062725.GK27654@lahna.fi.intel.com> <54ef10bd-6209-6983-1d3a-ddf7d7fea252@redhat.com> <26d6761c-17c9-73d8-42d6-25815b58bc87@redhat.com> <17f80dc5-126e-bf1e-8bcc-95a1e66cd271@codeaurora.org> <657b80d6-a880-e504-7f85-6a2dc47e0f8a@codeaurora.org> Cc: Mika Westerberg , Wolfram Sang , eric.auger.pro@gmail.com, linux-i2c , Linux Kernel Mailing List , "linux-acpi@vger.kernel.org" From: Auger Eric Message-ID: <53bf1b73-fee6-8615-ab26-f036da8b3b86@redhat.com> Date: Wed, 24 Jan 2018 17:56:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <657b80d6-a880-e504-7f85-6a2dc47e0f8a@codeaurora.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 24/01/18 17:10, Sinan Kaya wrote: > On 1/24/2018 11:09 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. Yes given all the concerns this patch raised, better make sure I2C is built-in along with ACPI. Sorry for the noise. Thanks Eric >> >> OK, so feel free to turn it into a proper patch and submit it >> upstream. > > OK. Let me do some build tests. >