public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: maxime.ripard@free-electrons.com (Maxime Ripard)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v4 2/9] clk: sunxi-ng: Remove the use of rational computations
Date: Thu, 20 Oct 2016 19:26:21 +0200	[thread overview]
Message-ID: <20161020172621.yzkhjwlfdxfmj3fy@lukather> (raw)
In-Reply-To: <CAGb2v65=xM3HpV05zt+q2vshX49MGkB88s7cfpwVYASodK11Nw@mail.gmail.com>

On Thu, Oct 20, 2016 at 10:30:36PM +0800, Chen-Yu Tsai wrote:
> On Tue, Oct 11, 2016 at 10:28 PM, Maxime Ripard
> <maxime.ripard@free-electrons.com> wrote:
> > While the rational library works great, it doesn't really allow us to add
> > more constraints, like the minimum.
> >
> > Remove that in order to be able to deal with the constraints we'll need.
> >
> > Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
> > ---
> >  drivers/clk/sunxi-ng/Kconfig    |  3 +--
> >  drivers/clk/sunxi-ng/ccu_nkm.c  | 31 +++++++++-----------
> >  drivers/clk/sunxi-ng/ccu_nkmp.c | 45 +++++++++++++---------------
> >  drivers/clk/sunxi-ng/ccu_nm.c   | 54 +++++++++++++++++++++++++---------
> >  4 files changed, 78 insertions(+), 55 deletions(-)
> >
> 
> [...]
> 
> > diff --git a/drivers/clk/sunxi-ng/ccu_nkmp.c b/drivers/clk/sunxi-ng/ccu_nkmp.c
> > index 9769dee99511..4b457d8cce11 100644
> > --- a/drivers/clk/sunxi-ng/ccu_nkmp.c
> > +++ b/drivers/clk/sunxi-ng/ccu_nkmp.c
> > @@ -9,16 +9,15 @@
> >   */
> >
> >  #include <linux/clk-provider.h>
> > -#include <linux/rational.h>
> >
> >  #include "ccu_gate.h"
> >  #include "ccu_nkmp.h"
> >
> >  struct _ccu_nkmp {
> > -       unsigned long   n, max_n;
> > -       unsigned long   k, max_k;
> > -       unsigned long   m, max_m;
> > -       unsigned long   p, max_p;
> > +       unsigned long   n, min_n, max_n;
> > +       unsigned long   k, min_k, max_k;
> > +       unsigned long   m, min_m, max_m;
> > +       unsigned long   p, min_p, max_p;
> 
> Wrong patch? Otherwise,
> 
> Acked-by: Chen-Yu Tsai <wens@csie.org>

Indeed, fixed and applied.

Thanks!
Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20161020/738a756b/attachment-0001.sig>

  reply	other threads:[~2016-10-20 17:26 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-11 14:28 [PATCH v4 0/9] arm64: Allwinner A64 support based on sunxi-ng Maxime Ripard
2016-10-11 14:28 ` [PATCH v4 1/9] clk: sunxi-ng: Rename the internal structures Maxime Ripard
2016-10-20 14:27   ` [linux-sunxi] " Chen-Yu Tsai
2016-10-20 17:24     ` Maxime Ripard
2016-10-11 14:28 ` [PATCH v4 2/9] clk: sunxi-ng: Remove the use of rational computations Maxime Ripard
2016-10-20 14:30   ` Chen-Yu Tsai
2016-10-20 17:26     ` Maxime Ripard [this message]
2016-10-11 14:28 ` [PATCH v4 3/9] clk: sunxi-ng: Finish to convert to structures for arguments Maxime Ripard
2016-10-20 14:35   ` Chen-Yu Tsai
2016-10-20 17:26     ` Maxime Ripard
2016-10-11 14:28 ` [PATCH v4 4/9] clk: sunxi-ng: Add minimums for all the relevant structures and clocks Maxime Ripard
2016-10-20 15:04   ` Chen-Yu Tsai
2016-10-20 17:27     ` Maxime Ripard
2016-10-21 22:57   ` André Przywara
2016-10-24 16:03     ` Maxime Ripard
2016-10-11 14:28 ` [PATCH v4 5/9] clk: sunxi-ng: Implement minimum for multipliers Maxime Ripard
2016-10-20 15:06   ` Chen-Yu Tsai
2016-10-20 17:30     ` Maxime Ripard
2016-10-11 14:28 ` [PATCH v4 6/9] clk: sunxi-ng: Add A64 clocks Maxime Ripard
2016-10-20 15:50   ` [linux-sunxi] " Chen-Yu Tsai
2016-10-20 17:47     ` Maxime Ripard
2016-10-20 18:46   ` Stephen Boyd
2016-10-24 15:05     ` Maxime Ripard
2016-10-11 14:28 ` [PATCH v4 7/9] arm64: dts: add Allwinner A64 SoC .dtsi Maxime Ripard
2016-10-20 15:14   ` [linux-sunxi] " Chen-Yu Tsai
2016-10-20 17:49     ` Maxime Ripard
2016-10-11 14:28 ` [PATCH v4 8/9] Documentation: devicetree: add vendor prefix for Pine64 Maxime Ripard
2016-10-11 14:28 ` [PATCH v4 9/9] arm64: dts: add Pine64 support Maxime Ripard
2016-10-20 15:17   ` [linux-sunxi] " Chen-Yu Tsai

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=20161020172621.yzkhjwlfdxfmj3fy@lukather \
    --to=maxime.ripard@free-electrons.com \
    --cc=linux-arm-kernel@lists.infradead.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