From patchwork Wed Feb 22 13:27:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 9586829 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6056D602A7 for ; Wed, 22 Feb 2017 13:28:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 35184286B4 for ; Wed, 22 Feb 2017 13:28:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 299AC286C1; Wed, 22 Feb 2017 13:28:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 89519286B4 for ; Wed, 22 Feb 2017 13:28:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932464AbdBVN17 (ORCPT ); Wed, 22 Feb 2017 08:27:59 -0500 Received: from mail-wm0-f51.google.com ([74.125.82.51]:37407 "EHLO mail-wm0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932352AbdBVN16 (ORCPT ); Wed, 22 Feb 2017 08:27:58 -0500 Received: by mail-wm0-f51.google.com with SMTP id v77so1949117wmv.0 for ; Wed, 22 Feb 2017 05:27:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=I5nYJNzN6I6lfR6MbfLpypPOSv7qILTYsx7WVH0jTug=; b=1+ZxSFAUDrO9zNtsQ6HiYHGP3VRHELMIescxNaC8cGnxMxr2o/4HVx2MwX4f4GfEI/ FxD385jdCAj8rd3/8LSk8LYpJL7WusQk4UXjA04fGRKd6AsvBNT3AvgulbIdzUxLLTOg 0U5BCfjTK+8NlG4nq50A2CIo3AKwpkCoDKCbHNY/NLFk5EP+pM1WytRl3hY7w6Yzm/bf W9utKS6P9K2Egp92qcImdLrZObmEDh59NG+04AK9rM2Orzepj+5Eac4kOPhH/eypZLop pIEqNA3syAOT/XpMDC14hC1fTDLviyLOKxxA7sjrQS1GnvUF8qt/smec9GKzbULROvpC bz0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=I5nYJNzN6I6lfR6MbfLpypPOSv7qILTYsx7WVH0jTug=; b=YFK0FAekwhw8yRKhcaeUoOzitbl0awl4hNTjPbxXjGLxikzLc2GRLaa4/W9U8mzYdl M2sJwtXEC7yY4tI5EIBa/PiM9e1HdH4rgsQzVIHIQaxhy9q6S6aUBNFHNIle0L4FixHp jBedQoRS7kSEuiDn0XNOpCiyCb5KwY3YbpRMhMVk1VnlvcUL689KMhNxkAk87k2T8GML kV91BGhpjqTNut/wHDNLk1fBqwfN7sHByY9b5Vu8KnNOdY1C9HWp94wsnmQFiG/THERp PrflN+2IonawSOH0ZxYs4PpoSDjbO89MdthRo7hSPZTB15PZw+5scjd82BiDYMN3XB7z mNrw== X-Gm-Message-State: AMke39nDier2TQwAKxNu2/+SA+S/T5WsDR/Px4zslqi3+CHTEWlRPKtrga4x91oVa6CXPii+ X-Received: by 10.28.18.130 with SMTP id 124mr2575191wms.8.1487770076395; Wed, 22 Feb 2017 05:27:56 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id u40sm1752465wrc.46.2017.02.22.05.27.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 22 Feb 2017 05:27:55 -0800 (PST) From: Bartosz Golaszewski To: Sekhar Nori , Kevin Hilman , Michael Turquette , Patrick Titiano , Laurent Pinchart , Russell King , Prabhakar Lad , Mauro Carvalho Chehab Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH] media: vpif: request enable-gpios Date: Wed, 22 Feb 2017 14:27:51 +0100 Message-Id: <1487770071-5157-1-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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 #include #include +#include #include @@ -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();