mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Shawn Lin <shawn.lin@rock-chips.com>
To: Stephen Boyd <sboyd@codeaurora.org>,
	Michael Turquette <mturquette@baylibre.com>
Cc: linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org,
	Shawn Lin <shawn.lin@rock-chips.com>
Subject: [RFC PATCH 0/3] Support round phase stuff for clock driver
Date: Fri, 26 Feb 2016 13:08:10 +0800	[thread overview]
Message-ID: <1456463290-3581-1-git-send-email-shawn.lin@rock-chips.com> (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

             reply	other threads:[~2016-02-26  5:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-26  5:08 Shawn Lin [this message]
2016-02-26  5:08 ` [RFC PATCH 1/3] clk: add clk_round_phase support Shawn Lin
2016-02-26  5:08 ` [RFC PATCH 2/3] clk: add clk_hw_set_phase_range support Shawn Lin
2016-02-26  5:09 ` [RFC PATCH 3/3] Documentation: clk: Add clk phase callback comments Shawn Lin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1456463290-3581-1-git-send-email-shawn.lin@rock-chips.com \
    --to=shawn.lin@rock-chips.com \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=sboyd@codeaurora.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®