From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Stephen Boyd <sboyd@codeaurora.org>,
linux-kernel@vger.kernel.org, heikki.krogerus@linux.intel.com
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Subject: [PATCH v3 0/3] clk: fractional-divider: do a clean up
Date: Wed, 1 Apr 2015 13:09:05 +0300 [thread overview]
Message-ID: <1427882948-97260-1-git-send-email-andriy.shevchenko@linux.intel.com> (raw)
Patches are self-explanatory I think. So, just changelog is provided here.
It would be really nice to queue them to v4.1.
Patches 2/3 and 3/3 are dependent to the patch 1/7 from [1] "clk: replace
div_mask() by clk_div_mask()".
The series was tested with 8250_dw UART driver on Intel Braswell.
[1] http://www.spinics.net/lists/kernel/msg1958958.html
Changelog v3:
- add patch 2/3 to simplify further usage
- don't use mult_frac() due to potential overflow on 32 bit kernels
- guarantee in ->round_rate() that m and n will not overflow
Changelog v2:
- move to rational_best_approximation() and mult_frac()
- add patch 2/2
Andy Shevchenko (3):
clk: fractional-divider: fix sparse warnings
clk: fractional-divider: keep mwidth and nwidth internally
clk: fractional-divider: switch to rational best approximation
drivers/clk/Kconfig | 1 +
drivers/clk/clk-fractional-divider.c | 86 +++++++++++++++++++++---------------
include/linux/clk-provider.h | 3 +-
3 files changed, 54 insertions(+), 36 deletions(-)
--
2.1.4
next reply other threads:[~2015-04-01 10:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-01 10:09 Andy Shevchenko [this message]
2015-04-01 10:09 ` [PATCH v3 1/3] clk: fractional-divider: fix sparse warnings Andy Shevchenko
2015-04-01 10:09 ` [PATCH v3 2/3] clk: fractional-divider: keep mwidth and nwidth internally Andy Shevchenko
2015-04-09 8:22 ` Ming Lei
2015-05-06 10:58 ` Andy Shevchenko
2015-04-01 10:09 ` [PATCH v3 3/3] clk: fractional-divider: switch to rational best approximation Andy Shevchenko
2015-06-18 20:39 ` [PATCH v3 0/3] clk: fractional-divider: do a clean up 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=1427882948-97260-1-git-send-email-andriy.shevchenko@linux.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=heikki.krogerus@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--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;
as well as URLs for NNTP newsgroup(s).