linux-clk.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] clk: Support ROHM BD71837 (BD71847)
@ 2018-08-30 12:13 Matti Vaittinen
  2018-08-30 12:14 ` [PATCH 1/2] clk: clkdev/of_clk - add managed lookup and provider registrations Matti Vaittinen
  2018-08-30 12:15 ` [PATCH 2/2] clk: bd718x7: Initial support for ROHM bd71837/bd71847 PMIC clock Matti Vaittinen
  0 siblings, 2 replies; 10+ messages in thread
From: Matti Vaittinen @ 2018-08-30 12:13 UTC (permalink / raw)
  To: corbet, mturquette, sboyd, linux, andrew.smirnov, robh, sre,
	linux, sjhuang, matti.vaittinen, mazziesaccount
  Cc: linux-doc, linux-kernel, linux-clk, linux-arm-kernel,
	heikki.haikola, mikko.mutanen

This patch series adds support for clk gate included in ROHM BD71837
(and BD71847) Power Management ICs. Additionally patch series adds support
for new managed interfaces for clkdev lookup and parent_of_provider
registrations.

Please note that the patch has not been tested on BD71847 - I will
verify the BD71847 part and do appropriate documentation/naming changes
after verification. Hence only BD71837 support is announced here even
though the BD71847 should be identical what comes to clk registers.

BD71837 driver in the patch series depends on defines submitted as part of
this patch set:
https://lore.kernel.org/lkml/cover.1535545377.git.matti.vaittinen@fi.rohmeurope.com/

The managed interfaces are continuation of discussion started here:
https://lore.kernel.org/lkml/20180730125550.GD8862@localhost.localdomain/
Difference to previous patch:
 - dropped devm_clk_register_clkdev
 - added new interfaces to Documentation/driver-model/devres.txt
 - did not rename __clk_register_clkdev
 - simplified IS_ERR - checks/code dublication by dropping checks from
   devm_clk_hw_register_clkdev.
   As negative point is this causes devres_alloc to be done before checking
   for IS_ERR(hw) inside do_clk_register_clkdev.

and BD71837 driver is continuation for patch discussion started here:
https://lore.kernel.org/lkml/d99c8762b0fbbcb18ec4f4d104191364c0ea798c.1528117485.git.matti.vaittinen@fi.rohmeurope.com/
Difference to previous patch:
 - Simply fail out if no parent clock is found from DT. This simplifies
   driver a lot and encourages proper clk tree modelling in DT.

patch series is based on linux-next tag next-20180823

Patch 1:
	Add new managed interfaces
Patch 2:
	Support BD71837

Matti Vaittinen (2):
  clk: clkdev/of_clk - add managed lookup and provider registrations
  clk: bd718x7: Initial support for ROHM bd71837/bd71847 PMIC clock

 Documentation/driver-model/devres.txt |   3 +
 drivers/clk/Kconfig                   |   6 ++
 drivers/clk/Makefile                  |   1 +
 drivers/clk/clk-bd718x7.c             | 131 ++++++++++++++++++++++++++++++++++
 drivers/clk/clk.c                     |  28 ++++++--
 drivers/clk/clkdev.c                  | 122 ++++++++++++++++++++++++-------
 include/linux/clk-provider.h          |   4 ++
 include/linux/clkdev.h                |   4 ++
 8 files changed, 267 insertions(+), 32 deletions(-)
 create mode 100644 drivers/clk/clk-bd718x7.c

-- 
2.14.3

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

end of thread, other threads:[~2018-11-13  5:58 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-30 12:13 [PATCH 0/2] clk: Support ROHM BD71837 (BD71847) Matti Vaittinen
2018-08-30 12:14 ` [PATCH 1/2] clk: clkdev/of_clk - add managed lookup and provider registrations Matti Vaittinen
2018-08-30 12:15 ` [PATCH 2/2] clk: bd718x7: Initial support for ROHM bd71837/bd71847 PMIC clock Matti Vaittinen
2018-08-31  1:18   ` kbuild test robot
2018-08-31 10:21     ` Matti Vaittinen
2018-09-01 19:13       ` Stephen Boyd
2018-09-03  6:38         ` Matti Vaittinen
2018-11-12  7:45           ` Matti Vaittinen
2018-11-13  5:58             ` Stephen Boyd
2018-09-01  3:57   ` kbuild test robot

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).