From patchwork Sun Sep 24 09:04:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mikko Perttunen X-Patchwork-Id: 9967847 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 789FA602CB for ; Sun, 24 Sep 2017 09:09:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5B40D28C5D for ; Sun, 24 Sep 2017 09:09:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3EA7428DE1; Sun, 24 Sep 2017 09:09:15 +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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED 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 3FECF28C5D for ; Sun, 24 Sep 2017 09:09:13 +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=t3uUbAzZhtU1RWGW18lOcdbjsGfo2BbEz6/gTQRSA0M=; b=S1w zuVTto0vrKxhPAhshEwhHM2geIjMGJKaexfEEh1iR/xeR5msAgmnMMvvHsKlPRNoSI2DDQ3QggEYj qMJ+hENut96GpKkE9I8Ah3TQabxJ65fDDg3WxjeHDMZGro4nWF9JeqBiTWQkmjVJKGa/fQGoNiGQ+ c+riNX3A1Y5Nt/Ex7n0TYssHB/V7PDldccj5CTt81n6ndGabSPjrtVmPMrpvvuNtTAiewLVdZeCzt p9v+gw4sm+yr7vEsO9TD17cPw1KfUQB1dRsNsSqETlBIvHPx7U08Ni3UNTg2G1sCGettZuoX0/vEz xFUnDBuFIKU9cjwp2PHNU9MKtGXHI7Q==; 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 1dw2uA-0000bn-CT; Sun, 24 Sep 2017 09:08:50 +0000 Received: from mail.kapsi.fi ([2001:67c:1be8::25]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dw2u4-0000S6-GW for linux-arm-kernel@lists.infradead.org; Sun, 24 Sep 2017 09:08:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kapsi.fi; s=20161220; h=Message-Id:Date:Subject:Cc:To:From; bh=eKvORQMAbVZ94jB5SdEoG/uk9yph1sIgHSKxSWoOIAk=; b=qsCqQsUUhTf9Dt6+mYyBh9NHbq5JxdxyfuTyHx+fNVpm7QA5pEWmJ9WrFhmLb0XECtzOB28KcrDI+RcFeDyxx79fQ4g9VAhJybYpOskbU5grtdUyqWH7gntRsQ2SfXCejnghxa5bZR/1i9oUJNJ6jqbnWEKDtzJpaCfCcBWCSwVJ1IpOMGHkHNAgfchC+/dEnA0zTx3Q8SQVyw0Dni9gh7sPoTP0Y5oZChCkMUX+mdREmuNRJnO0yb8iBxAKlREiIGvQ8lhfVYY0T4WMMKT8ghn/lGgDkLJbRl/tiZgLT+n15548eBIYv7sfF+EMdaDNnEGcNmTJA9dSJRIsvHzAuQ==; Received: from dsl-hkibng22-54f983-249.dhcp.inet.fi ([84.249.131.249] helo=localhost.localdomain) by mail.kapsi.fi with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1dw2tV-0005sr-R2; Sun, 24 Sep 2017 12:08:09 +0300 From: Mikko Perttunen To: thierry.reding@gmail.com, jonathanh@nvidia.com, hch@lst.de, robin.murphy@arm.com, robh@kernel.org Subject: [PATCH 1/2] gpu: host1x: Call of_dma_configure after setting bus Date: Sun, 24 Sep 2017 12:04:53 +0300 Message-Id: <20170924090454.28116-1-mperttunen@nvidia.com> X-Mailer: git-send-email 2.14.1 X-SA-Exim-Connect-IP: 84.249.131.249 X-SA-Exim-Mail-From: mperttunen@nvidia.com X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170924_020844_800749_9991AB59 X-CRM114-Status: UNSURE ( 9.37 ) X-CRM114-Notice: Please train this message. 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: linux-tegra@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Mikko Perttunen 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 of_dma_configure now checks the device's bus before configuring it, so we need to set the device's bus before calling. Signed-off-by: Mikko Perttunen --- drivers/gpu/host1x/bus.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/host1x/bus.c b/drivers/gpu/host1x/bus.c index f9cde03030fd..66ea5acee820 100644 --- a/drivers/gpu/host1x/bus.c +++ b/drivers/gpu/host1x/bus.c @@ -403,12 +403,13 @@ static int host1x_device_add(struct host1x *host1x, device->dev.coherent_dma_mask = host1x->dev->coherent_dma_mask; device->dev.dma_mask = &device->dev.coherent_dma_mask; dev_set_name(&device->dev, "%s", driver->driver.name); - of_dma_configure(&device->dev, host1x->dev->of_node); device->dev.release = host1x_device_release; device->dev.of_node = host1x->dev->of_node; device->dev.bus = &host1x_bus_type; device->dev.parent = host1x->dev; + of_dma_configure(&device->dev, host1x->dev->of_node); + err = host1x_device_parse_dt(device, driver); if (err < 0) { kfree(device);