Re: [PATCH V3 1/8] clk: vc5: Prevent division by zero on unconfigured outputs

2017-07-12 Thread Stephen Boyd
On 07/09, Marek Vasut wrote: > In case the initial values of the FOD registers are not configured in > the OTP or by the bootloader, it is possible that the FOD registers > will contain zeroes. The code in vc5_fod_recalc_rate() immediately > feeds the FOD divider value obtained from the FOD registe

[PATCH V3 1/8] clk: vc5: Prevent division by zero on unconfigured outputs

2017-07-09 Thread Marek Vasut
In case the initial values of the FOD registers are not configured in the OTP or by the bootloader, it is possible that the FOD registers will contain zeroes. The code in vc5_fod_recalc_rate() immediately feeds the FOD divider value obtained from the FOD registers into the div64_u64() and if the FO