Received: by 10.192.165.148 with SMTP id m20csp1774058imm; Thu, 3 May 2018 05:19:49 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpRj27qhGnnW6vSu4wRus4/OIJrgqBda0xQIgywVMulMDk/3RDAKC2fz0LSKuJQ5n7xBxRM X-Received: by 10.98.251.20 with SMTP id x20mr22954440pfm.48.1525349989679; Thu, 03 May 2018 05:19:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525349989; cv=none; d=google.com; s=arc-20160816; b=PAwuTP/EKTz0m/YRF14F3XBYyOn+9TGFWLkFN/65yueErVBCppMnBzoPUrgIpLfBmj A+rq+59Dt/Jg5rqFaX0zZbacFnqFsyd6ow9Q6/nkn/hs1FgqmWRIcCcSmlo2mMrqLlS+ RgPyfeNHJHMH/rWH3IwOafAW4p4QsjY/hap8ltEoHJo+q+pN05sMLR71Da6dy1Jp7nnJ V3ffCrZxbftnJ4ZsPU+NUKdSa0uzpV8w32Kd8p14NATCjkmGOHOEwYGDa+lfsRfYccso Me6NCbFY4bKo0LMyH8ujPcMvxwn/8FggjE01WD8N6KLWnbVxxZuVpPVuBFULvmjj94fP TT2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=L8VBDVEZrdrxVuB0+WcZjB+1iky8X1Z2nebBsUs4uwo=; b=w61yJOncMkC0a1lJkamfeAlZmrq4xBZk8D/rFf/57DLNgHAfj0QzUvwm+SPjN+I4wS mZ6bpScceFkcGzTx2jBlGReb2A//HwUrZjmwldMVHf169W1ycla0MQfYLncKI1eSEgHH Vh7XKOwLjvSNcmyqGFphr3TiNv1d8GAZ8jVgwxLqoFn5655u4Af5nqmL3kqLpPadNq3H 17yG/S+i5wBGb3iKwG2lsByxT0k6MagouJgufIBe44Ib1UylOY7SeV+tsWcoE/llgaT8 NYikTqPODWONSTAQBwhkvcWL+xb2EwRouO2GRhN/ENw2MihLipmj188NSHsid+G22nFd gZug== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x10-v6si4750990plv.1.2018.05.03.05.19.35; Thu, 03 May 2018 05:19:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751875AbeECMTN (ORCPT + 99 others); Thu, 3 May 2018 08:19:13 -0400 Received: from verein.lst.de ([213.95.11.211]:43841 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751833AbeECMTH (ORCPT ); Thu, 3 May 2018 08:19:07 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id 9958168D38; Thu, 3 May 2018 14:21:47 +0200 (CEST) Date: Thu, 3 May 2018 14:21:47 +0200 From: Christoph Hellwig To: Thierry Reding Cc: Nipun Gupta , robin.murphy@arm.com, hch@lst.de, linux@armlinux.org.uk, gregkh@linuxfoundation.org, m.szyprowski@samsung.com, bhelgaas@google.com, zajec5@gmail.com, andy.gross@linaro.org, david.brown@linaro.org, dan.j.williams@intel.com, vinod.koul@intel.com, robh+dt@kernel.org, frowand.list@gmail.com, jarkko.sakkinen@linux.intel.com, rafael.j.wysocki@intel.com, dmitry.torokhov@gmail.com, johan@kernel.org, msuchanek@suse.de, linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, linux-wireless@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, dmaengine@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org, devicetree@vger.kernel.org, linux-pci@vger.kernel.org, bharat.bhushan@nxp.com, leoyang.li@nxp.com Subject: Re: [PATCH v4 1/2] dma-mapping: move dma configuration to bus infrastructure Message-ID: <20180503122147.GB18590@lst.de> References: <1520868292-2479-1-git-send-email-nipun.gupta@nxp.com> <1524883919-29484-1-git-send-email-nipun.gupta@nxp.com> <20180430104124.GE2476@ulmo> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180430104124.GE2476@ulmo> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 30, 2018 at 12:41:24PM +0200, Thierry Reding wrote: > On Sat, Apr 28, 2018 at 08:21:58AM +0530, Nipun Gupta wrote: > [...] > > diff --git a/drivers/gpu/host1x/bus.c b/drivers/gpu/host1x/bus.c > > index 88a3558..a9ec99d 100644 > > --- a/drivers/gpu/host1x/bus.c > > +++ b/drivers/gpu/host1x/bus.c > > @@ -314,6 +314,13 @@ static int host1x_device_match(struct device *dev, struct device_driver *drv) > > return strcmp(dev_name(dev), drv->name) == 0; > > } > > > > +static int host1x_dma_configure(struct device *dev) > > +{ > > + if (dev->of_node) > > + return of_dma_configure(dev, dev->of_node); > > The conditional here is somewhat pointless since the of_node should > always be set. If it weren't it should be considered a bug and this > function welcome to crash to make that very obvious. Agreed. Please remove the check for the resend.