summaryrefslogtreecommitdiff
path: root/recipes-kernel/linux/rvphone/cl-imx8/0002-ov5640_mipi_v2-gpio-can-sleep.patch
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2021-08-27 02:50:19 +0200
committerUros Majstorovic <majstor@majstor.org>2021-08-27 02:50:19 +0200
commit01270b114be7a82a4dbeae7a3d40c83495224842 (patch)
treea1a37b6fbc3a7e09c47695a0ef980500ad258320 /recipes-kernel/linux/rvphone/cl-imx8/0002-ov5640_mipi_v2-gpio-can-sleep.patch
parent52bbf971706df3752d5a41879495740041a4a735 (diff)
parent5c6a2266ffa6780935959af6c96ffc8dd8e2dc1a (diff)
Merge remote-tracking branch 'meta-bsp-rvphone/master'
Diffstat (limited to 'recipes-kernel/linux/rvphone/cl-imx8/0002-ov5640_mipi_v2-gpio-can-sleep.patch')
-rw-r--r--recipes-kernel/linux/rvphone/cl-imx8/0002-ov5640_mipi_v2-gpio-can-sleep.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/recipes-kernel/linux/rvphone/cl-imx8/0002-ov5640_mipi_v2-gpio-can-sleep.patch b/recipes-kernel/linux/rvphone/cl-imx8/0002-ov5640_mipi_v2-gpio-can-sleep.patch
new file mode 100644
index 0000000..fa1c0af
--- /dev/null
+++ b/recipes-kernel/linux/rvphone/cl-imx8/0002-ov5640_mipi_v2-gpio-can-sleep.patch
@@ -0,0 +1,29 @@
+diff --git a/drivers/media/platform/mxc/capture/ov5640_mipi_v2.c b/drivers/media/platform/mxc/capture/ov5640_mipi_v2.c
+index d68186312635..3ad03711fc20 100644
+--- a/drivers/media/platform/mxc/capture/ov5640_mipi_v2.c
++++ b/drivers/media/platform/mxc/capture/ov5640_mipi_v2.c
+@@ -536,19 +536,19 @@ static void ov5640_reset(struct ov5640 *sensor)
+ return;
+
+ /* camera reset */
+- gpio_set_value(sensor->rst_gpio, 1);
++ gpio_set_value_cansleep(sensor->rst_gpio, 1);
+
+ /* camera power dowmn */
+- gpio_set_value(sensor->pwn_gpio, 1);
++ gpio_set_value_cansleep(sensor->pwn_gpio, 1);
+ msleep(5);
+
+- gpio_set_value(sensor->rst_gpio, 0);
++ gpio_set_value_cansleep(sensor->rst_gpio, 0);
+ msleep(1);
+
+- gpio_set_value(sensor->pwn_gpio, 0);
++ gpio_set_value_cansleep(sensor->pwn_gpio, 0);
+ msleep(5);
+
+- gpio_set_value(sensor->rst_gpio, 1);
++ gpio_set_value_cansleep(sensor->rst_gpio, 1);
+ msleep(5);
+ }
+