From 56f087827096aa6b8aadb75e13b79c8ac8feae5e Mon Sep 17 00:00:00 2001 From: Vladimir Barinov Date: Tue, 2 Jan 2018 01:37:01 +0300 Subject: MAX9286: fix loss of the last byte in CSI stream MAX9286 may result CSI2 stream losing the last byte. This observed rarely with only 1 cmaera connected to quad deserializer. This patch fixes this issue --- .../recipes-kernel/linux/linux-renesas/0030-Gen3-LVDS-cameras.patch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'meta-rcar-gen3-adas/recipes-kernel') diff --git a/meta-rcar-gen3-adas/recipes-kernel/linux/linux-renesas/0030-Gen3-LVDS-cameras.patch b/meta-rcar-gen3-adas/recipes-kernel/linux/linux-renesas/0030-Gen3-LVDS-cameras.patch index 172b88c..589e166 100644 --- a/meta-rcar-gen3-adas/recipes-kernel/linux/linux-renesas/0030-Gen3-LVDS-cameras.patch +++ b/meta-rcar-gen3-adas/recipes-kernel/linux/linux-renesas/0030-Gen3-LVDS-cameras.patch @@ -938,7 +938,7 @@ new file mode 100644 index 0000000..91223a0 --- /dev/null +++ b/drivers/media/i2c/soc_camera/max9286_max9271.c -@@ -0,0 +1,607 @@ +@@ -0,0 +1,608 @@ +/* + * MAXIM max9286-max9271 GMSL driver + * @@ -1183,6 +1183,7 @@ index 0000000..91223a0 + reg8_write(client, 0x63, 0); /* disable overlap window */ + reg8_write(client, 0x64, 0); + reg8_write(client, 0x0c, 0x89); /* enable HS/VS encoding, use D14/15 for HS/VS, invert VS */ ++ reg8_write(client, 0x19, 0x0c); /* Drive HSTRAIL state for 120ns after the last payload bit */ +} + +static void max9286_max9271_gmsl_link_setup(struct i2c_client *client, int idx) -- cgit 1.2.3-korg