Skip to content

clk: Add a managed API and fix clock self-assignment

Lukasz Majewski u-boot 1 version New

Get series with b4
b4 am 20191020225525.27b103df@jawa

Versions newest first

  1. v1 Latest0 of 5 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 5 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [U-Boot] [PATCH v1 0/5] clk: Add a managed API and fix clock self-assignment

Hi Jean-Jacques,

Quoted 10 lines

This is the second of a few series, the goal of which is to facilitate porting drivers from the linux kernel. Most of the series will be about adding managed API to existing infrastructure (GPIO, reset, phy,...)

This particular series is about clocks. It adds a managed API, using the same API as linux. It also fix a use-case where the clock is initialized (rate and/or mux) when it is probed using the assigned-clocks-* properties.

This series when applied on newest -master branch causes build breaks (on for instance mips, bcm):

mips: + bcm968380gerg_ram

+drivers/mtd/nand/raw/built-in.o: In function `devm_clk_get':

+drivers/mtd/nand/raw/brcmnand/brcmnand_compat.c:7: multiple definition of `devm_clk_get'

Travis-CI result:
https://travis-ci.org/lmajewski/u-boot-dfu/jobs/600367698

The branch to reproduce:
https://github.com/lmajewski/u-boot-dfu/commits/testing

Quoted 10 lines

JJ

Jean-Jacques Hiblot (5):
drivers: clk: Handle gracefully NULL pointers
drivers: clk: Add a managed API to get clocks from the device-tree
test: clk: Update tests to also check the managed API
drivers: clk: Fix using assigned-clocks in the node of the clock it
sets up
test: clk: test clock self assignment

Quoted 10 lines
 arch/sandbox/dts/test.dts      |   8 +-
 arch/sandbox/include/asm/clk.h |  33 ++++++++
 drivers/clk/clk-uclass.c       | 139
++++++++++++++++++++++++++++++--- drivers/clk/clk_sandbox.c      |
56 +++++++++++++ drivers/clk/clk_sandbox_test.c |  66 +++++++++++++---
 drivers/core/device.c          |   2 +-
 include/clk.h                  |  53 ++++++++++++-
 test/dm/clk.c                  |  36 ++++++++-
 8 files changed, 364 insertions(+), 29 deletions(-)

Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma at denx.de -------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20191020/3e9b5f6b/attachment.sig>