summaryrefslogtreecommitdiff
path: root/drivers/mfd/arizona.h
diff options
context:
space:
mode:
authorEmil Lundmark <emil@limesaudio.com>2016-10-12 13:31:40 +0300
committerStephen Boyd <sboyd@codeaurora.org>2016-11-02 03:07:54 +0300
commit5c2f117a22e46a4afee6ddee29b653a7a2a6b41f (patch)
treea752154c1f8464c9beb7cfc07333bfa4d52bbcff /drivers/mfd/arizona.h
parent06b113e9f28f8657715919087a3f54b77d1634ed (diff)
downloadlinux-5c2f117a22e46a4afee6ddee29b653a7a2a6b41f.tar.xz
clk: imx: fix integer overflow in AV PLL round rate
Since 'parent_rate * mfn' may overflow 32 bits, the result should be stored using 64 bits. The problem was discovered when trying to set the rate of the audio PLL (pll4_post_div) on an i.MX6Q. The desired rate was 196.608 MHz, but the actual rate returned was 192.000570 MHz. The round rate function should have been able to return 196.608 MHz, i.e., the desired rate. Fixes: ba7f4f557eb6 ("clk: imx: correct AV PLL rate formula") Cc: Anson Huang <b20788@freescale.com> Signed-off-by: Emil Lundmark <emil@limesaudio.com> Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com> Acked-by: Shawn Guo <shawnguo@kernel.org> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/mfd/arizona.h')
0 files changed, 0 insertions, 0 deletions