public inbox for linux-sunxi@lists.linux.dev
 help / color / mirror / Atom feed
From: Samuel Holland <samuel@sholland.org>
To: Maxime Ripard <mripard@kernel.org>, Chen-Yu Tsai <wens@csie.org>,
	Jernej Skrabec <jernej.skrabec@gmail.com>,
	linux-sunxi@lists.linux.dev
Cc: Michael Turquette <mturquette@baylibre.com>,
	linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	Stephen Boyd <sboyd@kernel.org>,
	linux-kernel@vger.kernel.org,
	Samuel Holland <samuel@sholland.org>
Subject: [PATCH v3 0/4] clk: sunxi-ng: Module support
Date: Thu, 18 Nov 2021 21:33:33 -0600	[thread overview]
Message-ID: <20211119033338.25486-1-samuel@sholland.org> (raw)

This series allows the CCU core and drivers to be loaded/unloaded as
modules. As part of this, patch 3 converts most of the early OF clock
providers to platform drivers.

Changes in v3:
 - Also export helper functions.

Changes in v2:
 - Export symbols to the SUNXI_CCU namespace.

Changes in v1:
 - Patches 1-3 of 8 were merged.
 - Name modules using Makefile logic, not by renaming the source files.
   (Drop patch 4 of 8.)

Samuel Holland (4):
  clk: sunxi-ng: Export symbols used by CCU drivers
  clk: sunxi-ng: Allow drivers to be built as modules
  clk: sunxi-ng: Convert early providers to platform drivers
  clk: sunxi-ng: Allow the CCU core to be built as a module

 drivers/clk/Makefile                     |  2 +-
 drivers/clk/sunxi-ng/Kconfig             | 39 +++++-----
 drivers/clk/sunxi-ng/Makefile            | 97 +++++++++++++++---------
 drivers/clk/sunxi-ng/ccu-sun4i-a10.c     | 58 ++++++++------
 drivers/clk/sunxi-ng/ccu-sun50i-a100-r.c |  4 +-
 drivers/clk/sunxi-ng/ccu-sun50i-a100.c   |  4 +-
 drivers/clk/sunxi-ng/ccu-sun50i-a64.c    |  7 +-
 drivers/clk/sunxi-ng/ccu-sun50i-h6-r.c   | 56 +++++++++-----
 drivers/clk/sunxi-ng/ccu-sun50i-h6.c     |  7 +-
 drivers/clk/sunxi-ng/ccu-sun50i-h616.c   | 33 +++++---
 drivers/clk/sunxi-ng/ccu-sun6i-a31.c     | 40 +++++++---
 drivers/clk/sunxi-ng/ccu-sun8i-a23.c     | 35 ++++++---
 drivers/clk/sunxi-ng/ccu-sun8i-a33.c     | 40 +++++++---
 drivers/clk/sunxi-ng/ccu-sun8i-a83t.c    |  7 +-
 drivers/clk/sunxi-ng/ccu-sun8i-de2.c     |  9 ++-
 drivers/clk/sunxi-ng/ccu-sun8i-h3.c      | 62 ++++++++++-----
 drivers/clk/sunxi-ng/ccu-sun8i-r.c       | 65 +++++++++-------
 drivers/clk/sunxi-ng/ccu-sun8i-r40.c     |  6 +-
 drivers/clk/sunxi-ng/ccu-sun8i-v3s.c     | 57 ++++++++------
 drivers/clk/sunxi-ng/ccu-sun9i-a80-de.c  |  7 +-
 drivers/clk/sunxi-ng/ccu-sun9i-a80-usb.c |  7 +-
 drivers/clk/sunxi-ng/ccu-sun9i-a80.c     |  7 +-
 drivers/clk/sunxi-ng/ccu-suniv-f1c100s.c | 38 +++++++---
 drivers/clk/sunxi-ng/ccu_common.c        |  6 ++
 drivers/clk/sunxi-ng/ccu_div.c           |  1 +
 drivers/clk/sunxi-ng/ccu_frac.c          |  6 ++
 drivers/clk/sunxi-ng/ccu_gate.c          |  4 +
 drivers/clk/sunxi-ng/ccu_mp.c            |  2 +
 drivers/clk/sunxi-ng/ccu_mult.c          |  1 +
 drivers/clk/sunxi-ng/ccu_mux.c           |  6 ++
 drivers/clk/sunxi-ng/ccu_nk.c            |  1 +
 drivers/clk/sunxi-ng/ccu_nkm.c           |  1 +
 drivers/clk/sunxi-ng/ccu_nkmp.c          |  1 +
 drivers/clk/sunxi-ng/ccu_nm.c            |  1 +
 drivers/clk/sunxi-ng/ccu_phase.c         |  1 +
 drivers/clk/sunxi-ng/ccu_reset.c         |  1 +
 drivers/clk/sunxi-ng/ccu_sdm.c           |  6 ++
 drivers/mmc/host/Kconfig                 |  1 +
 include/linux/clk/sunxi-ng.h             | 15 ----
 39 files changed, 490 insertions(+), 251 deletions(-)

-- 
2.32.0


             reply	other threads:[~2021-11-19  3:33 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-19  3:33 Samuel Holland [this message]
2021-11-19  3:33 ` [PATCH v3 1/4] clk: sunxi-ng: Export symbols used by CCU drivers Samuel Holland
2021-11-19  3:33 ` [PATCH v3 2/4] clk: sunxi-ng: Allow drivers to be built as modules Samuel Holland
2021-11-19  3:33 ` [PATCH v3 3/4] clk: sunxi-ng: Convert early providers to platform drivers Samuel Holland
2023-06-26 12:21   ` Måns Rullgård
2023-06-28  7:44     ` Maxime Ripard
2023-06-28 11:07       ` Måns Rullgård
2023-06-28 11:41         ` Maxime Ripard
2023-06-28 18:33           ` Måns Rullgård
2023-06-30 14:17             ` Maxime Ripard
2023-06-30 17:03               ` Måns Rullgård
2021-11-19  3:33 ` [PATCH v3 4/4] clk: sunxi-ng: Allow the CCU core to be built as a module Samuel Holland
2021-11-22  9:06 ` [PATCH v3 0/4] clk: sunxi-ng: Module support Maxime Ripard

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=20211119033338.25486-1-samuel@sholland.org \
    --to=samuel@sholland.org \
    --cc=jernej.skrabec@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sunxi@lists.linux.dev \
    --cc=mripard@kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=sboyd@kernel.org \
    --cc=wens@csie.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox