diff options
| author | Emmanuel Vadot <manu@FreeBSD.org> | 2017-02-23 05:33:20 +0000 |
|---|---|---|
| committer | Emmanuel Vadot <manu@FreeBSD.org> | 2017-02-23 05:33:20 +0000 |
| commit | dd165efb5a3b14767ed093d41bdd1c4cc8c86b98 (patch) | |
| tree | 249db09954dc0e24c20cd3de1e26b776d0ebe336 /sys/dev/extres | |
| parent | e2ebfbbf385bb12d172a21926d093a91a48f409d (diff) | |
Notes
Diffstat (limited to 'sys/dev/extres')
| -rw-r--r-- | sys/dev/extres/clk/clk_div.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/extres/clk/clk_div.c b/sys/dev/extres/clk/clk_div.c index bf663f28c3a4..c9573dfabfe1 100644 --- a/sys/dev/extres/clk/clk_div.c +++ b/sys/dev/extres/clk/clk_div.c @@ -195,7 +195,8 @@ clknode_div_set_freq(struct clknode *clk, uint64_t fin, uint64_t *fout, 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); |
