From: Jeffrey Hugo <jhugo@codeaurora.org>
To: Stephen Boyd <sboyd@kernel.org>,
Michael Turquette <mturquette@baylibre.com>
Cc: linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org,
Chen-Yu Tsai <wens@csie.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Jerome Brunet <jbrunet@baylibre.com>,
Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>,
Miquel Raynal <miquel.raynal@bootlin.com>,
Rob Herring <robh@kernel.org>,
Russell King <linux@armlinux.org.uk>
Subject: Re: [PATCH v4 0/9] Rewrite clk parent handling
Date: Mon, 15 Apr 2019 12:05:56 -0600 [thread overview]
Message-ID: <d7164804-7bee-de79-42b0-22b10cf96eaa@codeaurora.org> (raw)
In-Reply-To: <20190412183150.102131-1-sboyd@kernel.org>
On 4/12/2019 12:31 PM, Stephen Boyd wrote:
> 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 v3:
> * Split clkdev patch into two
> * New patch to let dev_of_node() accept NULL
> * Use dev_of_node() in of_clk_hw_register() to avoid NULL deref
>
> 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
>
> Cc: Chen-Yu Tsai <wens@csie.org>
> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> Cc: Jeffrey Hugo <jhugo@codeaurora.org>
> Cc: Jerome Brunet <jbrunet@baylibre.com>
> Cc: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
> Cc: Michael Turquette <mturquette@baylibre.com>
> Cc: Miquel Raynal <miquel.raynal@bootlin.com>
> Cc: Rob Herring <robh@kernel.org>
> Cc: Russell King <linux@armlinux.org.uk>
>
> Stephen Boyd (9):
> clkdev: Hold clocks_mutex while iterating clocks list
> clkdev: Move clk creation outside of 'clocks_mutex'
> clk: Prepare for clk registration API that uses DT nodes
> driver core: Let dev_of_node() accept a NULL dev
> 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
>
> drivers/clk/clk-fixed-factor.c | 53 ++++--
> drivers/clk/clk.c | 326 +++++++++++++++++++++++++--------
> drivers/clk/clk.h | 2 +
> drivers/clk/clkdev.c | 30 +--
> include/linux/clk-provider.h | 22 +++
> include/linux/device.h | 2 +-
> 6 files changed, 327 insertions(+), 108 deletions(-)
>
>
> base-commit: 9e98c678c2d6ae3a17cb2de55d17f69dddaa231b
>
Tested-by: Jeffrey Hugo <jhugo@codeaurora.org>
--
Jeffrey Hugo
Qualcomm Datacenter Technologies as an affiliate of Qualcomm
Technologies, Inc.
Qualcomm Technologies, Inc. is a member of the
Code Aurora Forum, a Linux Foundation Collaborative Project.
prev parent reply other threads:[~2019-04-15 18:06 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-12 18:31 [PATCH v4 0/9] Rewrite clk parent handling Stephen Boyd
2019-04-12 18:31 ` [PATCH v4 1/9] clkdev: Hold clocks_mutex while iterating clocks list Stephen Boyd
2019-04-15 5:22 ` Matti Vaittinen
2019-04-18 20:34 ` Stephen Boyd
2019-04-12 18:31 ` [PATCH v4 2/9] clkdev: Move clk creation outside of 'clocks_mutex' Stephen Boyd
2019-04-19 22:12 ` Stephen Boyd
2019-04-12 18:31 ` [PATCH v4 3/9] clk: Prepare for clk registration API that uses DT nodes Stephen Boyd
2019-04-19 22:12 ` Stephen Boyd
2019-04-12 18:31 ` [PATCH v4 4/9] driver core: Let dev_of_node() accept a NULL dev Stephen Boyd
2019-04-16 13:29 ` Greg Kroah-Hartman
2019-04-19 22:12 ` Stephen Boyd
2019-04-12 18:31 ` [PATCH v4 5/9] clk: Add of_clk_hw_register() API for early clk drivers Stephen Boyd
2019-04-19 22:12 ` Stephen Boyd
2019-04-12 18:31 ` [PATCH v4 6/9] clk: Allow parents to be specified without string names Stephen Boyd
2019-04-19 22:12 ` Stephen Boyd
2019-04-12 18:31 ` [PATCH v4 7/9] clk: Look for parents with clkdev based clk_lookups Stephen Boyd
2019-04-19 22:13 ` Stephen Boyd
2019-04-12 18:31 ` [PATCH v4 8/9] clk: Allow parents to be specified via clkspec index Stephen Boyd
2019-04-19 22:13 ` Stephen Boyd
2019-04-12 18:31 ` [PATCH v4 9/9] clk: fixed-factor: Let clk framework find parent Stephen Boyd
2019-04-19 22:13 ` Stephen Boyd
2019-04-23 18:09 ` Guenter Roeck
2019-04-23 18:22 ` Stephen Boyd
2019-04-23 19:26 ` Guenter Roeck
2019-04-15 18:05 ` Jeffrey Hugo [this message]
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=d7164804-7bee-de79-42b0-22b10cf96eaa@codeaurora.org \
--to=jhugo@codeaurora.org \
--cc=gregkh@linuxfoundation.org \
--cc=jbrunet@baylibre.com \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=matti.vaittinen@fi.rohmeurope.com \
--cc=miquel.raynal@bootlin.com \
--cc=mturquette@baylibre.com \
--cc=robh@kernel.org \
--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