linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] Implement devm_of_clk_add_provider
@ 2018-11-01 14:40 Ricardo Ribalda Delgado
  2018-11-01 14:40 ` [PATCH 1/5] clk: Refactor of_clk_add_provider and of_clk_add_hw_provider Ricardo Ribalda Delgado
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Ricardo Ribalda Delgado @ 2018-11-01 14:40 UTC (permalink / raw)
  To: Stephen Boyd, Alan Tull, linux-clk, linux-kernel; +Cc: Ricardo Ribalda Delgado

All Tull reported that there might be a great ammount of drivers with
imbalance on clk_add_provider. This is an issue for Device tree overlays
(and also a bug) https://lkml.org/lkml/2018/10/18/1103

This patchset implement a devm_ function of of_clk_add_provider, and
fixes 3 drivers.

Drivers like clk-gpio will be easily fixed with coccinelle if this set
is accepted. (I volunteer, I want to learn how to use it, just seen the
great presentations from Julia).

Ricardo Ribalda Delgado (5):
  clk: Refactor of_clk_add_provider and of_clk_add_hw_provider
  clk: Create devm_of_clk_add_provider
  clk: fixed-factor: Use devm_of_clk_add_provider
  clk: fixed-rate: Use devm_of_clk_add_provider
  clk: gpio: Use devm_of_clk_add_provider

 Documentation/driver-model/devres.txt |  1 +
 drivers/clk/clk-fixed-factor.c        | 14 ++++--
 drivers/clk/clk-fixed-rate.c          | 16 +++---
 drivers/clk/clk-gpio.c                |  2 +-
 drivers/clk/clk.c                     | 72 +++++++++++++++------------
 include/linux/clk-provider.h          | 11 ++++
 6 files changed, 73 insertions(+), 43 deletions(-)

-- 
2.19.1


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

end of thread, other threads:[~2018-11-02 16:05 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-01 14:40 [PATCH 0/5] Implement devm_of_clk_add_provider Ricardo Ribalda Delgado
2018-11-01 14:40 ` [PATCH 1/5] clk: Refactor of_clk_add_provider and of_clk_add_hw_provider Ricardo Ribalda Delgado
2018-11-01 14:40 ` [PATCH 2/5] clk: Create devm_of_clk_add_provider Ricardo Ribalda Delgado
2018-11-01 14:40 ` [PATCH 3/5] clk: fixed-factor: Use devm_of_clk_add_provider Ricardo Ribalda Delgado
2018-11-01 14:40 ` [PATCH 4/5] clk: fixed-rate: " Ricardo Ribalda Delgado
2018-11-01 14:40 ` [PATCH 5/5] clk: gpio: " Ricardo Ribalda Delgado
2018-11-01 23:35 ` [PATCH 0/5] Implement devm_of_clk_add_provider Stephen Boyd
2018-11-02  6:54   ` Ricardo Ribalda Delgado
2018-11-02 16:05     ` Stephen Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).