Re: [PATCH v5 03/29] drm/omap: pll: fix iteration loop check

2020-12-14 Thread Sebastian Reichel
Hi, On Tue, Dec 08, 2020 at 02:28:29PM +0200, Tomi Valkeinen wrote: > If the PLL calc function is given bad parameters, n_start/m_start may be > higher than n_stop/m_stop, which leads to the loops iterating through > the whole u32 number space. > > Fix this by failing early on such cases. > > Si

[PATCH v5 03/29] drm/omap: pll: fix iteration loop check

2020-12-08 Thread Tomi Valkeinen
If the PLL calc function is given bad parameters, n_start/m_start may be higher than n_stop/m_stop, which leads to the loops iterating through the whole u32 number space. Fix this by failing early on such cases. Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/om