Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9B793C7EE31 for ; Wed, 1 Mar 2023 12:48:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229907AbjCAMsE (ORCPT ); Wed, 1 Mar 2023 07:48:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229652AbjCAMsC (ORCPT ); Wed, 1 Mar 2023 07:48:02 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65D2E16880 for ; Wed, 1 Mar 2023 04:47:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1677674831; 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=PrHWi0O3bp5TW073HxIoo2GqwQh60ydUW1vLbyoS8FU=; b=TCDHMqCmqHOxRM5QtpqYDPa+29+jQWl3x4nbuRHyIqBT/jY9yYGiViECo1cLHP6WbPZiuP f5vkgiw/54KEixCIcXlpsnmcPfS4ZAqnX0J3uFW4LuUwnwLk49EM8jC+Hm/O/5n4AY6FRX XZQ1pyQFsGoEjAFzngV2rjHCqL9QVBw= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-339-_rQLECoAPWanQ7VkN3DHnA-1; Wed, 01 Mar 2023 07:47:10 -0500 X-MC-Unique: _rQLECoAPWanQ7VkN3DHnA-1 Received: by mail-ed1-f69.google.com with SMTP id h13-20020a0564020e8d00b004a26ef05c34so19044274eda.16 for ; Wed, 01 Mar 2023 04:47:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=PrHWi0O3bp5TW073HxIoo2GqwQh60ydUW1vLbyoS8FU=; b=njgFFxL7YugAZD/m2/IwR+q4pKZSUrR88AUHjOfcCpWp9UpvG1e3vSlxA+XcI7LWT1 v+/EM5WZ2HHrLVh4jmS+jDVTQ5yUhPGXSVZKoFVa73o07Sc+6Ze8BjloqX1nZwy8ryo1 cdiW4WGb0zgP1uDav3vXvNzmJ++Gtd9fV3tTOHIXBaOT+erKQYPHHyH98lG3TTM8TZgG 3TizuRDKGwJk9p97tsdxHoY0Mgim8jfq4NCq85ei5dl6gXskQ+b8pg0ObVcy3sxgIpI3 LJ7PUQIWLfDS8LhcNYuJ68HtwB/GjkeSQzI8kelI0qhPLDD4mq1poDA80NF1OEl84ATP 8uIQ== X-Gm-Message-State: AO0yUKUugP5MTLJR2d+7xvx05LTB7f0SuHxUev022ZaCk5uN7Z1datGF 5A9QYBFlJ7XzhOzCDemih8fweMe8M9cojSavafPjL9WZVYacwvdv5+UuVa9p+6X/HzKI3k/9595 8wl/IAtaKjjlJ0N8nucSBNy48 X-Received: by 2002:aa7:d6c4:0:b0:4af:59c0:744a with SMTP id x4-20020aa7d6c4000000b004af59c0744amr7757573edr.24.1677674829574; Wed, 01 Mar 2023 04:47:09 -0800 (PST) X-Google-Smtp-Source: AK7set/gegt3wNPFIA5UaAFSkM0H/Cu2JETEa5VzADkRpzuOeLZLY8c4YHH4dVV9FidRJQJWbeU9sQ== X-Received: by 2002:aa7:d6c4:0:b0:4af:59c0:744a with SMTP id x4-20020aa7d6c4000000b004af59c0744amr7757547edr.24.1677674829268; Wed, 01 Mar 2023 04:47:09 -0800 (PST) Received: from ?IPV6:2001:1c00:c32:7800:5bfa:a036:83f0:f9ec? (2001-1c00-0c32-7800-5bfa-a036-83f0-f9ec.cable.dynamic.v6.ziggo.nl. [2001:1c00:c32:7800:5bfa:a036:83f0:f9ec]) by smtp.gmail.com with ESMTPSA id b18-20020a50b412000000b004bda465da32sm374934edh.1.2023.03.01.04.47.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 01 Mar 2023 04:47:08 -0800 (PST) Message-ID: <5bb49015-0a9c-5b9d-b22c-38011439c984@redhat.com> Date: Wed, 1 Mar 2023 13:47:07 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH 0/8] drivers: select REGMAP instead of depending on it Content-Language: en-US, nl To: Randy Dunlap , linux-kernel@vger.kernel.org Cc: Andrew Jeffery , Corey Minyard , openipmi-developer@lists.sourceforge.net, Arnd Bergmann , Greg Kroah-Hartman , Riku Voipio , Stephen Boyd , Michael Turquette , linux-clk@vger.kernel.org, Michael Walle , Linus Walleij , Bartosz Golaszewski , linux-gpio@vger.kernel.org, Dan Murphy , Pavel Machek , Jacek Anaszewski , Lee Jones , linux-leds@vger.kernel.org, Darren Hart , Michael Shych , Mark Gross , Vadim Pasternak , platform-driver-x86@vger.kernel.org, Yegnesh S Iyer , Bin Gao , Zhang Rui , "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , linux-pm@vger.kernel.org, Oskar Senft , linux-serial@vger.kernel.org References: <20230226053953.4681-1-rdunlap@infradead.org> <7dd27ec5-0619-128d-8407-6711a05ef271@redhat.com> <6a95a337-2972-427f-635d-5ef4e91a82fa@infradead.org> From: Hans de Goede In-Reply-To: <6a95a337-2972-427f-635d-5ef4e91a82fa@infradead.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 2/27/23 17:07, Randy Dunlap wrote: > > > On 2/27/23 01:31, Hans de Goede wrote: >> Hi Randy, >> >> On 2/26/23 06:39, Randy Dunlap wrote: >>> REGMAP is a hidden (not user visible) symbol. Users cannot set it >>> directly thru "make *config", so drivers should select it instead of >>> depending on it if they need it. >>> >>> Consistently using "select" or "depends on" can also help reduce >>> Kconfig circular dependency issues. >>> >>> REGMAP is selected 94 times and is depended on 11 times in >>> current linux-next. Eliminate the uses of "depends on" by >>> converting them to "select". >> >> Thank you for your work on this. Mixing of depends on vs select >> is a real problem with many Kconfig symbols. >> >>> [PATCH 1/8] ipmi: ASPEED_BT_IPMI_BMC: select REGMAP_MMIO instead of depending on it >>> [PATCH 2/8] clk: HI655X: select REGMAP instead of depending on it >>> [PATCH 3/8] gpio: GPIO_REGMAP: select REGMAP instead of depending on it >>> [PATCH 4/8] leds: TI_LMU_COMMON: select REGMAP instead of depending on it >>> [PATCH 5/8] platform: mellanox: select REGMAP instead of depending on it >>> [PATCH 6/8] platform: x86: MLX_PLATFORM: select REGMAP instead of depending on it >>> [PATCH 7/8] thermal: intel: BXT_PMIC: select REGMAP instead of depending on it >>> [PATCH 8/8] serial: 8250: ASPEED_VUART: select REGMAP instead of depending on it >> >> For patch 5/8 and 6/8, do you want me to merge them through the pdx86 >> (platform-drivers-x86) tree, or do you plan to merge this whole series >> in one go through some other tree? > > Hi Hans, > Please merge them thru the pdx86 tree. Ok, I've applied patch 5/8 + 6/8 to my review-hans branch: https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans I'll rebase that branch once 6.3-rc1 is out and then push the rebased patch to the fixes branch and include it in my next 6.3 fixes pull-req to Linus. Regards, Hans >>> >>> diffstat: >>> drivers/char/ipmi/Kconfig | 3 ++- >>> drivers/clk/Kconfig | 2 +- >>> drivers/gpio/Kconfig | 2 +- >>> drivers/leds/Kconfig | 2 +- >>> drivers/platform/mellanox/Kconfig | 9 ++++----- >>> drivers/platform/x86/Kconfig | 3 ++- >>> drivers/thermal/intel/Kconfig | 3 ++- >>> drivers/tty/serial/8250/Kconfig | 3 ++- >>> 8 files changed, 15 insertions(+), 12 deletions(-) >>> >>> Cc: Andrew Jeffery >>> Cc: Corey Minyard >>> Cc: openipmi-developer@lists.sourceforge.net >>> Cc: Arnd Bergmann >>> Cc: Greg Kroah-Hartman >>> Cc: Riku Voipio >>> Cc: Stephen Boyd >>> Cc: Michael Turquette >>> Cc: linux-clk@vger.kernel.org >>> Cc: Michael Walle >>> Cc: Linus Walleij >>> Cc: Bartosz Golaszewski >>> Cc: linux-gpio@vger.kernel.org >>> Cc: Dan Murphy >>> Cc: Pavel Machek >>> Cc: Jacek Anaszewski >>> Cc: Lee Jones >>> Cc: linux-leds@vger.kernel.org >>> Cc: Darren Hart >>> Cc: Hans de Goede >>> Cc: Michael Shych >>> Cc: Mark Gross >>> Cc: Vadim Pasternak >>> Cc: platform-driver-x86@vger.kernel.org >>> Cc: Yegnesh S Iyer >>> Cc: Bin Gao >>> Cc: Zhang Rui >>> Cc: "Rafael J. Wysocki" >>> Cc: Daniel Lezcano >>> Cc: Amit Kucheria >>> Cc: linux-pm@vger.kernel.org >>> Cc: Oskar Senft >>> Cc: linux-serial@vger.kernel.org >>> >> >