public inbox for linux-clk@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] Renesas r9a06g032 clock table improvements
@ 2023-03-01 21:55 Ralph Siemsen
  2023-03-01 21:55 ` [PATCH v2 1/4] clk: renesas: r9a06g032: improve readability Ralph Siemsen
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Ralph Siemsen @ 2023-03-01 21:55 UTC (permalink / raw)
  To: linux-renesas-soc, linux-clk
  Cc: Stephen Boyd, Miquèl Raynal, Michael Turquette,
	Geert Uytterhoeven, Ralph Siemsen

This patch series makes several mostly-cosmetic changes to improve the clock
tables for the r9a06g032 (RZ/N1). They could all be squashed into a single
commit, though I kept them separate to make review easier.

The motivation for this change is to make the register/bit numbers more
explicit in the clock tables. With the existing format, these values are packed
into a u16 value, which is difficult to understand. After this patch, the
memory format remains the same, but the tables now list the register and bit
numbers explicitly. The logic which accesses these has also been made a
bit simpler to understand.

Changes in v2:
- Address reviewer comments
- Replace register shifts with multiply/divide
- Unify the reg access in clk_rdesc_{get,set}
- Restore the WARN_ON() check for clock gate
- Swap field order in struct regbit, to exactly match the u16 values

Ralph Siemsen (4):
  clk: renesas: r9a06g032: improve readability
  clk: renesas: r9a06g032: drop unused fields
  clk: renesas: r9a06g032: document structs
  clk: renesas: r9a06g032: improve clock tables

 drivers/clk/renesas/r9a06g032-clocks.c | 736 ++++++++++++++++++-------
 1 file changed, 541 insertions(+), 195 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-03-10 13:57 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-01 21:55 [PATCH v2 0/4] Renesas r9a06g032 clock table improvements Ralph Siemsen
2023-03-01 21:55 ` [PATCH v2 1/4] clk: renesas: r9a06g032: improve readability Ralph Siemsen
2023-03-10 13:54   ` Geert Uytterhoeven
2023-03-01 21:55 ` [PATCH v2 2/4] clk: renesas: r9a06g032: drop unused fields Ralph Siemsen
2023-03-10 13:54   ` Geert Uytterhoeven
2023-03-01 21:55 ` [PATCH v2 3/4] clk: renesas: r9a06g032: document structs Ralph Siemsen
2023-03-02  8:23   ` Miquel Raynal
2023-03-10 13:55   ` Geert Uytterhoeven
2023-03-01 21:55 ` [PATCH v2 4/4] clk: renesas: r9a06g032: improve clock tables Ralph Siemsen
2023-03-02  8:23   ` Miquel Raynal
2023-03-10 13:56   ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox