summaryrefslogtreecommitdiffstats
path: root/drivers/clk/at91
diff options
context:
space:
mode:
authorMaxime Ripard2016-05-16 14:47:02 +0200
committerMichael Turquette2016-06-20 22:00:00 +0200
commit25f77a3aa4cb948666bf8e7fd972533ea487c3bd (patch)
tree313e1cf46badfc982d0f6bd0f004aafb47cf58f0 /drivers/clk/at91
parentMerge commit 'f17a0dd1c2e0' into clk-next (diff)
downloadkernel-qcow2-linux-25f77a3aa4cb948666bf8e7fd972533ea487c3bd.tar.gz
kernel-qcow2-linux-25f77a3aa4cb948666bf8e7fd972533ea487c3bd.tar.xz
kernel-qcow2-linux-25f77a3aa4cb948666bf8e7fd972533ea487c3bd.zip
clk: multiplier: Prevent the multiplier from under / over flowing
In the current multiplier base clock implementation, if the CLK_SET_RATE_PARENT flag isn't set, the code will not make sure that the multiplier computed remains within the boundaries of our clock. This means that if the clock we want to reach is below the parent rate, or if the multiplier is above the maximum that we can reach, we will end up with a completely bogus one that the clock cannot achieve. Fixes: f2e0a53271a4 ("clk: Add a basic multiplier clock") Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Michael Turquette <mturquette@baylibre.com> Link: lkml.kernel.org/r/1463402840-17062-3-git-send-email-maxime.ripard@free-electrons.com
Diffstat (limited to 'drivers/clk/at91')
0 files changed, 0 insertions, 0 deletions