From 76ec318118106cb25d762de83857f6579c13e273 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Fri, 27 Aug 2021 03:06:13 +0200 Subject: yocto rename --- .../0002-ov5640_mipi_v2-gpio-can-sleep.patch | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 yocto/meta-bsp-rvphone/recipes-kernel/linux/rvphone/cl-imx8/0002-ov5640_mipi_v2-gpio-can-sleep.patch (limited to 'yocto/meta-bsp-rvphone/recipes-kernel/linux/rvphone/cl-imx8/0002-ov5640_mipi_v2-gpio-can-sleep.patch') diff --git a/yocto/meta-bsp-rvphone/recipes-kernel/linux/rvphone/cl-imx8/0002-ov5640_mipi_v2-gpio-can-sleep.patch b/yocto/meta-bsp-rvphone/recipes-kernel/linux/rvphone/cl-imx8/0002-ov5640_mipi_v2-gpio-can-sleep.patch new file mode 100644 index 0000000..fa1c0af --- /dev/null +++ b/yocto/meta-bsp-rvphone/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); + } + -- cgit v1.2.3