public inbox for linux-arm-kernel@lists.infradead.org 
 help / color / mirror / Atom feed
From: Stephen Boyd <sboyd@kernel•org>
To: Frank Oltmanns <frank@oltmanns•dev>
Cc: Michael Turquette <mturquette@baylibre•com>,
	kernel test robot <lkp@intel•com>,
	oe-kbuild-all@lists•linux.dev, A.s. Dong <aisheng.dong@nxp•com>,
	Abel Vesa <abelvesa@kernel•org>,
	Fabio Estevam <festevam@gmail•com>,
	linux-arm-kernel@lists•infradead.org, linux-clk@vger•kernel.org,
	linux-kernel@vger•kernel.org, NXP Linux Team <linux-imx@nxp•com>,
	Peng Fan <peng.fan@nxp•com>,
	Pengutronix Kernel Team <kernel@pengutronix•de>,
	Sascha Hauer <s.hauer@pengutronix•de>,
	Shawn Guo <shawnguo@kernel•org>
Subject: Re: [PATCH v2 2/2] clk: tests: Add tests for fractional divisor approximation
Date: Fri, 16 Jun 2023 12:33:51 -0700	[thread overview]
Message-ID: <dab61757f0c33453ad19857350117c62.sboyd@kernel.org> (raw)
In-Reply-To: <875y7ps3tq.fsf@oltmanns.dev>

Quoting Frank Oltmanns (2023-06-14 22:16:17)
> Hi Stephen,
> 
> On 2023-06-14 at 13:02:24 -0700, Stephen Boyd <sboyd@kernel•org> wrote:
> > Quoting Frank Oltmanns (2023-06-14 01:19:37)
> >> Hi,
> >>
> >> On 2023-06-13 at 20:48:21 +0800, kernel test robot <lkp@intel•com> wrote:
> >> Can someone more knowlegdable than me please confirm if my understanding
> >> is correct?
> >
> > Export the symbol.
> 
> Ok. I can do that. Please note that I had already submitted a V3 [1],
> that went the way of using clk_fractional_divider_ops.round_rate. I
> apologize for not waiting for your feedback prior to submission. It
> won't happen again.
> 
> I liked the approach of calling clk_fd_round_rate directly via the ops,
> because it might allow me to test the other ops as well using the same
> blueprint. Of course, I will not add test cases, if you don't want it.
> (Calling clk_fd_round_rate also had the side effect of teaching me, that
> fd clocks expect the fraction to be less than or equal to 1.)
> 
> I don't want to waste your time, but if you could maybe have a chance to
> look at the approach I took in V3 and tell me if you still want me to
> export the symbol instead, that would be really helpful. I'll follow
> your preference.
> 
> If I don't hear back until the weekend, I will treat your three words
> above as your preference and prepare a V4 that goes back to calling
> clk_fractional_divider_general_approximation directly.
> 

Just call the API directly. That narrows the test to exactly what we
want to test. If you export the API it will make the rockchip folks
happy too[1]. We of course need to make sure that the registration API
works as well and actually uses the widths that are passed in, but it
doesn't need to fully exercise the approximation algorithm.

[1] https://lore.kernel.org/r/20230601095512.18029-1-zhangqing@rock-chips.com

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists•infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2023-06-16 19:34 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-13  8:36 [PATCH v2 0/2] clk: fractional-divider: Improve approximation when zero based Frank Oltmanns
2023-06-13  8:36 ` [PATCH v2 1/2] " Frank Oltmanns
2023-06-13  8:36 ` [PATCH v2 2/2] clk: tests: Add tests for fractional divisor approximation Frank Oltmanns
2023-06-13  8:49   ` Frank Oltmanns
2023-06-13 12:48   ` kernel test robot
2023-06-14  8:19     ` Frank Oltmanns
2023-06-14 20:02       ` Stephen Boyd
2023-06-15  5:16         ` Frank Oltmanns
2023-06-16 19:33           ` Stephen Boyd [this message]
2023-06-17 16:47             ` Frank Oltmanns
2023-06-13 19:42   ` Stephen Boyd
2023-06-14  6:51     ` Frank Oltmanns
2023-06-14 20:42       ` Stephen Boyd

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=dab61757f0c33453ad19857350117c62.sboyd@kernel.org \
    --to=sboyd@kernel$(echo .)org \
    --cc=abelvesa@kernel$(echo .)org \
    --cc=aisheng.dong@nxp$(echo .)com \
    --cc=festevam@gmail$(echo .)com \
    --cc=frank@oltmanns$(echo .)dev \
    --cc=kernel@pengutronix$(echo .)de \
    --cc=linux-arm-kernel@lists$(echo .)infradead.org \
    --cc=linux-clk@vger$(echo .)kernel.org \
    --cc=linux-imx@nxp$(echo .)com \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=lkp@intel$(echo .)com \
    --cc=mturquette@baylibre$(echo .)com \
    --cc=oe-kbuild-all@lists$(echo .)linux.dev \
    --cc=peng.fan@nxp$(echo .)com \
    --cc=s.hauer@pengutronix$(echo .)de \
    --cc=shawnguo@kernel$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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