[U-Boot] [PATCH] bugfix i.mx6 pwm: prevent overflow of period_c * duty_ns

Heiko Schocher hs at denx.de
Wed May 6 10:14:19 CEST 2015


Hello Brecht Neyrinck,

Am 06.05.2015 09:57, schrieb Brecht Neyrinck:
> 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 at psicontrol.com>
> ---
>   drivers/pwm/pwm-imx-util.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)

Thanks!

Acked-by: Heiko Schocher<hs at denx.de>

bye,
Heiko
-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany


More information about the U-Boot mailing list