[U-Boot] [PATCH 1/3] video: ipu: avoid overflow issue

Anatolij Gustschin agust at denx.de
Mon Mar 14 22:56:11 CET 2016


Hi,

On Wed,  9 Mar 2016 16:07:21 +0800
Peng Fan van.freenix at gmail.com wrote:

> Multiplication, as "clk->parent->rate * 16" may overflow. So use
> do_div to avoid such issue.
> 
> Signed-off-by: Peng Fan <van.freenix at gmail.com>
> Signed-off-by: Sandor Yu <sandor.yu at nxp.com>
> Cc: Anatolij Gustschin <agust at denx.de>
> Cc: Stefano Babic <sbabic at denx.de>
> Cc: Fabio Estevam <fabio.estevam at nxp.com>
> ---
>  drivers/video/ipu_common.c | 73 ++++++++++++++++++++++++++++++++++------------
>  1 file changed, 54 insertions(+), 19 deletions(-)

applied to u-boot-video/master, thanks!

--
Anatolij


More information about the U-Boot mailing list