提交 63516b55 编写于 作者: S Sakari Ailus 提交者: Mauro Carvalho Chehab

[media] smiapp-pll: Don't validate OP clocks if there are none

For profile 0 sensors (which have no OP clocks), the OP limits are in fact
VT limits. Do not verify them again.
Signed-off-by: NSakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
上级 974abe44
无相关合并请求
...@@ -131,6 +131,14 @@ static int check_all_bounds(struct device *dev, ...@@ -131,6 +131,14 @@ static int check_all_bounds(struct device *dev,
op_limits->min_pix_clk_freq_hz, op_limits->min_pix_clk_freq_hz,
op_limits->max_pix_clk_freq_hz, op_limits->max_pix_clk_freq_hz,
"op_pix_clk_freq_hz"); "op_pix_clk_freq_hz");
/*
* If there are no OP clocks, the VT clocks are contained in
* the OP clock struct.
*/
if (pll->flags & SMIAPP_PLL_FLAG_NO_OP_CLOCKS)
return rval;
if (!rval) if (!rval)
rval = bounds_check( rval = bounds_check(
dev, pll->vt.sys_clk_freq_hz, dev, pll->vt.sys_clk_freq_hz,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部