Received: by 10.213.65.68 with SMTP id h4csp477096imn; Thu, 22 Mar 2018 01:22:02 -0700 (PDT) X-Google-Smtp-Source: AG47ELspOEJMMSU4N72OnEzzFPLqD1jGjh4fpsH3WNUgRNCpNsb4ELlfTzag4EalmbekCYiKxjEe X-Received: by 10.101.78.133 with SMTP id b5mr17309492pgs.229.1521706922157; Thu, 22 Mar 2018 01:22:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521706922; cv=none; d=google.com; s=arc-20160816; b=PuzBjwBiOrW8+XGpe2MbTuAzmIch/iiHgD9v5OABu/8pFmLX89wY6drhlhmY9u76Qm mFcUVgbNcFej4byic9Od0CIZRYTduqRx9cIHWUsIjRUmR8E4ToQ14FUavZL2akRHsy30 uTT/e+Spz7i4YhnKCp1tvImJDOUgBUSu8dbqRNVkHlIcvgcAQFN3dHoReEF0yE2lgJ0T TCnsaKkHGMKI0jeUbRe0ifoADZcX3w9gRZQgdKL4N3ov+I3khIrg5y5a3mPWlXCk8xHJ dzcfPUl8FNDy8gukJN1dYTdAClI3leCBfVcgqVDThrE02qchATJ8WGwMTwx1wBEgWj7k Q1NA== 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=aeDUYMgDuG2naCvDiR5Kqu80JnfR1ay51o3y0dRdd80=; b=vCYUwcm1vKg8whsLdOrU7G3Yns0CbLi+yZ1sifbAe0L2muB2B11CHxK9rQYL5bw9r5 aeTN4SrhfqHyUTQV5Q8fLpBX6d4+MbktBOZWL3s7VMC5d9eAt0LBkqZ12sjfJGiaHmhI QAbVShLqlx3xRqRONua4koxDZgjGuHh9fxzVtHuPrNTIfQ8yPdswPutNwysd9TFqMhqm mcB3bZ4sjE33PCsNauQX6EYrmV1CzbzPLXJMpjaLVzF56mc3ZG6TbwlafHnzqBI3cHIy 1Zg/EFjOTRhNIexL9EZK9uKFKGR0eta8OU8icCem1CzOu/6k+kUEHrdCzf9W9KNVMf3y RSPg== 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 p17si4065992pge.348.2018.03.22.01.21.47; Thu, 22 Mar 2018 01:22:02 -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 S1752828AbeCVITe (ORCPT + 99 others); Thu, 22 Mar 2018 04:19:34 -0400 Received: from verein.lst.de ([213.95.11.211]:46117 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752542AbeCVIT3 (ORCPT ); Thu, 22 Mar 2018 04:19:29 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id 9662FDE816; Thu, 22 Mar 2018 09:19:26 +0100 (CET) Date: Thu, 22 Mar 2018 09:19:26 +0100 From: Christoph Hellwig To: Nipun Gupta Cc: 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, thierry.reding@gmail.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 v2 2/2] drivers: remove force dma flag from buses Message-ID: <20180322081926.GC29444@lst.de> References: <1520868292-2479-1-git-send-email-nipun.gupta@nxp.com> <1521615323-4752-1-git-send-email-nipun.gupta@nxp.com> <1521615323-4752-2-git-send-email-nipun.gupta@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1521615323-4752-2-git-send-email-nipun.gupta@nxp.com> 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 > --- a/drivers/dma/qcom/hidma_mgmt.c > +++ b/drivers/dma/qcom/hidma_mgmt.c > @@ -398,7 +398,7 @@ static int __init hidma_mgmt_of_populate_channels(struct device_node *np) > } > of_node_get(child); > new_pdev->dev.of_node = child; > - of_dma_configure(&new_pdev->dev, child); > + of_dma_configure(&new_pdev->dev, child, true); > /* > * It is assumed that calling of_msi_configure is safe on > * platforms with or without MSI support. Where did we mark this bus as force_dma before? > diff --git a/drivers/of/of_reserved_mem.c b/drivers/of/of_reserved_mem.c > index 9a4f4246..895c83e 100644 > --- a/drivers/of/of_reserved_mem.c > +++ b/drivers/of/of_reserved_mem.c > @@ -353,7 +353,7 @@ int of_reserved_mem_device_init_by_idx(struct device *dev, > /* ensure that dma_ops is set for virtual devices > * using reserved memory > */ > - of_dma_configure(dev, np); > + of_dma_configure(dev, np, true); Did all the callers of this one really force dma? I have a hard time untangling the call stacks unfortunately.