OSDN Git Service

media: ccs-pll: Fix condition for pre-PLL divider lower bound
authorSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 7 Jul 2020 08:08:01 +0000 (10:08 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 7 Dec 2020 14:49:01 +0000 (15:49 +0100)
commitfe52ece8d2e26bd4d38e2c99a7cd13d944c1ee98
tree2e53bbb49e28841693b20defa2bd79dc06cefed7
parentcab27256e8b3a6529faab9fc00e40fcf60b16590
media: ccs-pll: Fix condition for pre-PLL divider lower bound

The lower bound of the pre-PLL divider was calculated based on OP SYS
clock frequency which is also affected by the OP SYS clock divider. This
is wrong. The right clock frequency is that of the PLL output clock.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/ccs-pll.c