summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJames Hogan <james.hogan@imgtec.com>2013-12-16 10:41:38 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-01-15 23:31:41 (GMT)
commitba8ccb9b88d9b8e6170fd4f7eb3b906531f05f87 (patch)
treefb9f0a602b05855fd0ad0fda1505813a66b78c16 /tools
parent53ed44f31153aa4d3aa5a670bec33571f403607f (diff)
downloadlinux-fsl-qoriq-ba8ccb9b88d9b8e6170fd4f7eb3b906531f05f87.tar.xz
clk: clk-divider: fix divisor > 255 bug
commit 778037e1ccb75609846deca9e419449c1dc137fa upstream. Commit 6d9252bd9a4bb (clk: Add support for power of two type dividers) merged in v3.6 added the _get_val function to convert a divisor value to a register field value depending on the flags. However it used the type u8 for the div field, causing divisors larger than 255 to be masked and the resultant clock rate to be too high. E.g. in my case an 11bit divider was supposed to divide 24.576 MHz down to 32.768KHz. The divisor was correctly calculated as 750 (0x2ee). This was masked to 238 (0xee) resulting in a frequency of 103.26KHz. Signed-off-by: James Hogan <james.hogan@imgtec.com> Cc: Rajendra Nayak <rnayak@ti.com> Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Mike Turquette <mturquette@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions