summaryrefslogtreecommitdiffstats
path: root/bsp/meta-rcar/meta-rcar-gen3-adas/recipes-kernel/linux/linux-renesas/0176-lvds-geosemi-put-imager-to-autodetect-tail.patch
blob: a341366713792a220830a300c4806a9cddce793c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
From a0b6b13ecaa44559b02574814e941d5fbbf6589c Mon Sep 17 00:00:00 2001
From: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
Date: Tue, 4 Jun 2019 20:03:35 +0300
Subject: [PATCH 2/5] lvds: geosemi: put imager to autodetect tail

Put Geosemi cameras to tail since their produce ID is
just an i2c address

Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
---
 drivers/media/i2c/soc_camera/ov106xx.c | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/drivers/media/i2c/soc_camera/ov106xx.c b/drivers/media/i2c/soc_camera/ov106xx.c
index 442e54a..36aa88a 100644
--- a/drivers/media/i2c/soc_camera/ov106xx.c
+++ b/drivers/media/i2c/soc_camera/ov106xx.c
@@ -129,18 +129,6 @@ static int ov106xx_probe(struct i2c_client *client,
 		goto out;
 	}
 
-	ret = gw4200_probe(client, did);
-	if (!ret) {
-		chip_id = ID_GW4200_AR014X;
-		goto out;
-	}
-
-	ret = gw5200_probe(client, did);
-	if (!ret) {
-		chip_id = ID_GW5200_IMX390;
-		goto out;
-	}
-
 	ret = ov2775_probe(client, did);
 	if (!ret) {
 		chip_id = ID_OV2775;
@@ -171,6 +159,18 @@ static int ov106xx_probe(struct i2c_client *client,
 		goto out;
 	}
 
+	ret = gw4200_probe(client, did);
+	if (!ret) {
+		chip_id = ID_GW4200_AR014X;
+		goto out;
+	}
+
+	ret = gw5200_probe(client, did);
+	if (!ret) {
+		chip_id = ID_GW5200_IMX390;
+		goto out;
+	}
+
 	v4l_err(client, "failed to probe @ 0x%02x (%s)\n",
 			client->addr, client->adapter->name);
 out:
-- 
2.7.4