summaryrefslogtreecommitdiff
path: root/include/dt-bindings
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@free-electrons.com>2014-11-14 18:54:49 (GMT)
committerMichael Turquette <mturquette@linaro.org>2014-11-17 18:38:40 (GMT)
commitff553ea1a3d5b903becda790eeb6bd3debf239f9 (patch)
treebecb282ec5a16929bc69a105e7ad2ef09cac6875 /include/dt-bindings
parent206c5f60a3d902bc4b56dab2de3e88de5eb06108 (diff)
downloadlinux-ff553ea1a3d5b903becda790eeb6bd3debf239f9.tar.xz
clk: at91: usb: fix at91rm9200 round and set rate
at91rm9200_clk_usb_set_rate might fail depending on the requested rate, because the parent_rate / rate remainder is not necessarily zero. Moreover, when rounding down the calculated rate we might alter the divisor calculation and end up with an invalid divisor. To solve those problems, accept a non zero remainder, and always round division to the closest result. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Reported-by: Andreas Henriksson <andreas.henriksson@endian.se> Tested-by: Andreas Henriksson <andreas.henriksson@endian.se> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Michael Turquette <mturquette@linaro.org>
Diffstat (limited to 'include/dt-bindings')
0 files changed, 0 insertions, 0 deletions