提交 74b506cb 编写于 作者: L Luca Weiss 提交者: Mauro Carvalho Chehab

media: i2c: ov2685: Add print for power on write failed

If the sensor doens't power up correctly, for example due to incorrect
devicetree description, the power up i2c writes will fail.

Add an error print for this situation.
Reviewed-by: NJacopo Mondi <jacopo.mondi@ideasonboard.com>
Signed-off-by: NLuca Weiss <luca@z3ntu.xyz>
Signed-off-by: NSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@kernel.org>
上级 ef586f26
...@@ -419,8 +419,10 @@ static int __ov2685_power_on(struct ov2685 *ov2685) ...@@ -419,8 +419,10 @@ static int __ov2685_power_on(struct ov2685 *ov2685)
* writing register before .s_stream() as a workaround * writing register before .s_stream() as a workaround
*/ */
ret = ov2685_write_array(ov2685->client, ov2685->cur_mode->reg_list); ret = ov2685_write_array(ov2685->client, ov2685->cur_mode->reg_list);
if (ret) if (ret) {
dev_err(dev, "Failed to set regs for power on\n");
goto disable_supplies; goto disable_supplies;
}
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册