]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: ccs-pll: Start OP pre-PLL multiplier search from correct value
authorSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 18 Feb 2025 21:43:58 +0000 (23:43 +0200)
committerHans Verkuil <hverkuil@xs4all.nl>
Fri, 25 Apr 2025 08:15:14 +0000 (10:15 +0200)
commit660e613d05e449766784c549faf5927ffaf281f1
tree019f1feb1e463f070e375bb75fdb531e4892cefb
parent77aed862c34f192f9d4b80d5288263b22b50ca98
media: ccs-pll: Start OP pre-PLL multiplier search from correct value

The ccs_pll_calculate() function does a search over possible PLL
configurations to find the "best" one. If the sensor does not support odd
pre-PLL divisors and the minimum value (with constraints) isn't 1, other
odd values could be errorneously searched (and selected) for the pre-PLL
divisor. Fix this.

Fixes: 415ddd993978 ("media: ccs-pll: Split limits and PLL configuration into front and back parts")
Cc: stable@vger.kernel.org
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/i2c/ccs-pll.c