]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: ccs-pll: Start VT pre-PLL multiplier search from correct value
authorSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 18 Feb 2025 21:47:13 +0000 (23:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:11:16 +0000 (11:11 +0100)
commitd0e6032ee06f02ae36f0101db5a73e1f8225ef05
treef5ded1d1f04d0eacebf584abac4373be9fb2aeec
parenteda32d44323572bce3012282acbd38dc199326e2
media: ccs-pll: Start VT pre-PLL multiplier search from correct value

commit 06d2d478b09e6764fb6161d1621fc10d9f0f2860 upstream.

The ccs_pll_calculate_vt_tree() function does a search over possible VT
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/i2c/ccs-pll.c