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: 13304934 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 19FFDC001DE for ; Fri, 7 Jul 2023 14:05:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=oRFAoNqs6CyQIU5fN1PBd3YTpcl6P4nruzsASqNQ7kU=; b=FgNLVvpqC19ytI D/OEFo8jJuOpwcmFzndJKJUZHdTH2Hvx12lyTLZrkz4fR0EKO9GWTK0kj9NwsJLxEk+fqzNnu4ESh b4Q1FyBHnxl8pgo/IVsOuVtmUauBH51zKh89atE20smDYV0CzvoLObepV2LAiir7JvtGXeo/TURLd mycMorJmBJ2T+F5VVc5Vc3T+OpNCzDpTFQspyIL0Rdp15bz89kGg/HpHEG2CVbpvULrBZdbQNsYQf DqPpkUoO2+9aO7yp8tX4rXqP3cygB/bxlMxmoBg8W34i76GjqDMzuBZ5Z/sR/JXxe58bhVf+sEaHv /6p2eh9XubmOysiafzgg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qHm4t-004oKz-0P; Fri, 07 Jul 2023 14:04:55 +0000 Received: from mail-lj1-x229.google.com ([2a00:1450:4864:20::229]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qHm4n-004oEh-0q for linux-arm-kernel@lists.infradead.org; Fri, 07 Jul 2023 14:04:51 +0000 Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2b6f9edac8dso29134101fa.3 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=j4LEkjCCkbWEi6DiOEyNYu+q/9xzr5tINIOgU9BR4OOpV0VY8AqNnXYVmZKhe/3H/p 4FJcUW3MZKMeFMI3QUDSAhxLMNdG+0XheNLVEDqgYVHK5XVBDZ6Ws95La+waG1ldTUL0 o4PUxpnI7rzmQGSA6C6EYQei6JGB3EzILjQfW9BTRJfez0j3geWrhFVC+dc/JLIzzmBT OdGMe6Cz5JfuFI088ZaW66vVP0P/V7jh9IVggQOaYWSYeP8S4QEoGRKi2RK66BSc3FsM GW6gfbX0Bxna8K5828zqaebQupDI29KjyMS1B0wAhbI4Egn6uNXdx7q0kpiKhsXQlIX8 Ks0w== X-Gm-Message-State: ABy/qLbLzZV8v8NA24cxWkduNABs3Kb7Pg2veuYeW8M61Mm5My1o7ZUC g1kTdxN7RQCb8Byh0t1M21Z36w== 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230707_070449_321032_64034204 X-CRM114-Status: GOOD ( 16.75 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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