summaryrefslogtreecommitdiff
path: root/drivers/uio/uio_cif.c
diff options
context:
space:
mode:
authorPaul Cercueil <paul@crapouillou.net>2021-10-01 20:20:33 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-11-25 11:48:32 +0300
commit3024018bb2df1c709b8b959e7f7719e30b49092e (patch)
tree130f6595b99c782193f06248dcbb27cd888aa4a4 /drivers/uio/uio_cif.c
parent680a0c6332c48df1b900b3c535e920e7cc453b7e (diff)
downloadlinux-3024018bb2df1c709b8b959e7f7719e30b49092e.tar.xz
clk: ingenic: Fix bugs with divided dividers
[ Upstream commit ed84ef1cd7eddf933d4ffce2caa8161d6f947245 ] Two fixes in one: - In the "impose hardware constraints" block, the "logical" divider value (aka. not translated to the hardware) was clamped to fit in the register area, but this totally ignored the fact that the divider value can itself have a fixed divider. - The code that made sure that the divider value returned by the function was a multiple of its own fixed divider could result in a wrong value being calculated, because it was rounded down instead of rounded up. Fixes: 4afe2d1a6ed5 ("clk: ingenic: Allow divider value to be divided") Co-developed-by: Artur Rojek <contact@artur-rojek.eu> Signed-off-by: Artur Rojek <contact@artur-rojek.eu> Signed-off-by: Paul Cercueil <paul@crapouillou.net> Link: https://lore.kernel.org/r/20211001172033.122329-1-paul@crapouillou.net Signed-off-by: Stephen Boyd <sboyd@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/uio/uio_cif.c')
0 files changed, 0 insertions, 0 deletions