Date: Mon, 7 May 2018 09:42:35 +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: r333320 - head/sys/dev/extres/clk Message-ID: <201805070942.w479gZHE075453@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: manu Date: Mon May 7 09:42:35 2018 New Revision: 333320 URL: https://svnweb.freebsd.org/changeset/base/333320 Log: clk: clk_set_assigned: Skip frequency of value 0 A frequency of value 0 mean that we don't want to change the frequency so skip it. Modified: head/sys/dev/extres/clk/clk.c Modified: head/sys/dev/extres/clk/clk.c ============================================================================== --- head/sys/dev/extres/clk/clk.c Mon May 7 07:31:25 2018 (r333319) +++ head/sys/dev/extres/clk/clk.c Mon May 7 09:42:35 2018 (r333320) @@ -1350,7 +1350,7 @@ clk_set_assigned(device_t dev, phandle_t node) clk_set_assigned_parent(dev, clk, i); /* Then set a new frequency */ - if (i <= nrates) + if (i <= nrates && rates[i] != 0) clk_set_assigned_rates(dev, clk, rates[i]); clk_release(clk);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805070942.w479gZHE075453>