提交 7066647c 编写于 作者: T Todor Tomov 提交者: Mauro Carvalho Chehab

media: camss: csiphy: Update settle count calculation

Update settle count calculation as per specification.
Signed-off-by: NTodor Tomov <todor.tomov@linaro.org>
Signed-off-by: NHans Verkuil <hansverk@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
上级 09a94865
...@@ -329,7 +329,7 @@ static u8 csiphy_settle_cnt_calc(struct csiphy_device *csiphy) ...@@ -329,7 +329,7 @@ static u8 csiphy_settle_cnt_calc(struct csiphy_device *csiphy)
t_hs_settle = (t_hs_prepare_max + t_hs_prepare_zero_min) / 2; t_hs_settle = (t_hs_prepare_max + t_hs_prepare_zero_min) / 2;
timer_period = div_u64(1000000000000LL, csiphy->timer_clk_rate); timer_period = div_u64(1000000000000LL, csiphy->timer_clk_rate);
settle_cnt = t_hs_settle / timer_period; settle_cnt = t_hs_settle / timer_period - 1;
return settle_cnt; return settle_cnt;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册