From patchwork Fri Jul 7 14:04:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 700778 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 04900C001DE for ; Fri, 7 Jul 2023 14:04:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231623AbjGGOEt (ORCPT ); Fri, 7 Jul 2023 10:04:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231565AbjGGOEs (ORCPT ); Fri, 7 Jul 2023 10:04:48 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 600371FEA for ; Fri, 7 Jul 2023 07:04:45 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2b6f97c7115so29181071fa.2 for ; Fri, 07 Jul 2023 07:04:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688738683; x=1691330683; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=yrp8wl+UMMsfs1jvuX8kePskLzEjhfOLcdCCjv/24Fs=; b=dh/zABAXgmfBtINbeAHubt+OwDStiqoiZtpcpPlQfiN+JMvejHq++/4MJF0NzMa6Ns R9gctkOnzCUbXEmytYwpVTz5+X86UHBL/qOqtlItNMI2v1zq4UE8kjZiUaN3Wex5u6u/ athNyI8ijb8lO9iNp+XvG0k166u+cGDobwtkYcLjsHkguIWgDVgSQiLRNFKyk64VSJss 0qWTkQxY4mM2eUnbhilyftrsCITH00i1kdq1/yUVl8GM53VzhxyFp9+c2XVqaTFtQD9X MRNK8P/zQOZdBBYs5h3hbpNJrKjcr6qhtgOoRcUasfoAduauRphpU7NOFtLyAJZ/ivrj bMjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688738683; x=1691330683; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yrp8wl+UMMsfs1jvuX8kePskLzEjhfOLcdCCjv/24Fs=; b=Rjnpxk8TejRAbRAT+ANcG20LH79KvumqisgMxuTs9MyqJiYhZGqoXwHyxm/xsyaRe9 KaBoCyFL7pKW9AFxdV9b8ezI/SeKs0UjBsSSpDYlWhdEg71eaLPRU7oB/G1EU5zU6aQv Ln+EzXDHxgeIzXefaOpx2hnBlxfwRvIqVqvj23wfwJLHdQqe6Cd12QhQ85EUm3WR9bVI cYp4j03BU16wynrNYieF+/c4B7YKpIwOnTWko+PSWmI5jexk5RSvClzXauPpQ0bup8j9 gjYqfqTqdhJz7zMkoDxUkXCbR6s9BfifUJKAhwGqzNsW/DpPgsUmm7/HtMgMU/aOOYuX kosg== X-Gm-Message-State: ABy/qLbsHvFTfdhWuf51w+8/6qVPoaFQv0tFeC7eSOrT5tUkfgqKMf5G AgmhtWUoJtCUbnTgxmx642gBbw== X-Google-Smtp-Source: APBJJlEAadQSl1mZnQ3nQPXS80mjFk4GuAmuVnheGqj1sTrUfPnOZEUKr/HfbJpFDZ3GOAAEpJZk/A== X-Received: by 2002:a2e:9d59:0:b0:2b6:d5af:1160 with SMTP id y25-20020a2e9d59000000b002b6d5af1160mr3628897ljj.28.1688738683616; Fri, 07 Jul 2023 07:04:43 -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 u21-20020a2e8555000000b002b6cb25e3f1sm760341ljj.108.2023.07.07.07.04.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jul 2023 07:04:43 -0700 (PDT) From: Ulf Hansson To: Arnd Bergmann , Olof Johansson Cc: Ulf Hansson , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 01/18] genpd: Create a new subsystem directory to host genpd providers Date: Fri, 7 Jul 2023 16:04:17 +0200 Message-Id: <20230707140434.723349-2-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230707140434.723349-1-ulf.hansson@linaro.org> References: <20230707140434.723349-1-ulf.hansson@linaro.org> 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 --- 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 15ce1f07d9f7..588769fab516 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8663,6 +8663,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/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