[lkml]   [2018]   [Aug]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[PATCH V6 0/4] clk: new APIs to handle all available clocks
This patch series is a continue of discussion from here,
that some users may want to handle all available clocks from device
tree without need to know the detailed clock information likes clock
numbers and names. This is useful in writing some generic drivers to
handle clock part.

This patch series is tested on MX6Q SDB cpufreq driver with a minor change
to switch to use clk_bulk_get_all.
But patch 4 only test compiling. Hopefully someone could help test
the function.

* improve 'devres->clks = *clks' according to Stephen's suggestion
* address all comments from Stephen
* fix build warnings on other architectures.
* add clk_bulk_{get|put}_all() which only supports DT platform currently
* remove _all variants and the wrapper struct clk_bulk
* make of_clk_bulk_get and of_clk_bulk_get_all private until someone
proves they need it because they don't have a struct device pointer.

Dong Aisheng (4):
clk: bulk: add of_clk_bulk_get()
clk: add new APIs to operate on all available clocks
clk: add managed version of clk_bulk_get_all
video: simplefb: switch to use clk_bulk API to simplify clock

drivers/clk/clk-bulk.c | 80 ++++++++++++++++++++++++++++++++++++++++++
drivers/clk/clk-devres.c | 24 +++++++++++++
drivers/video/fbdev/simplefb.c | 72 ++++++++++---------------------------
include/linux/clk.h | 65 +++++++++++++++++++++++++++++++++-
4 files changed, 186 insertions(+), 55 deletions(-)


 \ /
  Last update: 2018-08-31 06:51    [W:0.175 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site