From: Pankaj Patil <pankaj.patil@oss.qualcomm.com>
To: Brian Masney <bmasney@redhat.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
"Rafael J. Wysocki" <rafael@kernel.org>,
Danilo Krummrich <dakr@kernel.org>,
Bjorn Andersson <andersson@kernel.org>,
Stephen Boyd <sboyd@kernel.org>,
Jerome Brunet <jbrunet+clk@baylibre.com>,
Geert Uytterhoeven <geert+renesas@glider.be>
Cc: driver-core@lists.linux.dev, linux-kernel@vger.kernel.org,
linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org,
linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH 0/4] driver: core: add subsys_platform_driver() to reduce boilerplate code in drivers
Date: Wed, 9 Sep 2026 20:10:21 +0530 [thread overview]
Message-ID: <b01a3558-9107-4271-bdf0-6c3d548cef09@oss.qualcomm.com> (raw)
In-Reply-To: <20260908-subsys_initcall-v1-0-cbccf4cd4288@redhat.com>
On 9/8/2026 11:17 PM, Brian Masney wrote:
> There are a fair number of clk drivers that are registered at the
> subsys_initcall level since some clk drivers need to be initialized
> early for other drivers. Let's add a new macro
> subsys_platform_driver() similar module_platform_driver() to eliminate
> some boilerplate code in the drivers.
>
> This series converts the Qualcomm and Renesas clk drivers to show the
> code savings that can be achieved. Once this lands, I'll convert the
> remaining clk drivers this development cycle if all of this can go
> through the clk tree.
>
> Outside of drivers/clk, there are 364 drivers that use subsys_initcall
> and I am willing to convert those as well starting the next development
> cycle once this lands in Linus's tree.
>
> Signed-off-by: Brian Masney <bmasney@redhat.com>
> ---
> Brian Masney (4):
> driver: core: add subsys_driver() macro
> driver: core: platform: add subsys_platform_driver() macro
> clk: qcom: convert drivers over to use subsys_platform_driver()
> clk: renesas: convert drivers over to use subsys_platform_driver()
>
> drivers/clk/qcom/dispcc-x1e80100.c | 12 +-----------
> drivers/clk/qcom/gcc-eliza.c | 12 +-----------
> drivers/clk/qcom/gcc-glymur.c | 12 +-----------
Tested on Glymur-CRD
Tested-by: Pankaj Patil <pankaj.patil@oss.qualcomm.com>
[...]
> drivers/clk/renesas/rzg2l-cpg.c | 7 +------
> drivers/clk/renesas/rzv2h-cpg.c | 7 +------
> include/linux/device/driver.h | 31 +++++++++++++++++++++++++++++++
> include/linux/platform_device.h | 30 ++++++++++++++++++++++++++++++
> 48 files changed, 107 insertions(+), 487 deletions(-)
> ---
> base-commit: 944a035ecca915ae947905dcfb03f2b9dc6d032c
> change-id: 20260908-subsys_initcall-05dfd5fb0f04
>
> Best regards,
> --
> Brian Masney <bmasney@redhat.com>
>
>
next prev parent reply other threads:[~2026-09-09 14:40 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-08 17:47 [PATCH 0/4] driver: core: add subsys_platform_driver() to reduce boilerplate code in drivers Brian Masney
2026-09-08 17:47 ` [PATCH 1/4] driver: core: add subsys_driver() macro Brian Masney
2026-09-08 17:58 ` sashiko-bot
2026-09-08 18:19 ` Brian Masney
2026-09-09 7:49 ` Geert Uytterhoeven
2026-09-09 11:44 ` Abel Vesa
2026-09-09 15:14 ` Geert Uytterhoeven
2026-09-08 17:47 ` [PATCH 2/4] driver: core: platform: add subsys_platform_driver() macro Brian Masney
2026-09-09 11:44 ` Abel Vesa
2026-09-09 15:16 ` Geert Uytterhoeven
2026-09-08 17:47 ` [PATCH 3/4] clk: qcom: convert drivers over to use subsys_platform_driver() Brian Masney
2026-09-09 11:25 ` Konrad Dybcio
2026-09-09 11:45 ` Abel Vesa
2026-09-09 12:10 ` Brian Masney
2026-09-08 17:47 ` [PATCH 4/4] clk: renesas: " Brian Masney
2026-09-08 18:09 ` sashiko-bot
2026-09-09 15:19 ` Geert Uytterhoeven
2026-09-09 14:40 ` Pankaj Patil [this message]
2026-09-18 1:49 ` [PATCH 0/4] driver: core: add subsys_platform_driver() to reduce boilerplate code in drivers Bjorn Andersson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b01a3558-9107-4271-bdf0-6c3d548cef09@oss.qualcomm.com \
--to=pankaj.patil@oss.qualcomm.com \
--cc=andersson@kernel.org \
--cc=bmasney@redhat.com \
--cc=dakr@kernel.org \
--cc=driver-core@lists.linux.dev \
--cc=geert+renesas@glider.be \
--cc=gregkh@linuxfoundation.org \
--cc=jbrunet+clk@baylibre.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=rafael@kernel.org \
--cc=sboyd@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.