Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1586145 > unrolled thread

[PATCH] media: vpif: request enable-gpios

Started byBartosz Golaszewski <bgolaszewski@baylibre.com>
First post2017-02-22 14:30 +0100
Last post2017-02-28 17:30 +0100
Articles 2 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] media: vpif: request enable-gpios Bartosz Golaszewski <bgolaszewski@baylibre.com> - 2017-02-22 14:30 +0100
    Re: [PATCH] media: vpif: request enable-gpios Bartosz Golaszewski <bgolaszewski@baylibre.com> - 2017-02-28 17:30 +0100

#1586145 — [PATCH] media: vpif: request enable-gpios

FromBartosz Golaszewski <bgolaszewski@baylibre.com>
Date2017-02-22 14:30 +0100
Subject[PATCH] media: vpif: request enable-gpios
Message-ID<tdF9w-2h4-25@gated-at.bofh.it>
This change is needed to make vpif capture work on the da850-evm board
where the capture function must be selected on the UI expander.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
---
 drivers/media/platform/davinci/vpif_capture.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/media/platform/davinci/vpif_capture.c b/drivers/media/platform/davinci/vpif_capture.c
index b62a399..7dea358 100644
--- a/drivers/media/platform/davinci/vpif_capture.c
+++ b/drivers/media/platform/davinci/vpif_capture.c
@@ -24,6 +24,7 @@
 #include <linux/interrupt.h>
 #include <linux/platform_device.h>
 #include <linux/slab.h>
+#include <linux/gpio/consumer.h>
 
 #include <media/v4l2-ioctl.h>
 
@@ -1433,6 +1434,7 @@ static __init int vpif_probe(struct platform_device *pdev)
 {
 	struct vpif_subdev_info *subdevdata;
 	struct i2c_adapter *i2c_adap;
+	struct gpio_descs *descs;
 	struct resource *res;
 	int subdev_count;
 	int res_idx = 0;
@@ -1443,6 +1445,11 @@ static __init int vpif_probe(struct platform_device *pdev)
 		return -EINVAL;
 	}
 
+	descs = devm_gpiod_get_array_optional(&pdev->dev,
+					      "enable", GPIOD_OUT_HIGH);
+	if (IS_ERR(descs))
+		dev_err(&pdev->dev, "Error requesting enable GPIOs\n");
+
 	vpif_dev = &pdev->dev;
 
 	err = initialize_vpif();
-- 
2.9.3

[toc] | [next] | [standalone]


#1589599

FromBartosz Golaszewski <bgolaszewski@baylibre.com>
Date2017-02-28 17:30 +0100
Message-ID<tfSOZ-6Wr-1@gated-at.bofh.it>
In reply to#1586145
2017-02-22 14:27 GMT+01:00 Bartosz Golaszewski <bgolaszewski@baylibre.com>:
> This change is needed to make vpif capture work on the da850-evm board
> where the capture function must be selected on the UI expander.
>
> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
> ---
>  drivers/media/platform/davinci/vpif_capture.c | 7 +++++++
>  1 file changed, 7 insertions(+)
>

Disregard this patch - we need to determine a better solution for this
functionality.

Thanks,
Bartosz

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web