Date: Thu, 23 Feb 2017 05:33:20 +0000 (UTC) From: Emmanuel Vadot <manu@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r314119 - head/sys/dev/extres/clk Message-ID: <201702230533.v1N5XKue080370@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702230533.v1N5XKue080370>