Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp514277rdb; Tue, 19 Sep 2023 02:11:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF4FMqmRmrEUvVVkk8ZUhGCLJolLRfZsWArrHTJPA6JHuaxiBj5ypNXQNME/pGxDUevYSgD X-Received: by 2002:a05:6871:720:b0:1bf:e522:7133 with SMTP id f32-20020a056871072000b001bfe5227133mr13901530oap.38.1695114702271; Tue, 19 Sep 2023 02:11:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695114702; cv=none; d=google.com; s=arc-20160816; b=ofEb8jT9bquKzX17f9KEgWcdvGwOrzBIxcoXstKChLVeb+CyPRsaxKnmNiL/WhWYDP WBKgJmRhinO6V5f1T7WElWa8kxWuhOVKm3JG/RfGR1wv9WrFpWhnrDeEo7+4WO38Pss7 diDKLIJou8BPrbzWFUTb6UpyFys3ucjmcBZRebDPDvcOuk/7AKQSHl5iQm70vGIol3bz GUW+NHPcuBQILP/6bGDw+RfPtgxFOI9L4EtXUSzS3sI0ZSc4PjzDbPiJsr3Ly9RDpxq3 mwwQAqm7RdzP9bNwCTLRGXvGBBQgC1Z4HCKvXWWmH06CopVTl82eum9C9qZV61QwaE2g 5KYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=WfMtPVs1WjAmTu1h1StzNblcDZB2CRhuJbtwH+WeC4s=; fh=v/cgXVCsaJtP0fZMt5ZEEVlIi5CpwbjqWKXuOhPXvI0=; b=bFrcPFmKLlfasTH6zwB9Wsdy09QV+PR7+HiMnGBI2MPgPySk4+f4WaijgQG1M32ghk BUk3WV41QBnnE18JBj5ckxcN1jChNn/SFUUGgKuW6UZ8GG/itDhg2orTZ01O4c3lR8Uq p+Ni+TY/pcpsI5xevFigHqG0YPRf995GjJvO0+w1Cpgaq1UVk0QSQ0wVO0Raq/EM/re6 SVFfGZiTfRYGwSJ+hQaXz8ifIQhtgdk7cGKz07eTZOeHtaZsw/HOEW0uvX0HB3vHE7te yA6pc5apx3WQ3jcZGLP4Fvl2dSXLamiWhnFy9d2o8/5dDa1EjJNV5AhLRISxmWEmcfRf 4dCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="GLWOCA/6"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id bz34-20020a056a02062200b00565f7f1eacdsi9907883pgb.80.2023.09.19.02.11.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 02:11:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="GLWOCA/6"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id D24C581DD273; Tue, 19 Sep 2023 02:10:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230349AbjISJKW (ORCPT + 99 others); Tue, 19 Sep 2023 05:10:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229821AbjISJKU (ORCPT ); Tue, 19 Sep 2023 05:10:20 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89465BA; Tue, 19 Sep 2023 02:10:13 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 38J99vl2085147; Tue, 19 Sep 2023 04:09:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1695114598; bh=WfMtPVs1WjAmTu1h1StzNblcDZB2CRhuJbtwH+WeC4s=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=GLWOCA/6PKSr1AfbMzwGx84FiFzmEClpeLm5GtxWQHrEVmsdr6lUj2fLwGuYuWai+ ZihzWfVRcgCdaYl2vcr9qytRUL+ReHm2LL/PcsI0A6BjFCCvSyV39RmkUag8m85sVI GLzHBrOqT9ejayxI7Esk37xeBHOSD3Rtc4szbeEM= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 38J99vv5005334 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 19 Sep 2023 04:09:57 -0500 Received: from DLEE111.ent.ti.com (157.170.170.22) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 19 Sep 2023 04:09:56 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 19 Sep 2023 04:09:56 -0500 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 38J99tq3025271; Tue, 19 Sep 2023 04:09:56 -0500 Date: Tue, 19 Sep 2023 14:39:55 +0530 From: Dhruva Gole To: Ulf Hansson CC: Arnd Bergmann , Olof Johansson , , , , Nishanth Menon , Santosh Shilimkar , Tero Kristo , Tony Lindgren Subject: Re: [PATCH v2 16/17] pmdomain: ti: Move and add Kconfig options to the pmdomain subsystem Message-ID: <20230919090955.hu5mrzq2br4o7zd5@dhruva> References: <20230915092003.658361-1-ulf.hansson@linaro.org> <20230915092003.658361-17-ulf.hansson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20230915092003.658361-17-ulf.hansson@linaro.org> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 19 Sep 2023 02:10:32 -0700 (PDT) On Sep 15, 2023 at 11:20:02 +0200, Ulf Hansson wrote: > The TI_SCI_PM_DOMAINS Kconfig option belongs closer to its corresponding > implementation, hence let's move it from the soc subsystem to the pmdomain > subsystem. > > While at it, let's also add a Kconfig option the omap_prm driver, rather > than using ARCH_OMAP2PLUS directly. OK > > Cc: Nishanth Menon > Cc: Santosh Shilimkar > Cc: Tero Kristo > Cc: Tony Lindgren > Signed-off-by: Ulf Hansson > --- > drivers/pmdomain/Kconfig | 1 + > drivers/pmdomain/ti/Kconfig | 22 ++++++++++++++++++++++ > drivers/pmdomain/ti/Makefile | 2 +- > drivers/soc/ti/Kconfig | 12 ------------ > 4 files changed, 24 insertions(+), 13 deletions(-) > create mode 100644 drivers/pmdomain/ti/Kconfig > > diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig > index 98e04589bef4..33bfec9c4f7a 100644 > --- a/drivers/pmdomain/Kconfig > +++ b/drivers/pmdomain/Kconfig > @@ -15,5 +15,6 @@ source "drivers/pmdomain/st/Kconfig" > source "drivers/pmdomain/starfive/Kconfig" > source "drivers/pmdomain/sunxi/Kconfig" > source "drivers/pmdomain/tegra/Kconfig" > +source "drivers/pmdomain/ti/Kconfig" > > endmenu > diff --git a/drivers/pmdomain/ti/Kconfig b/drivers/pmdomain/ti/Kconfig > new file mode 100644 > index 000000000000..67c608bf7ed0 > --- /dev/null > +++ b/drivers/pmdomain/ti/Kconfig > @@ -0,0 +1,22 @@ > +# SPDX-License-Identifier: GPL-2.0-only > + > +config OMAP2PLUS_PRM > + bool > + depends on ARCH_OMAP2PLUS > + default ARCH_OMAP2PLUS > + > +if SOC_TI > + > +config TI_SCI_PM_DOMAINS > + tristate "TI SCI PM Domains Driver" > + depends on TI_SCI_PROTOCOL > + depends on PM_GENERIC_DOMAINS > + help > + Generic power domain implementation for TI device implementing > + the TI SCI protocol. > + > + To compile this as a module, choose M here. The module will be > + called ti_sci_pm_domains. Note this is needed early in boot before > + rootfs may be available. > + > +endif > diff --git a/drivers/pmdomain/ti/Makefile b/drivers/pmdomain/ti/Makefile > index 69580afbb436..af6cd056c158 100644 > --- a/drivers/pmdomain/ti/Makefile > +++ b/drivers/pmdomain/ti/Makefile > @@ -1,3 +1,3 @@ > # SPDX-License-Identifier: GPL-2.0 > -obj-$(CONFIG_ARCH_OMAP2PLUS) += omap_prm.o > +obj-$(CONFIG_OMAP2PLUS_PRM) += omap_prm.o > obj-$(CONFIG_TI_SCI_PM_DOMAINS) += ti_sci_pm_domains.o > diff --git a/drivers/soc/ti/Kconfig b/drivers/soc/ti/Kconfig > index 2cae17b65fd9..1a93001c9e36 100644 > --- a/drivers/soc/ti/Kconfig > +++ b/drivers/soc/ti/Kconfig > @@ -50,18 +50,6 @@ config WKUP_M3_IPC > to communicate and use the Wakeup M3 for PM features like suspend > resume and boots it using wkup_m3_rproc driver. > > -config TI_SCI_PM_DOMAINS > - tristate "TI SCI PM Domains Driver" > - depends on TI_SCI_PROTOCOL > - depends on PM_GENERIC_DOMAINS > - help > - Generic power domain implementation for TI device implementing > - the TI SCI protocol. > - > - To compile this as a module, choose M here. The module will be > - called ti_sci_pm_domains. Note this is needed early in boot before > - rootfs may be available. > - > config TI_K3_RINGACC > tristate "K3 Ring accelerator Sub System" > depends on ARCH_K3 || COMPILE_TEST > -- > 2.34.1 > The changes are fine by me, Reviewed-by: Dhruva Gole -- Best regards, Dhruva Gole