]> git.sur5r.net Git - u-boot/commit
bugfix i.mx6 pwm: prevent overflow of period_c * duty_ns
authorBrecht Neyrinck <bnrn@psicontrol.com>
Wed, 6 May 2015 07:57:48 +0000 (09:57 +0200)
committerStefano Babic <sbabic@denx.de>
Fri, 15 May 2015 17:20:47 +0000 (19:20 +0200)
commitb2580877b599f94730d8d174e0d83cb89217e2d6
treeee3adaf700a5beb3bf0111dc321e1b157984b795
parent0e1f991efb85520590fba6ad7955116a7bd499d4
bugfix i.mx6 pwm: prevent overflow of period_c * duty_ns

Prevent overflow by casting duty_ns to ull first. This bug came up when trying to create a 200 Hz PWM

Signed-off-by: Brecht Neyrinck <bnrn@psicontrol.com>
Acked-by: Heiko Schocher<hs@denx.de>
drivers/pwm/pwm-imx-util.c