Re: [U-Boot] [U-Boot, RESENT, v2, 4/4] rockchip: clk: remove RATE_TO_DIV

2017-08-10 Thread Philipp Tomsich
> Use DIV_ROUND_UP instead RATE_TO_DIV for all Rockchip SoC > clock driver. > Add or fix the div-field overflow check at the same time. > > Signed-off-by: Kever Yang > Reviewed-by: Philipp Tomsich > Acked-by: Philipp Tomsich > --- > > Changes in v2: > - add overflow check for div-field > > d

Re: [U-Boot] [U-Boot, RESENT, v2, 4/4] rockchip: clk: remove RATE_TO_DIV

2017-07-27 Thread Philipp Tomsich
> Use DIV_ROUND_UP instead RATE_TO_DIV for all Rockchip SoC > clock driver. > Add or fix the div-field overflow check at the same time. > > Signed-off-by: Kever Yang > --- > > Changes in v2: > - add overflow check for div-field > > drivers/clk/rockchip/clk_rk3036.c | 3 ++- > drivers/clk/rock

Re: [U-Boot] [U-Boot, RESENT, v2, 4/4] rockchip: clk: remove RATE_TO_DIV

2017-07-27 Thread Philipp Tomsich
> Use DIV_ROUND_UP instead RATE_TO_DIV for all Rockchip SoC > clock driver. > Add or fix the div-field overflow check at the same time. > > Signed-off-by: Kever Yang > --- > > Changes in v2: > - add overflow check for div-field > > drivers/clk/rockchip/clk_rk3036.c | 3 ++- > drivers/clk/rock