]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: ccs-pll: Correct the upper limit of maximum op_pre_pll_clk_div
authorSakari Ailus <sakari.ailus@linux.intel.com>
Wed, 19 Feb 2025 13:06:11 +0000 (15:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:07:27 +0000 (11:07 +0100)
commit2dcd905113fbc6f039839041872e9e82151d4df7
tree3a59e0064e61f6e1239dd5989e6beb6db517be17
parentf92cb3142279db5a827c87cc497656e2d469d3c3
media: ccs-pll: Correct the upper limit of maximum op_pre_pll_clk_div

commit f639494db450770fa30d6845d9c84b9cb009758f upstream.

The PLL calculator does a search of the PLL configuration space for all
valid OP pre-PLL clock dividers. The maximum did not take into account the
CCS PLL flag CCS_PLL_FLAG_EXT_IP_PLL_DIVIDER in which case also odd PLL
dividers (other than 1) are valid. Do that now.

Fixes: 4e1e8d240dff ("media: ccs-pll: Add support for extended input PLL clock divider")
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