Message ID | 1438089593-7696-21-git-send-email-tomeu.vizoso@collabora.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 50821C05AC for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 28 Jul 2015 13:31:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 88E6D20751 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 28 Jul 2015 13:31:55 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E618E2074B for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 28 Jul 2015 13:31:49 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZK4wl-0006Ig-4E; Tue, 28 Jul 2015 13:29:31 +0000 Received: from mail-wi0-x232.google.com ([2a00:1450:400c:c05::232]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZK4p7-00057M-0w for linux-arm-kernel@lists.infradead.org; Tue, 28 Jul 2015 13:21:38 +0000 Received: by wibud3 with SMTP id ud3so180576141wib.1 for <linux-arm-kernel@lists.infradead.org>; Tue, 28 Jul 2015 06:21:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=klkYioPCk27JYtH33T7GFvD9ArqYeLFim11aX0OGG7o=; b=O38/CYeYCpv3E7QBQW6p/Zt49tldACHeUy0TAuJYoD9avQXMNTDi5G0urH68T0boDq ZVnczzbHQlkWmDcC9Fcj28/PiY9A9NIXRuVXlAjVtNEKXvrgkxB9Si6uKxMtaHHUsao9 3Vy+mGOcioQB0HBVn+H9yQ5nF9I3g0vzx3pwfLAj2yLj1ictS7RNZox6ME0akw/q1sdA k1rl0lMvKJKIVAyvxhIcbpDjlfCFLe+iZ9vToLwMMGNmqELXknIsVKTrVcJ+bjHUFRgv 78K8Ic/E2zsxpN/8tLTqnmuIKhokwaZjxoatS6t/iRr4wY5uVhhiN1HnlCXdcJ9RNyGX A/fQ== X-Received: by 10.194.238.193 with SMTP id vm1mr65166092wjc.57.1438089676953; Tue, 28 Jul 2015 06:21:16 -0700 (PDT) Received: from cizrna.lan ([109.72.12.179]) by smtp.gmail.com with ESMTPSA id h9sm33265696wjx.20.2015.07.28.06.21.15 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Jul 2015 06:21:16 -0700 (PDT) From: Tomeu Vizoso <tomeu.vizoso@collabora.com> To: linux-kernel@vger.kernel.org Subject: [PATCH v2 20/22] dma: of: Probe DMA controllers on demand Date: Tue, 28 Jul 2015 15:19:51 +0200 Message-Id: <1438089593-7696-21-git-send-email-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.4.3 In-Reply-To: <1438089593-7696-1-git-send-email-tomeu.vizoso@collabora.com> References: <1438089593-7696-1-git-send-email-tomeu.vizoso@collabora.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150728_062137_376913_3E912E2F X-CRM114-Status: GOOD ( 11.60 ) X-Spam-Score: -2.4 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: devicetree@vger.kernel.org, linux-acpi@vger.kernel.org, Arnd Bergmann <arnd@arndb.de>, Stephen Warren <swarren@wwwdotorg.org>, Vinod Koul <vinod.koul@intel.com>, Linus Walleij <linus.walleij@linaro.org>, Dmitry Torokhov <dmitry.torokhov@gmail.com>, "Rafael J. Wysocki" <rjw@rjwysocki.net>, Tomeu Vizoso <tomeu.vizoso@collabora.com>, Javier Martinez Canillas <javier@osg.samsung.com>, Mark Brown <broonie@kernel.org>, Thierry Reding <thierry.reding@gmail.com>, dmaengine@vger.kernel.org, Dan Williams <dan.j.williams@intel.com>, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/dma/of-dma.c b/drivers/dma/of-dma.c index 1e1f2986eba8..de411a6a63af 100644 --- a/drivers/dma/of-dma.c +++ b/drivers/dma/of-dma.c @@ -263,6 +263,8 @@ struct dma_chan *of_dma_request_slave_channel(struct device_node *np, if (of_dma_match_channel(np, name, i, &dma_spec)) continue; + fwnode_ensure_device(&dma_spec.np->fwnode); + mutex_lock(&of_dma_lock); ofdma = of_dma_find_controller(&dma_spec);
When looking up a DMA controller through its firmware node, probe it if it hasn't already. The goal is to reduce deferred probes to a minimum, as it makes it very cumbersome to find out why a device failed to probe, and can introduce very big delays in when a critical device is probed. Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> --- Changes in v2: None drivers/dma/of-dma.c | 2 ++ 1 file changed, 2 insertions(+)