Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1191414pxb; Fri, 21 Jan 2022 11:54:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJxUnBqWZTNe3PwYAkJLGi7JO3TIjNt4UZZzpbulT8mY/pLk1evNSuFOoKyxCBYNBiU73nm9 X-Received: by 2002:a63:285:: with SMTP id 127mr4009061pgc.492.1642794871366; Fri, 21 Jan 2022 11:54:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642794871; cv=none; d=google.com; s=arc-20160816; b=rngzg/CDFYSpoD0ekQoEzwgQGbm8U7vlvMkCi7CguRN4BTJEaXLXqR8G1wosLlacyE c+UY8jgjwJUvWxc8DFOoabXTDfOQpBXJBBiqP3SztqRt1M1yaZe4LwdAa16DZ9+xOdBp ccUIh3a6FydzGWHE+3dBWcK8pzSochTZtgP2G15xlyuOfNjP1Ej57YtHAzH2LRqizi93 jeQWnsOpgpWGlw6sdpfnZtn85H7Wc9yzYvmaz5KxI39tzwMYHhP3jmrWJjbezexRsszj 9Cgx2dB5lgXIB92qMmgJus8Ho1OhTUw6zM/IAkAsB1GdFvBnTgF453zlhhTcBXqryb5H 4ePw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=w6ErTGvgHe67gNzRtGnvhidwqqNvSKerDvzsL2m5wv8=; b=01G9ITsZsU2uZEZkQPeEWXI+0eBH9VCzC9X076KcryrtQaJ7HNqgKznPGv4qR38HQs iWMYHQQVYCdJqlot76CNK43d2oBJH9WdxLTxKGiSk9SY+COW6e1syfADgcz4pMmawqhi AItS1piMRBvBx5wOul5r48xJELOqgdGZnzemMgcTKKPOjOVF67UI0vIGaKAaKCNtiVgc Som4szToKNMEtw1I87Of/7RakN55luZYOo05njR6RzNmtg9MI1ySa5fI8kLIGig5h18T WfyI4iqEPubCRM6l7VuMNYitr2nFOhGrzqESqoBOBD2RoiB8K/43z/n/ZVqPYcxKyudx DDNQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w25si6847670pgk.153.2022.01.21.11.54.19; Fri, 21 Jan 2022 11:54:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356512AbiASRoq (ORCPT + 99 others); Wed, 19 Jan 2022 12:44:46 -0500 Received: from mail-qv1-f53.google.com ([209.85.219.53]:46044 "EHLO mail-qv1-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356519AbiASRo0 (ORCPT ); Wed, 19 Jan 2022 12:44:26 -0500 Received: by mail-qv1-f53.google.com with SMTP id 15so3897845qvp.12; Wed, 19 Jan 2022 09:44:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=w6ErTGvgHe67gNzRtGnvhidwqqNvSKerDvzsL2m5wv8=; b=gJx1oCoMxbYAQBjyW8yEmVIAspH5Xe/W7LBPb0b5gX7598TQa+ZBY+/57CEzvQ/pWW GDtSAgDZBpduRIXgN+CdyVd5izoIx+qfTtp/QjK4J9HbsrR5zPXPzZfwZaCWVS6LFGiC PCxNRiXsjua/asPq8z4LGLSZuBsFMR8SnUQ08z/VkbB+voAA7x1LSKDshWL2tpD4w1Id WtqduDWw5aJ/KjQDVqcun7/9Z8oGi3URVDxBchuW3YGoJWymKzecWzp9g6or72r3yPsj fAu4TxRGi4WgTHGcfYDDS+KVBkrZbMWd32x9EQMi0Cu6qywVwwd/6q8Eg/srDni4SVEW Ra9A== X-Gm-Message-State: AOAM531A7pT32R5O+11jEgwLasMgntwD9Q/5lwMPHwKdJt18I+dtS8/u aBqZiWQdH4pzTvjXK4Gwcb1ce9MYx/L3/okYCr0= X-Received: by 2002:a05:6214:2469:: with SMTP id im9mr16635370qvb.52.1642614265659; Wed, 19 Jan 2022 09:44:25 -0800 (PST) MIME-Version: 1.0 References: <20220118145251.1548-1-sbinding@opensource.cirrus.com> <20220118145251.1548-6-sbinding@opensource.cirrus.com> In-Reply-To: From: "Rafael J. Wysocki" Date: Wed, 19 Jan 2022 18:44:14 +0100 Message-ID: Subject: Re: [PATCH v3 05/10] platform/x86: i2c-multi-instantiate: Move it to drivers/acpi folder To: Lucas tanure Cc: "Rafael J. Wysocki" , Stefan Binding , Mark Brown , Len Brown , Hans de Goede , Mark Gross , Jaroslav Kysela , Takashi Iwai , "moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." , Linux Kernel Mailing List , linux-spi , ACPI Devel Maling List , Platform Driver , patches@opensource.cirrus.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 19, 2022 at 6:33 PM Lucas tanure wrote: > > On 1/19/22 16:53, Rafael J. Wysocki wrote: > > On Tue, Jan 18, 2022 at 3:53 PM Stefan Binding > > wrote: > >> > >> From: Lucas Tanure > >> > >> Moving I2C multi instantiate driver to drivers/acpi folder for > >> upcoming conversion into a generic bus multi instantiate > >> driver for SPI and I2C > >> > >> Signed-off-by: Lucas Tanure > >> Signed-off-by: Stefan Binding > > > > Why are you moving it away from platform/x86? > > > > Adding SPI to the mix doesn't seem to be a sufficient reason. > > > > If this were going to be needed on non-x86, that would be a good > > reason for moving it, but is that actually the case? If so, why isn't > > that mentioned in the changelog above? > > > > It was a request made by Andy Shevchenko: > https://lkml.org/lkml/2021/12/3/347 But he hasn't given any reasons why that'd be better. > There is no plan to use our CS35L41 HDA with non-x86 platforms and we > can't comment about i2c-multi-instantiate use. > For us it can stay in x86 folder until an actual request. I'd prefer that if Hans agrees. > >> --- > >> MAINTAINERS | 2 +- > >> drivers/acpi/Kconfig | 11 +++++++++++ > >> drivers/acpi/Makefile | 1 + > >> .../{platform/x86 => acpi}/i2c-multi-instantiate.c | 0 > >> drivers/acpi/scan.c | 2 +- > >> drivers/platform/x86/Kconfig | 11 ----------- > >> drivers/platform/x86/Makefile | 1 - > >> 7 files changed, 14 insertions(+), 14 deletions(-) > >> rename drivers/{platform/x86 => acpi}/i2c-multi-instantiate.c (100%) > >> > >> diff --git a/MAINTAINERS b/MAINTAINERS > >> index 4e828542b089..546f9e149d28 100644 > >> --- a/MAINTAINERS > >> +++ b/MAINTAINERS > >> @@ -392,7 +392,7 @@ ACPI I2C MULTI INSTANTIATE DRIVER > >> M: Hans de Goede > >> L: platform-driver-x86@vger.kernel.org > >> S: Maintained > >> -F: drivers/platform/x86/i2c-multi-instantiate.c > >> +F: drivers/acpi/i2c-multi-instantiate.c > >> > >> ACPI PCC(Platform Communication Channel) MAILBOX DRIVER > >> M: Sudeep Holla > >> diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig > >> index ba45541b1f1f..2fd78366af6f 100644 > >> --- a/drivers/acpi/Kconfig > >> +++ b/drivers/acpi/Kconfig > >> @@ -295,6 +295,17 @@ config ACPI_PROCESSOR > >> To compile this driver as a module, choose M here: > >> the module will be called processor. > >> > >> +config ACPI_I2C_MULTI_INST > >> + tristate "I2C multi instantiate pseudo device driver" > >> + depends on I2C > >> + help > >> + Some ACPI-based systems list multiple i2c-devices in a single ACPI > >> + firmware-node. This driver will instantiate separate i2c-clients > >> + for each device in the firmware-node. > >> + > >> + To compile this driver as a module, choose M here: the module > >> + will be called i2c-multi-instantiate. > >> + > >> config ACPI_IPMI > >> tristate "IPMI" > >> depends on IPMI_HANDLER > >> diff --git a/drivers/acpi/Makefile b/drivers/acpi/Makefile > >> index bb757148e7ba..d4db7fb0baf0 100644 > >> --- a/drivers/acpi/Makefile > >> +++ b/drivers/acpi/Makefile > >> @@ -104,6 +104,7 @@ obj-$(CONFIG_ACPI_SPCR_TABLE) += spcr.o > >> obj-$(CONFIG_ACPI_DEBUGGER_USER) += acpi_dbg.o > >> obj-$(CONFIG_ACPI_PPTT) += pptt.o > >> obj-$(CONFIG_ACPI_PFRUT) += pfr_update.o pfr_telemetry.o > >> +obj-$(CONFIG_ACPI_I2C_MULTI_INST) += i2c-multi-instantiate.o > >> > >> # processor has its own "processor." module_param namespace > >> processor-y := processor_driver.o > >> diff --git a/drivers/platform/x86/i2c-multi-instantiate.c b/drivers/acpi/i2c-multi-instantiate.c > >> similarity index 100% > >> rename from drivers/platform/x86/i2c-multi-instantiate.c > >> rename to drivers/acpi/i2c-multi-instantiate.c > >> diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c > >> index 1331756d4cfc..3e85a02f6ba2 100644 > >> --- a/drivers/acpi/scan.c > >> +++ b/drivers/acpi/scan.c > >> @@ -1738,7 +1738,7 @@ static bool acpi_device_enumeration_by_parent(struct acpi_device *device) > >> * must be instantiated for each, each with its own i2c_device_id. > >> * Normally we only instantiate an i2c-client for the first resource, > >> * using the ACPI HID as id. These special cases are handled by the > >> - * drivers/platform/x86/i2c-multi-instantiate.c driver, which knows > >> + * drivers/acpi/i2c-multi-instantiate.c driver, which knows > >> * which i2c_device_id to use for each resource. > >> */ > >> {"BSG1160", }, > >> diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig > >> index 24deeeb29af2..37c1c150508d 100644 > >> --- a/drivers/platform/x86/Kconfig > >> +++ b/drivers/platform/x86/Kconfig > >> @@ -990,17 +990,6 @@ config TOPSTAR_LAPTOP > >> > >> If you have a Topstar laptop, say Y or M here. > >> > >> -config I2C_MULTI_INSTANTIATE > >> - tristate "I2C multi instantiate pseudo device driver" > >> - depends on I2C && ACPI > >> - help > >> - Some ACPI-based systems list multiple i2c-devices in a single ACPI > >> - firmware-node. This driver will instantiate separate i2c-clients > >> - for each device in the firmware-node. > >> - > >> - To compile this driver as a module, choose M here: the module > >> - will be called i2c-multi-instantiate. > >> - > >> config MLX_PLATFORM > >> tristate "Mellanox Technologies platform support" > >> depends on I2C && REGMAP > >> diff --git a/drivers/platform/x86/Makefile b/drivers/platform/x86/Makefile > >> index c12a9b044fd8..6c7870190564 100644 > >> --- a/drivers/platform/x86/Makefile > >> +++ b/drivers/platform/x86/Makefile > >> @@ -110,7 +110,6 @@ obj-$(CONFIG_TOPSTAR_LAPTOP) += topstar-laptop.o > >> > >> # Platform drivers > >> obj-$(CONFIG_FW_ATTR_CLASS) += firmware_attributes_class.o > >> -obj-$(CONFIG_I2C_MULTI_INSTANTIATE) += i2c-multi-instantiate.o > >> obj-$(CONFIG_MLX_PLATFORM) += mlx-platform.o > >> obj-$(CONFIG_TOUCHSCREEN_DMI) += touchscreen_dmi.o > >> obj-$(CONFIG_WIRELESS_HOTKEY) += wireless-hotkey.o > >> -- > >> 2.25.1 > >> >