svn commit: r314119 - head/sys/dev/extres/clk
Emmanuel Vadot
manu at FreeBSD.org
Thu Feb 23 05:33:22 UTC 2017
Author: manu
Date: Thu Feb 23 05:33:20 2017
New Revision: 314119
URL: https://svnweb.freebsd.org/changeset/base/314119
Log:
Do not check divider length if we have a div table.
Reviewed by: mmel
Modified:
head/sys/dev/extres/clk/clk_div.c
Modified: head/sys/dev/extres/clk/clk_div.c
==============================================================================
--- head/sys/dev/extres/clk/clk_div.c Thu Feb 23 04:26:17 2017 (r314118)
+++ head/sys/dev/extres/clk/clk_div.c Thu Feb 23 05:33:20 2017 (r314119)
@@ -195,7 +195,8 @@ clknode_div_set_freq(struct clknode *clk
hw_i_div--;
*stop = 1;
- if (hw_i_div > sc->i_mask) {
+ if (hw_i_div > sc->i_mask &&
+ ((sc->div_flags & CLK_DIV_WITH_TABLE) == 0)) {
/* XXX Or only return error? */
printf("%s: %s integer divider is too big: %u\n",
clknode_get_name(clk), __func__, hw_i_div);
More information about the svn-src-all
mailing list