mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Brian Masney <masneyb@kernel.org>
To: Rosen Penev <rosenp@gmail.com>
Cc: linux-mips@vger.kernel.org,
	Thomas Bogendoerfer <tsbogend@alpha.franken.de>,
	Stephen Boyd <sboyd@kernel.org>,
	Brian Masney <bmasney+clk@redhat.com>,
	Jerome Brunet <jbrunet+clk@baylibre.com>,
	Alban Bedel <albeu@free.fr>,
	Antony Pavlov <antonynpavlov@gmail.com>,
	open list <linux-kernel@vger.kernel.org>,
	"open list:COMMON CLK FRAMEWORK" <linux-clk@vger.kernel.org>
Subject: Re: [PATCH 3/8] clk: ath79: move the ath79 clock driver to drivers/clk
Date: Mon, 9 Nov 2026 19:56:08 -0500	[thread overview]
Message-ID: <avJrqNyhqZiVZQ7f@x1g10> (raw)
In-Reply-To: <20261104055852.152340-4-rosenp@gmail.com>

Hi Rosen,

On Tue, Nov 03, 2026 at 09:58:47PM -0800, Rosen Penev wrote:
> The ath79 PLL clock code only uses the clk API and its own PLL and SRIF
> registers now, so move it from arch/mips/ath79 to drivers/clk, like
> the Ralink clocks before it. Copy the register definitions it uses
> from asm/mach-ath79/ar71xx_regs.h into the driver, so it no longer
> needs the mach headers, and drop the unused ath79.h and common.h.
> 
> The driver stays a CLK_OF_DECLARE one, as the MIPS timer needs the CPU
> clock from plat_time_init(). COMMON_CLK_ATH79 defaults to ATH79.
> 
> Signed-off-by: Rosen Penev <rosenp@gmail.com>

This patch itself looks straight forward, however looking at the
original driver it needs a lot of work to be cleaned up. To make it
easier to review, I suggest that you clean up the driver all in one go,
and post it as a brand new version to drivers/clk.

Also for the CLK_OF_DECLARE, we are trying to limit new drivers that use
this. Please have just the timer clock(s) declared with CLK_OF_DECLARE,
and have all of the others as a standard platform driver.

Brian


  reply	other threads:[~2026-11-10  0:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-04  5:58 [PATCH 0/8] clk: ath79: move the PLL " Rosen Penev
2026-11-04  5:58 ` [PATCH 1/8] MIPS: ath79: apply the QCA956x timer workaround in setup Rosen Penev
2026-11-04  5:58 ` [PATCH 2/8] MIPS: ath79: move the bootstrap reference clock to setup Rosen Penev
2026-11-04  5:58 ` [PATCH 3/8] clk: ath79: move the ath79 clock driver to drivers/clk Rosen Penev
2026-11-10  0:56   ` Brian Masney [this message]
2026-11-04  5:58 ` [PATCH 4/8] clk: ath79: use FIELD_GET() for the PLL register fields Rosen Penev
2026-11-04  5:58 ` [PATCH 5/8] clk: ath79: convert to clk_hw based registration Rosen Penev
2026-11-04  5:58 ` [PATCH 6/8] clk: ath79: fix the error handling Rosen Penev
2026-11-04  5:58 ` [PATCH 7/8] clk: ath79: give each compatible its own init function Rosen Penev
2026-11-04  5:58 ` [PATCH 8/8] clk: ath79: share the fractional PLL calculation Rosen Penev

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=avJrqNyhqZiVZQ7f@x1g10 \
    --to=masneyb@kernel.org \
    --cc=albeu@free.fr \
    --cc=antonynpavlov@gmail.com \
    --cc=bmasney+clk@redhat.com \
    --cc=jbrunet+clk@baylibre.com \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=rosenp@gmail.com \
    --cc=sboyd@kernel.org \
    --cc=tsbogend@alpha.franken.de \
    /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

all inboxes | Powered by JetHome®