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: 9586833 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 EBFEE602A7 for ; Wed, 22 Feb 2017 13:28:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BF1D52864F for ; Wed, 22 Feb 2017 13:28:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B3EB6286C1; Wed, 22 Feb 2017 13:28:24 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AEB7D286B4 for ; Wed, 22 Feb 2017 13:28:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=68NuoxsJyt2Mcsdo1DNF8DSHyTg9e7LffNo6K5ftqyQ=; b=Yq0 lQhu5uQu5Jowti1MG+yYHm7Oumky+nY4SSMScgKgqszm3TWX3mF5R05vC5UB+DP1lHWQGc4AF77Gk 0Ja00r4+5mXz6kdFxiuGozvwIy1+D6rkDySGa1UTls0BNg9Kv8b1unR6dwx+bIHV6iGJbI18Tvy1i 8UjHb0gaTO0MVcpISmJZlP4rkwQpp+xKvT3aFpNhU6rRlfxKVnbqqp6352dEMaV3sHBmJII35IskS G46jFYkcoS7OsyCE4Ykcnf4UaqLX2r8iby1RHvMFSMTv28n+gHlPrZzyFZH+lcgzudI3rHge5n1SP FDXVTFYyb21arXaUJJLtmL41xKgGzpQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cgWxx-0004h9-8j; Wed, 22 Feb 2017 13:28:21 +0000 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cgWxu-0004f2-C2 for linux-arm-kernel@lists.infradead.org; Wed, 22 Feb 2017 13:28:20 +0000 Received: by mail-wm0-x236.google.com with SMTP id v77so1949113wmv.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=ANokf/M2AQ6NFZySKoUDs5mzmac8m/M0cMgPf5X0UPpdd3neRvnBEpU1hxVc/436es 4ZqAncTWm1xF6yMm0aHC/QScORdDbn+uHkOSpZ37wV700t//EexwujkD5o/hzo3eXTMI 9WV0DiCEBSDRiS+CoF2iVgt0n6RV0+CNWKFhUDIng/K1RfreWZafY3iK/4jjiPTtridV HOM1z1AYes31h8rlKOy3Lq3sKPJGjpYEtV9UetwwhAx+BmPrKLg0f+jafLU1iWtOwFMM fkEOstNsEpWxFK/onk+tk9R+L/6joHvVigDNq3wmk6GBllXz3t6+7uS3Nqy81Z+F4775 IQGQ== X-Gm-Message-State: AMke39mkYynVWV+AhhxLXX0fiRHoQhn/JK+ZZwIvrJBaATm7jf8h7TEh542droIQDczSURQQ 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170222_052818_570004_8570EA39 X-CRM114-Status: GOOD ( 11.46 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bartosz Golaszewski , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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();