diff options
| author | André Apitzsch <git@apitzsch.eu> | 2025-06-30 22:05:25 +0300 |
|---|---|---|
| committer | Hans Verkuil <hverkuil+cisco@kernel.org> | 2025-08-25 16:40:39 +0300 |
| commit | 880c2395eb9c72938ae65bdb785d28426884d72f (patch) | |
| tree | 7a3ac55277ed5428cc3248212a2ddb6b48c67450 | |
| parent | db967cc41fecd3d115a987934dc00de208f7959f (diff) | |
| download | linux-880c2395eb9c72938ae65bdb785d28426884d72f.tar.xz | |
media: i2c: imx214: Separate legacy link frequency check from PLL calculation
Make it easier to drop the legacy support from the driver later.
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: André Apitzsch <git@apitzsch.eu>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
| -rw-r--r-- | drivers/media/i2c/imx214.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/media/i2c/imx214.c b/drivers/media/i2c/imx214.c index cb630d088010..94ebe625c9e6 100644 --- a/drivers/media/i2c/imx214.c +++ b/drivers/media/i2c/imx214.c @@ -1362,18 +1362,16 @@ static int imx214_parse_fwnode(struct imx214 *imx214) u64 freq = bus_cfg->link_frequencies[i]; struct ccs_pll pll; - if (!imx214_pll_calculate(imx214, &pll, freq)) - break; if (freq == IMX214_DEFAULT_LINK_FREQ_LEGACY) { dev_warn(dev, "link-frequencies %d not supported, please review your DT. Continuing anyway\n", IMX214_DEFAULT_LINK_FREQ); freq = IMX214_DEFAULT_LINK_FREQ; - if (imx214_pll_calculate(imx214, &pll, freq)) - continue; bus_cfg->link_frequencies[i] = freq; - break; } + + if (!imx214_pll_calculate(imx214, &pll, freq)) + break; } if (i == bus_cfg->nr_of_link_frequencies) |
