4cab9adb0bfc634a6f3ee8b88644321bd1869004
[openwrt/staging/jow.git] /
1 From 69feaeba2b7f283074d81b12df78218f881159f1 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Thu, 17 Feb 2022 14:48:30 +0000
4 Subject: [PATCH] media: i2c: ov7251: Reinstate setting
5 ov7251_global_init_setting
6
7 "media: i2c: Remove .s_power() from ov7251" removed the call that
8 sent ov7251_global_init_setting to the sensor. Send it when starting
9 streaming.
10
11 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
12 ---
13 drivers/media/i2c/ov7251.c | 8 ++++++++
14 1 file changed, 8 insertions(+)
15
16 --- a/drivers/media/i2c/ov7251.c
17 +++ b/drivers/media/i2c/ov7251.c
18 @@ -1344,6 +1344,14 @@ static int ov7251_s_stream(struct v4l2_s
19 if (ret < 0)
20 goto err_power_down;
21
22 + ret = ov7251_set_register_array(ov7251,
23 + ov7251_global_init_setting,
24 + ARRAY_SIZE(ov7251_global_init_setting));
25 + if (ret < 0) {
26 + dev_err(ov7251->dev, "could not set global_init_setting\n");
27 + goto err_power_down;
28 + }
29 +
30 ret = ov7251_pll_configure(ov7251);
31 if (ret) {
32 dev_err(ov7251->dev, "error configuring PLLs\n");