Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp449441pxj; Thu, 17 Jun 2021 06:31:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydcml2y4K4A95Dk0EMZIf7M4/QdqcqBf/CC/K7YI8UuJTJVOn6M0TUf39h92JRomcsI1ox X-Received: by 2002:a17:906:dbec:: with SMTP id yd12mr5265692ejb.102.1623936660406; Thu, 17 Jun 2021 06:31:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623936660; cv=none; d=google.com; s=arc-20160816; b=NooYsoTN3OF2tljcdZ27vJMIrtBLe4LcBgH/5J6pYyBzmFHOYmEVzYEZOVt78YiSrS kGO9vJ5BvCFWOscqUTf+GLXTUX4njR+nHnbP9UNnzCwboJcGsUDxBrvDB/h8IDmxydtA M2zvqc4HdQtwiPNSDRa0lwgeJxKy6TczpdXFY0Hz2k030xEqR9sYPJcu/HhZgx2n2czp dDm23H1wL/w4gKgSkMKu01L13L/nqh+hxxuepUM2e4ALCVAleUYRS9xr3SX1UocNgxU4 lHJ4BqgVU3Fa+CA4F+fuyLyxiCrTAnAtBjbsQu9tXPlGXDKTldGW4mwdN/8xCw/wrgno cStA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=UShfFP0yGU8xaRFO0Sd23m6zKnfLcJDtjSbsNFViaSE=; b=lYr2DRYI1mM4Wps2S/9vcgbvmCCao3Y7r1N5Tpd11BUDchbuZJdR+ExI6XSRWF+M5A +0Y2xGzCeKZ1J/Q0ZVimtuC6J1UI2Y+ylEJATe/VUvMEYFD3tAoKVPQxJhqypJDFOZ71 2SGOjMD8pQUVln5pXGAsvc6AmdaP3yRfXjkON38xa1BseDl+ue28rWhbs/jzWYi1QKAY telrJfAXue7iVXpbUf1NXD13Eh+uGD6bXz1Y+DSLmQg9TzCVx+pW1riPutxtJ7UkPSsw S5HZcHq9xNfOOvZqSP9HxC3Cq7O/wgDJ/Hov7WLs9IGP84zqubu5LEzdRVoUWsKYhwXc agfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=b6eGQmWm; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m27si5637925ejn.391.2021.06.17.06.30.36; Thu, 17 Jun 2021 06:31:00 -0700 (PDT) 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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=b6eGQmWm; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232426AbhFQLQ2 (ORCPT + 99 others); Thu, 17 Jun 2021 07:16:28 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:24201 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230269AbhFQLQ0 (ORCPT ); Thu, 17 Jun 2021 07:16:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623928458; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UShfFP0yGU8xaRFO0Sd23m6zKnfLcJDtjSbsNFViaSE=; b=b6eGQmWmjVWh1uBUnmLDI67bUD/uHf4J+LTuFs1ySHmyHD2zleyB9IErsltBenDsFXiIdH SFNmomn5+Ga3Wdfl0lVNdJjfJR54ZP12kUnaZydt4B744JCHaiA986HQLfJfyVysw/5zxi 6yU49bu3SHpufRCep4vO+OchtAAFZeY= Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-496-DbiACWbyObG4wKZj4w0CaQ-1; Thu, 17 Jun 2021 07:14:16 -0400 X-MC-Unique: DbiACWbyObG4wKZj4w0CaQ-1 Received: by mail-ej1-f69.google.com with SMTP id gv42-20020a1709072beab02903eab8e33118so2015824ejc.19 for ; Thu, 17 Jun 2021 04:14:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=UShfFP0yGU8xaRFO0Sd23m6zKnfLcJDtjSbsNFViaSE=; b=Ne7HfZ9kWGc9weTnLPLaxJSjoGhwLMG2AGH9KRwWo7J/CeaMB6h/H4mRNla9KiVZFs VxBTi/k6dlaFD5T//QbiE4FvXELTX0MnUTMs7npk0C9Ez1Adl98x8qCSQD2EuKfSuIGx IeNDmrs0wHEc0ujoWSew1KCCfxTT8aGW0gDyXUJ/vTnCLgoioB9hVklwSJEWNvL+WY7J gmMR/Y1MNNyPTvKjbWALQlEj0AHoWJqfRtFyvXJFj9hs3VQcCLuXofg/QMxLLIFF0XB+ rUCON8zwAgum0kvWFtLXcW2d77mY3HYcDLUGEPlWFyahppqMwMhZmbCGVJm+oXRi2Xr3 je+A== X-Gm-Message-State: AOAM532Gkf+4TvashqqdVbmTW3+EpL84Ch7zUz2JjDYMoJqMSoysP8AB HaHFHMdHLw0EOhWy2izQWLEgHXvBJw8749ZPNf0TJNJgLjMEyGI5CbBy8Dmf0c6Q9V6kGnZI272 lD9PtDao0ob0ov6++LUip8sxB X-Received: by 2002:a05:6402:518a:: with SMTP id q10mr5854951edd.198.1623928455758; Thu, 17 Jun 2021 04:14:15 -0700 (PDT) X-Received: by 2002:a05:6402:518a:: with SMTP id q10mr5854931edd.198.1623928455570; Thu, 17 Jun 2021 04:14:15 -0700 (PDT) Received: from x1.localdomain (2001-1c00-0c1e-bf00-1054-9d19-e0f0-8214.cable.dynamic.v6.ziggo.nl. [2001:1c00:c1e:bf00:1054:9d19:e0f0:8214]) by smtp.gmail.com with ESMTPSA id m11sm607521ejl.102.2021.06.17.04.14.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 17 Jun 2021 04:14:14 -0700 (PDT) Subject: Re: [PATCH v5 6/6] mfd: tps68470: Remove tps68470 MFD driver To: Daniel Scally , "Rafael J . Wysocki" , Andy Shevchenko , Lee Jones , Maximilian Luz , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-gpio@vger.kernel.org, linux-i2c@vger.kernel.org, platform-driver-x86@vger.kernel.org, devel@acpica.org Cc: Len Brown , Mika Westerberg , Linus Walleij , Bartosz Golaszewski , Wolfram Sang , Mark Gross , Robert Moore , Erik Kaneda , laurent.pinchart@ideasonboard.com, kieran.bingham@ideasonboard.com, Andy Shevchenko References: <20210603224007.120560-1-djrscally@gmail.com> <20210603224007.120560-7-djrscally@gmail.com> From: Hans de Goede Message-ID: <4083819a-eabf-fb2d-2ce8-5f6a409c69a0@redhat.com> Date: Thu, 17 Jun 2021 13:14:14 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20210603224007.120560-7-djrscally@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 6/4/21 12:40 AM, Daniel Scally wrote: > This driver only covered one scenario in which ACPI devices with _HID > INT3472 are found, and its functionality has been taken over by the > intel-skl-int3472 module, so remove it. > > Acked-by: Andy Shevchenko > Acked-by: Lee Jones > Reviewed-by: Laurent Pinchart > Signed-off-by: Daniel Scally Thank you for your patch, I've applied this patch to my review-hans branch: https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans Note it will show up in my review-hans branch once I've pushed my local branch there, which might take a while. Once I've run some tests on this branch the patches there will be added to the platform-drivers-x86/for-next branch and eventually will be included in the pdx86 pull-request to Linus for the next merge-window. Regards, Hans > --- > Changes since v4: > - None > > drivers/acpi/pmic/Kconfig | 2 +- > drivers/gpio/Kconfig | 2 +- > drivers/mfd/Kconfig | 18 -------- > drivers/mfd/Makefile | 1 - > drivers/mfd/tps68470.c | 97 --------------------------------------- > 5 files changed, 2 insertions(+), 118 deletions(-) > delete mode 100644 drivers/mfd/tps68470.c > > diff --git a/drivers/acpi/pmic/Kconfig b/drivers/acpi/pmic/Kconfig > index 56bbcb2ce61b..f84b8f6038dc 100644 > --- a/drivers/acpi/pmic/Kconfig > +++ b/drivers/acpi/pmic/Kconfig > @@ -52,7 +52,7 @@ endif # PMIC_OPREGION > > config TPS68470_PMIC_OPREGION > bool "ACPI operation region support for TPS68470 PMIC" > - depends on MFD_TPS68470 > + depends on INTEL_SKL_INT3472 > help > This config adds ACPI operation region support for TI TPS68470 PMIC. > TPS68470 device is an advanced power management unit that powers > diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig > index 1dd0ec6727fd..10228abeee56 100644 > --- a/drivers/gpio/Kconfig > +++ b/drivers/gpio/Kconfig > @@ -1367,7 +1367,7 @@ config GPIO_TPS65912 > > config GPIO_TPS68470 > bool "TPS68470 GPIO" > - depends on MFD_TPS68470 > + depends on INTEL_SKL_INT3472 > help > Select this option to enable GPIO driver for the TPS68470 > chip family. > diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig > index 5c7f2b100191..99c4e1a80ae0 100644 > --- a/drivers/mfd/Kconfig > +++ b/drivers/mfd/Kconfig > @@ -1499,24 +1499,6 @@ config MFD_TPS65217 > This driver can also be built as a module. If so, the module > will be called tps65217. > > -config MFD_TPS68470 > - bool "TI TPS68470 Power Management / LED chips" > - depends on ACPI && PCI && I2C=y > - depends on I2C_DESIGNWARE_PLATFORM=y > - select MFD_CORE > - select REGMAP_I2C > - help > - If you say yes here you get support for the TPS68470 series of > - Power Management / LED chips. > - > - These include voltage regulators, LEDs and other features > - that are often used in portable devices. > - > - This option is a bool as it provides an ACPI operation > - region, which must be available before any of the devices > - using this are probed. This option also configures the > - designware-i2c driver to be built-in, for the same reason. > - > config MFD_TI_LP873X > tristate "TI LP873X Power Management IC" > depends on I2C > diff --git a/drivers/mfd/Makefile b/drivers/mfd/Makefile > index 4f6d2b8a5f76..8b322d89a0c5 100644 > --- a/drivers/mfd/Makefile > +++ b/drivers/mfd/Makefile > @@ -105,7 +105,6 @@ obj-$(CONFIG_MFD_TPS65910) += tps65910.o > obj-$(CONFIG_MFD_TPS65912) += tps65912-core.o > obj-$(CONFIG_MFD_TPS65912_I2C) += tps65912-i2c.o > obj-$(CONFIG_MFD_TPS65912_SPI) += tps65912-spi.o > -obj-$(CONFIG_MFD_TPS68470) += tps68470.o > obj-$(CONFIG_MFD_TPS80031) += tps80031.o > obj-$(CONFIG_MENELAUS) += menelaus.o > > diff --git a/drivers/mfd/tps68470.c b/drivers/mfd/tps68470.c > deleted file mode 100644 > index 4a4df4ffd18c..000000000000 > --- a/drivers/mfd/tps68470.c > +++ /dev/null > @@ -1,97 +0,0 @@ > -// SPDX-License-Identifier: GPL-2.0 > -/* > - * TPS68470 chip Parent driver > - * > - * Copyright (C) 2017 Intel Corporation > - * > - * Authors: > - * Rajmohan Mani > - * Tianshu Qiu > - * Jian Xu Zheng > - * Yuning Pu > - */ > - > -#include > -#include > -#include > -#include > -#include > -#include > -#include > - > -static const struct mfd_cell tps68470s[] = { > - { .name = "tps68470-gpio" }, > - { .name = "tps68470_pmic_opregion" }, > -}; > - > -static const struct regmap_config tps68470_regmap_config = { > - .reg_bits = 8, > - .val_bits = 8, > - .max_register = TPS68470_REG_MAX, > -}; > - > -static int tps68470_chip_init(struct device *dev, struct regmap *regmap) > -{ > - unsigned int version; > - int ret; > - > - /* Force software reset */ > - ret = regmap_write(regmap, TPS68470_REG_RESET, TPS68470_REG_RESET_MASK); > - if (ret) > - return ret; > - > - ret = regmap_read(regmap, TPS68470_REG_REVID, &version); > - if (ret) { > - dev_err(dev, "Failed to read revision register: %d\n", ret); > - return ret; > - } > - > - dev_info(dev, "TPS68470 REVID: 0x%x\n", version); > - > - return 0; > -} > - > -static int tps68470_probe(struct i2c_client *client) > -{ > - struct device *dev = &client->dev; > - struct regmap *regmap; > - int ret; > - > - regmap = devm_regmap_init_i2c(client, &tps68470_regmap_config); > - if (IS_ERR(regmap)) { > - dev_err(dev, "devm_regmap_init_i2c Error %ld\n", > - PTR_ERR(regmap)); > - return PTR_ERR(regmap); > - } > - > - i2c_set_clientdata(client, regmap); > - > - ret = tps68470_chip_init(dev, regmap); > - if (ret < 0) { > - dev_err(dev, "TPS68470 Init Error %d\n", ret); > - return ret; > - } > - > - ret = devm_mfd_add_devices(dev, PLATFORM_DEVID_NONE, tps68470s, > - ARRAY_SIZE(tps68470s), NULL, 0, NULL); > - if (ret < 0) { > - dev_err(dev, "devm_mfd_add_devices failed: %d\n", ret); > - return ret; > - } > - > - return 0; > -} > - > -static const struct acpi_device_id tps68470_acpi_ids[] = { > - {"INT3472"}, > - {}, > -}; > - > -static struct i2c_driver tps68470_driver = { > - .driver = { > - .name = "tps68470", > - .acpi_match_table = tps68470_acpi_ids, > - }, > - .probe_new = tps68470_probe, > -}; > -builtin_i2c_driver(tps68470_driver); >