lkml.org 
[lkml]   [2019]   [Apr]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v3 0/7] Rewrite clk parent handling
Date
There are a couple warts with clk parent handling in the common clk
framework. This patch series addresses one of those warts, parent-child
linkages. We use strings for all parent-child linkages, and this leads
to poorly written code that extracts clk names from struct clk pointers
and makes clk provider drivers use clk consumer APIs. I've converted the
fixed factor clk and I'm looking at converting users of other "basic"
clk types in follow-up patches so we can start moving drivers away from
string matching in the clk namespace.

Changes from v2:
* Dropped patches that got merged into v5.1-rc1
* Introduced a new function of_clk_hw_register()
* Introduced 'index' into clk_parent_data structure
* Converted fixed-factor basic type to new design
* Fixed some bugs in a recent patch to clkdev, leading to
an essential API for clkdev based lookups working

Changes from v1:
* Dropped new get_parent_hw, we'll pick it up in a later series
* Rebased to v5.0-rc6 to avoid conflicts with clk-fixes
* Renamed 'fallback' to 'name' and 'name' to 'fw_name' in parent map
* Made sure that clk_hw_get_parent_by_index() never sees an error pointer
so that we don't mistakenly try to defer an error pointer
* Fixed index passing mistake on of_clk_get_hw_from_clkspec()
* Copy over all the data from parent maps and free it correctly too

Stephen Boyd (7):
clkdev: Hold clocks_mutex while iterating clocks list
clk: Prepare for clk registration API that uses DT nodes
clk: Add of_clk_hw_register() API for early clk drivers
clk: Allow parents to be specified without string names
clk: Look for parents with clkdev based clk_lookups
clk: Allow parents to be specified via clkspec index
clk: fixed-factor: Let clk framework find parent

Cc: Miquel Raynal <miquel.raynal@bootlin.com>
Cc: Jerome Brunet <jbrunet@baylibre.com>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Jeffrey Hugo <jhugo@codeaurora.org>
Cc: Chen-Yu Tsai <wens@csie.org>
Cc: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>

drivers/clk/clk-fixed-factor.c | 53 ++++--
drivers/clk/clk.c | 326 +++++++++++++++++++++++++--------
drivers/clk/clk.h | 2 +
drivers/clk/clkdev.c | 38 ++--
include/linux/clk-provider.h | 22 +++
5 files changed, 334 insertions(+), 107 deletions(-)


base-commit: 9e98c678c2d6ae3a17cb2de55d17f69dddaa231b
--
Sent by a computer through tubes

\
 
 \ /
  Last update: 2019-04-04 23:54    [W:0.123 / U:22.920 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site