Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1343784

[RFC PATCH 0/3] Support round phase stuff for clock driver

Path csiph.com!aioe.org!news.servidellagleba.it!bofh.it!news.nic.it!robomod
From Shawn Lin <shawn.lin@rock-chips.com>
Newsgroups linux.kernel
Subject [RFC PATCH 0/3] Support round phase stuff for clock driver
Date Fri, 26 Feb 2016 06:20:01 +0100
Message-ID <r6iYN-6Mo-3@gated-at.bofh.it> (permalink)
X-Original-To Stephen Boyd <sboyd@codeaurora.org>, Michael Turquette <mturquette@baylibre.com>
X-263anti-Spam KSV:0;
X-Mail-Gray 1
X-Abs-Checked 4
X-Rl-Sender shawn.lin@rock-chips.com
X-Fst-To sboyd@codeaurora.org
X-Sender-IP 58.22.7.114
X-Login-Name shawn.lin@rock-chips.com
X-Unique-Tag <9f4eb784385c30003a020c6671087203>
X-Sender lintao@rock-chips.com
X-Mailer git-send-email 1.8.0
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 32
Organization linux.* mail to news gateway
X-Original-Cc linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Shawn Lin <shawn.lin@rock-chips.com>
X-Original-Date Fri, 26 Feb 2016 13:08:10 +0800
X-Original-Message-ID <1456463290-3581-1-git-send-email-shawn.lin@rock-chips.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1343784

Show key headers only | View raw


clk_set_phase is probably most used for sample tuning stuff, and
the caller will check whether finding a good degree or not to decide
how to implement the algorithm for catching the best sample window. Not
all of the phases are supportted by clock phase generator. So the drivers
which call clk_set_phase may result in setting the phase which is not
requestted, which will fininally makes the tuning result different.
Especially for the cross-platform drivers, they can be used for different
Socs, so it must care the actual phase supported by different clock phase
generators.

This RFC patchset introduces new API for phase stuff which parallels rate stuff
to meet the requirement.

Based on tag of v4.5-rc5
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git



Shawn Lin (3):
  clk: add clk_round_phase support
  clk: add clk_hw_set_phase_range support
  Documentation: clk: Add clk phase callback comments

 Documentation/clk.txt        |   5 ++
 drivers/clk/clk.c            | 147 ++++++++++++++++++++++++++++++++++++++++---
 include/linux/clk-provider.h |  23 ++++++-
 include/linux/clk.h          |  23 +++++++
 4 files changed, 187 insertions(+), 11 deletions(-)

-- 
2.3.7

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[RFC PATCH 0/3] Support round phase stuff for clock driver Shawn Lin <shawn.lin@rock-chips.com> - 2016-02-26 06:20 +0100

csiph-web