From patchwork Sun Aug 20 14:36:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Scheller X-Patchwork-Id: 9911173 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 9D9D2601D4 for ; Sun, 20 Aug 2017 14:37:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8FE3E286D4 for ; Sun, 20 Aug 2017 14:37:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 84B2828722; Sun, 20 Aug 2017 14:37:37 +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.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, 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 C041F287A1 for ; Sun, 20 Aug 2017 14:37:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753106AbdHTOgz (ORCPT ); Sun, 20 Aug 2017 10:36:55 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:34447 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753097AbdHTOgw (ORCPT ); Sun, 20 Aug 2017 10:36:52 -0400 Received: by mail-wr0-f196.google.com with SMTP id p14so8262105wrg.1 for ; Sun, 20 Aug 2017 07:36:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=fe9BHf1zD+eOjXGUMjbHnk2NiAu06CsHxRB73413a5A=; b=Gg8Wy2FosKOAZVoDXYoDCXO10fuyH0l9KWUAh/OTPykHuxBrj+iwbfyyZsLqLJstM/ UH8IbR54967UevGMfTA2dgt4auFMn4lsx1rknJv8YqEPg3iXNfVsGCLNBSjQ2z6PpCK1 x4Ak/l09Fi61bXJt6Ffhjfo71mmr5/u24T8Qr8ZAs85sv0YhLw+wpqE5kXsFornGntvk hs1uZ9gHsMkRqTcmB5zlQsM0RTvIgwaFpJ7Iomsmq+BnSdDnU9/6MwQk3KJiCKHpdyO4 K0TF53s0lOfsxIhQvblBTednzPYXXHDVTPJ+47ZoweKNczMdNssR+Lxx4X1jpoc2X7PU 4LJw== 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:in-reply-to :references; bh=fe9BHf1zD+eOjXGUMjbHnk2NiAu06CsHxRB73413a5A=; b=CJtjqWqtLsNYlo9ftnVurqcqFjHQ8hTthrvoTDqExoYamr5bMtt04js4uFnPecpGCl XAAm12lxC2ATX1xYxd8p/xX6gh3kCHgqYo/zw5999f6Q5a3/gODIMV7HEJEB9aiYWooO z1mmFvi76OGZH+1UfTkwrVvoBKPl6CEa86PywhYTLQWue/mL0Au6u5TnZhh6Omb4IDr4 0/VhiumaPy1ueuLsHnVcyYjEx7Y4DO7hwEBfiMgcX1NcUIGiK+6JsLQldWHNzrboGl/W mNfwe3oRmhzveWRScUQ9argJZ5BZNksW5zIvJJcPRT5hZ6Wo/8ruba5xxnSAPahbfM6N QLlg== X-Gm-Message-State: AHYfb5h45A7yvn5zvSrEBF4V7YLsm6OGJWpxyKRRTPf+Z2pxLE6l/Anb tpWMrOS5c2Dva8If X-Received: by 10.223.155.132 with SMTP id d4mr8636428wrc.196.1503239811327; Sun, 20 Aug 2017 07:36:51 -0700 (PDT) Received: from dvbdev.wuest.de (ip-84-118-193-88.unity-media.net. [84.118.193.88]) by smtp.gmail.com with ESMTPSA id k79sm374801wmg.21.2017.08.20.07.36.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 20 Aug 2017 07:36:50 -0700 (PDT) From: Daniel Scheller To: linux-media@vger.kernel.org, hverkuil@xs4all.nl Cc: jasmin@anw.at, mchehab@kernel.org Subject: [PATCH 2/3] [media_build] patch pci_alloc_irq_vectors() for ddbridge aswell Date: Sun, 20 Aug 2017 16:36:47 +0200 Message-Id: <20170820143648.27669-3-d.scheller.oss@gmail.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170820143648.27669-1-d.scheller.oss@gmail.com> References: <20170820143648.27669-1-d.scheller.oss@gmail.com> 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: Daniel Scheller Signed-off-by: Daniel Scheller --- backports/v4.7_pci_alloc_irq_vectors.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/backports/v4.7_pci_alloc_irq_vectors.patch b/backports/v4.7_pci_alloc_irq_vectors.patch index 64867fa..e15d521 100644 --- a/backports/v4.7_pci_alloc_irq_vectors.patch +++ b/backports/v4.7_pci_alloc_irq_vectors.patch @@ -42,3 +42,16 @@ index 00f773e..ed00dc9 100644 /* omnitek dma */ int dma_channels; int first_fifo_channel; +diff --git a/drivers/media/pci/ddbridge/ddbridge.c b/drivers/media/pci/ddbridge/ddbridge.c +index fab421f..031288a 100644 +--- a/drivers/media/pci/ddbridge/ddbridge-main.c ++++ b/drivers/media/pci/ddbridge/ddbridge-main.c +@@ -109,7 +109,7 @@ static void ddb_irq_msi(struct ddb *dev, int nr) + int stat; + + if (msi && pci_msi_enabled()) { +- stat = pci_alloc_irq_vectors(dev->pdev, 1, nr, PCI_IRQ_MSI); ++ stat = pci_enable_msi_range(dev->pdev, 1, nr); + if (stat >= 1) { + dev->msi = stat; + dev_info(dev->dev, "using %d MSI interrupt(s)\n",