From patchwork Sun Aug 27 01:30:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jasmin J." X-Patchwork-Id: 9923645 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 1B1E460380 for ; Sun, 27 Aug 2017 01:30:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0A6D8285E5 for ; Sun, 27 Aug 2017 01:30:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F378D285E6; Sun, 27 Aug 2017 01:30:36 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 DD354285EE for ; Sun, 27 Aug 2017 01:30:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751146AbdH0BaR (ORCPT ); Sat, 26 Aug 2017 21:30:17 -0400 Received: from mail.anw.at ([195.234.101.228]:50132 "EHLO mail.anw.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751131AbdH0BaQ (ORCPT ); Sat, 26 Aug 2017 21:30:16 -0400 Received: from hoppel.217.196.72.190 (anwhome.anw.at [195.234.103.23]) by mail.anw.at (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id v7R1UDdL027061; Sun, 27 Aug 2017 03:30:13 +0200 From: "Jasmin J." To: linux-media@vger.kernel.org Cc: hverkuil@xs4all.nl, d.scheller@gmx.net, sean@mess.org, jasmin@anw.at Subject: [PATCH 1/1] build: gpio-ir-tx backport Date: Sun, 27 Aug 2017 03:30:10 +0200 Message-Id: <1503797410-11860-2-git-send-email-jasmin@anw.at> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503797410-11860-1-git-send-email-jasmin@anw.at> References: <1503797410-11860-1-git-send-email-jasmin@anw.at> X-Antivirus: checked in 0.024sec at mail.anw.at ([195.234.102.72]) by smf-clamd v1.2.1 - http://smfs.sf.net/ 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 From: Jasmin Jessich - Added v3.16_gpio-ir-tx.patch - gpio_ir_tx needs 3.13. at least Signed-off-by: Jasmin Jessich --- backports/backports.txt | 1 + backports/v3.16_gpio-ir-tx.patch | 25 +++++++++++++++++++++++++ v4l/versions.txt | 1 + 3 files changed, 27 insertions(+) create mode 100644 backports/v3.16_gpio-ir-tx.patch diff --git a/backports/backports.txt b/backports/backports.txt index 87b9ee8..22b73a8 100644 --- a/backports/backports.txt +++ b/backports/backports.txt @@ -83,6 +83,7 @@ add v3.17_fix_clamp.patch add v3.16_netdev.patch add v3.16_wait_on_bit.patch add v3.16_void_gpiochip_remove.patch +add v3.16_gpio-ir-tx.patch [3.13.255] add v3.13_ddbridge_pcimsi.patch diff --git a/backports/v3.16_gpio-ir-tx.patch b/backports/v3.16_gpio-ir-tx.patch new file mode 100644 index 0000000..3ec4304 --- /dev/null +++ b/backports/v3.16_gpio-ir-tx.patch @@ -0,0 +1,25 @@ +diff --git a/drivers/media/rc/gpio-ir-tx.c b/drivers/media/rc/gpio-ir-tx.c +index cd476ca..f48aba2 100644 +--- a/drivers/media/rc/gpio-ir-tx.c ++++ b/drivers/media/rc/gpio-ir-tx.c +@@ -136,13 +136,19 @@ static int gpio_ir_tx_probe(struct platform_device *pdev) + if (!rcdev) + return -ENOMEM; + +- gpio_ir->gpio = devm_gpiod_get(&pdev->dev, NULL, GPIOD_OUT_LOW); ++ gpio_ir->gpio = devm_gpiod_get(&pdev->dev, NULL); + if (IS_ERR(gpio_ir->gpio)) { + if (PTR_ERR(gpio_ir->gpio) != -EPROBE_DEFER) + dev_err(&pdev->dev, "Failed to get gpio (%ld)\n", + PTR_ERR(gpio_ir->gpio)); + return PTR_ERR(gpio_ir->gpio); + } ++ rc = gpiod_direction_output(gpio_ir->gpio, 0); ++ if (!rc) { ++ dev_err(&pdev->dev, "Failed to set output direction(%d)\n", rc); ++ gpiod_put(gpio_ir->gpio); ++ return rc; ++ } + + rcdev->priv = gpio_ir; + rcdev->driver_name = DRIVER_NAME; diff --git a/v4l/versions.txt b/v4l/versions.txt index 0c7a3b5..7c54778 100644 --- a/v4l/versions.txt +++ b/v4l/versions.txt @@ -97,6 +97,7 @@ VIDEO_COBALT [3.13.0] # needs gpio/consumer.h RADIO_SI4713 +IR_GPIO_TX [3.12.0] # BIN_ATTR_RW was changed