From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933987AbeAXOqN (ORCPT ); Wed, 24 Jan 2018 09:46:13 -0500 Received: from mail-qt0-f182.google.com ([209.85.216.182]:36134 "EHLO mail-qt0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933688AbeAXOqL (ORCPT ); Wed, 24 Jan 2018 09:46:11 -0500 X-Google-Smtp-Source: AH8x224I89wxGV7mw2F3Ig3jeO1TdcyGj2kogbtYgEuHvDhKcM8X5Pw9yzuovAOpWWgC053XBGRoGdf81qTquQ8g/s8= MIME-Version: 1.0 In-Reply-To: <20180124062725.GK27654@lahna.fi.intel.com> References: <1514988151-12248-1-git-send-email-eric.auger@redhat.com> <20180124055615.c3qwhwnj7spmcr3w@ninjato> <20180124062725.GK27654@lahna.fi.intel.com> From: Andy Shevchenko Date: Wed, 24 Jan 2018 16:46:10 +0200 Message-ID: Subject: Re: [PATCH v2] i2c: Allow ACPI_I2C_OPREGION if I2C is built as a module To: Mika Westerberg , Hans de Goede Cc: Wolfram Sang , Eric Auger , eric.auger.pro@gmail.com, linux-i2c , Linux Kernel Mailing List , Sinan Kaya Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 24, 2018 at 8:27 AM, Mika Westerberg wrote: > On Wed, Jan 24, 2018 at 06:56:16AM +0100, Wolfram Sang wrote: >> On Wed, Jan 03, 2018 at 03:02:31PM +0100, Eric Auger wrote: >> > 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. >> > >> > This patch allows ACPI_I2C_OPREGION to be enabled both if I2C is >> > built into the kernel or built as a module. >> > >> > Signed-off-by: Eric Auger >> >> I recall that we had some discussion until ending up with the current >> solution. And I finally found it again: >> >> http://www.serverphorums.com/read.php?12,1001402 >> >> In any case, I surely want Mika's ack on any change to ACPI related >> Kconfig symbols. Adding him to CC... > > So the problem is/was that what happens if you are in a middle of BIOS > AML code touching the opregion and someone unloads the opregion handler? > If you can quarantee nothing bad happens, then I'm fine with the patch :) I don't think anyone can guarantee this. I would be fine with patch if and only if it has been tested on problematic hardware, such as Intel CherryTrail based tablets / laptops. -- With Best Regards, Andy Shevchenko