public inbox for linux-clk@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Convert clk-fixed into module platform driver
@ 2016-06-20 13:43 Ricardo Ribalda Delgado
  2016-06-20 13:43 ` [PATCH v2 1/3] clk: Add new function of_clk_is_provider() Ricardo Ribalda Delgado
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Ricardo Ribalda Delgado @ 2016-06-20 13:43 UTC (permalink / raw)
  To: Stephen Boyd, Michael Turquette, s.hauer, jeremy.kerr, linux-clk,
	linux-kernel
  Cc: Ricardo Ribalda Delgado

When clock providers are added to the device tree after of_clk_init is called
they are not added to the clock provider list. This makes that drivers such
as i2c-xiic.c fail to init, as they may depend on the unadded clock provider.

We first introduce a new function clk.c that will check if a device_node is
already a clock provider or not.

Later we add two patches, one for clk-fixed-factor and another to
clk-fixed-rate that make us of that function and also convert both drivers
to module platform driver, but keeping all the previous functionality intact.

v2: Changes proposed by: Stephen Boyd <sboyd@codeaurora.org>
-Add error check
-CodeStyle on of_device_ide
-Use builtin_platform_driver()

Ricardo Ribalda Delgado (3):
  clk: Add new function of_clk_is_provider()
  clk: fixed-factor: Convert into a module platform driver
  clk: fixed-rate: Convert into a module platform driver

 drivers/clk/clk-fixed-factor.c | 75 +++++++++++++++++++++++++++++++++++++++---
 drivers/clk/clk-fixed-rate.c   | 71 ++++++++++++++++++++++++++++++++++++---
 drivers/clk/clk.c              | 20 +++++++++++
 include/linux/clk-provider.h   |  5 +++
 4 files changed, 162 insertions(+), 9 deletions(-)

-- 
2.8.1

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

end of thread, other threads:[~2016-06-20 13:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-20 13:43 [PATCH v2 0/3] Convert clk-fixed into module platform driver Ricardo Ribalda Delgado
2016-06-20 13:43 ` [PATCH v2 1/3] clk: Add new function of_clk_is_provider() Ricardo Ribalda Delgado
2016-06-20 13:43 ` [PATCH v2 2/3] clk: fixed-factor: Convert into a module platform driver Ricardo Ribalda Delgado
2016-06-20 13:43 ` [PATCH v2 3/3] clk: fixed-rate: " Ricardo Ribalda Delgado

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