From patchwork Tue Jul 11 14:19:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 13308836 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 2C229EB64DC for ; Tue, 11 Jul 2023 14:20:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230281AbjGKOUd (ORCPT ); Tue, 11 Jul 2023 10:20:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230078AbjGKOU3 (ORCPT ); Tue, 11 Jul 2023 10:20:29 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A99B1722 for ; Tue, 11 Jul 2023 07:20:07 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-4fbc0314a7bso9297613e87.2 for ; Tue, 11 Jul 2023 07:20:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689085202; x=1691677202; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=zd0pHiLE6JiFccsytA2KY34kSaVCJDH+B0AfS4SxX7w=; b=X3AsMMwIW8ixJYsIYYiApCkGubDFVXJiqmDb339aGy5wae37TEvGpUdy/RrY0hj2PX 47AjLJYbMBohDdbFUasrWvP/AHxjhtpp1TRMxiWSRn2wpxFtXo5BokFoM+m4wOQxSLPX 8We8cTIUGXY6FRpm8CiLM7z9NOzPC3SOCeuiGUmqvMRcml0zqQSa37NzxNn0lEWBRFE6 jQllWGDXsLFtEHXI1qq3wX4uTYRBslhHynP227y03GDhxn81jNuKspyWDsMXD0mUxFyU 2MHXnpWAoK+8jRZWEzDHNcWOhaJJevfaCR+j3dLhXEn+GxTriHAL77t9PdZMIVhe2rJS V9EQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689085202; x=1691677202; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=zd0pHiLE6JiFccsytA2KY34kSaVCJDH+B0AfS4SxX7w=; b=A3fi2fCjcJTMU1csvIDhzaZGd+xOCZRemtJLRCihJg9NDPsjHXkmZsgz8MVFxC6WVp 73mWgiFfnTSsFj2lzYs+XCSgkUDHUfh/gCxZiGTlvNgejTKRaqxPKOGYiBg/uHAr9bRG XGlBsdWxuB9pOa3MN+UGrHzgFn/qi8SjX0pPTecaz5BMK9wbiszVLyWVJwWyS5sKWB2r UrBJMJurnh2N1qXQ/xE4QqxKt3vZD/zYYctvoFigqTGiWtdmjp5YoGRilH6Qs9+6WKCi JtAlQwuPbCeqVbvK1y1i8f5Lf099lJSOzD12+Du+971erERhfc+QjvZkK5w3j0PauXkM 8lUA== X-Gm-Message-State: ABy/qLY2Waye/NOPXr40XjBTXTexx2h37LxjwML3A1nURCt6ddlVabOy E6w9QYE6Fzdd3oECZOulRU6teQ== X-Google-Smtp-Source: APBJJlH3CWGuj8eKXxQfrQR1Iyitul4Rnmz45Tbf2YH59TpieCawjjXXSA27O0nHY/Yj4CUChKOOGg== X-Received: by 2002:a05:6512:32d0:b0:4f8:6dfd:faa0 with SMTP id f16-20020a05651232d000b004f86dfdfaa0mr12537046lfg.2.1689085202092; Tue, 11 Jul 2023 07:20:02 -0700 (PDT) Received: from uffe-tuxpro14.. (h-94-254-63-18.NA.cust.bahnhof.se. [94.254.63.18]) by smtp.gmail.com with ESMTPSA id f13-20020ac251ad000000b004f37bd02a89sm335827lfk.287.2023.07.11.07.20.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jul 2023 07:20:01 -0700 (PDT) From: Ulf Hansson To: Arnd Bergmann , Olof Johansson Cc: Linus Walleij , Michal Simek , Nishanth Menon , Santosh Shilimkar , Tero Kristo , Tony Lindgren , Thierry Reding , Jonathan Hunter , Mikko Perttunen , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Walker Chen , Conor Dooley , Krzysztof Kozlowski , Alim Akhtar , Heiko Stuebner , Geert Uytterhoeven , Magnus Damm , Bjorn Andersson , Konrad Dybcio , Andy Gross , Matthias Brugger , AngeloGioacchino Del Regno , Shawn Guo , Sascha Hauer , Fabio Estevam , Florian Fainelli , Ray Jui , Scott Branden , Hector Martin , Sven Peter , Alyssa Rosenzweig , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Andreas Farber , Manivannan Sadhasivam , Ulf Hansson , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 01/18] genpd: Create a new subsystem directory to host genpd providers Date: Tue, 11 Jul 2023 16:19:56 +0200 Message-Id: <20230711141956.751529-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org There are currently ~60 users of the genpd provider interface, which implementations are sprinkled across various subsystems. To simplify with maintenance let's create a new subsystem (drivers/genpd) and start moving the providers in there. My intention is also to host a git tree to collect and to get the patches tested/integrated through the linux-next tree. Ideally this should release some of the burden on the soc maintainers. Note that, I will of course require acks/reviews from the current platform maintainers, hence the MAINTAINERS file needs to be updated accordingly for each genpd provider that is moved into the new genpd subsystem. Signed-off-by: Ulf Hansson Reviewed-by: Linus Walleij --- MAINTAINERS | 7 +++++++ drivers/Makefile | 1 + drivers/genpd/Makefile | 1 + 3 files changed, 9 insertions(+) create mode 100644 drivers/genpd/Makefile diff --git a/MAINTAINERS b/MAINTAINERS index 3be1bdfe8ecc..38eebcc97aa2 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8665,6 +8665,13 @@ F: Documentation/devicetree/bindings/power/power?domain* F: drivers/base/power/domain*.c F: include/linux/pm_domain.h +GENERIC PM DOMAIN PROVIDERS +M: Ulf Hansson +L: linux-pm@vger.kernel.org +S: Supported +T: git git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/linux-pm.git +F: drivers/genpd/ + GENERIC RESISTIVE TOUCHSCREEN ADC DRIVER M: Eugen Hristev L: linux-input@vger.kernel.org diff --git a/drivers/Makefile b/drivers/Makefile index 7241d80a7b29..cffac5b8c092 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -45,6 +45,7 @@ obj-$(CONFIG_DMADEVICES) += dma/ # SOC specific infrastructure drivers. obj-y += soc/ +obj-$(CONFIG_PM_GENERIC_DOMAINS) += genpd/ obj-y += virtio/ obj-$(CONFIG_VDPA) += vdpa/ diff --git a/drivers/genpd/Makefile b/drivers/genpd/Makefile new file mode 100644 index 000000000000..a4e40e534e6a --- /dev/null +++ b/drivers/genpd/Makefile @@ -0,0 +1 @@ +# SPDX-License-Identifier: GPL-2.0-only