From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0075.outbound.protection.outlook.com [104.47.1.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 40qmpJ6qtyzDqFj for ; Tue, 22 May 2018 17:03:51 +1000 (AEST) From: Laurentiu Tudor To: Nipun Gupta , "robin.murphy@arm.com" , "will.deacon@arm.com" , "robh+dt@kernel.org" , "robh@kernel.org" , "mark.rutland@arm.com" , "catalin.marinas@arm.com" , "gregkh@linuxfoundation.org" , "bhelgaas@google.com" CC: "hch@lst.de" , "joro@8bytes.org" , "m.szyprowski@samsung.com" , "shawnguo@kernel.org" , "frowand.list@gmail.com" , "iommu@lists.linux-foundation.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linuxppc-dev@lists.ozlabs.org" , "linux-pci@vger.kernel.org" , Bharat Bhushan , "stuyoder@gmail.com" , Leo Li Subject: Re: [PATCH 6/7 v5] bus: fsl-mc: set coherent dma mask for devices on fsl-mc bus Date: Tue, 22 May 2018 07:03:44 +0000 Message-ID: <5B03C0D0.1090609@nxp.com> References: <1526824191-7000-1-git-send-email-nipun.gupta@nxp.com> <1526824191-7000-7-git-send-email-nipun.gupta@nxp.com> In-Reply-To: <1526824191-7000-7-git-send-email-nipun.gupta@nxp.com> Content-Type: text/plain; charset="Windows-1252" MIME-Version: 1.0 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 05/20/2018 04:49 PM, Nipun Gupta wrote: > of_dma_configure() API expects coherent_dma_mask to be correctly > set in the devices. This patch does the needful. > > Signed-off-by: Nipun Gupta Acked-by: Laurentiu Tudor --- Best Regards, Laurentiu > --- > drivers/bus/fsl-mc/fsl-mc-bus.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/bus/fsl-mc/fsl-mc-bus.c b/drivers/bus/fsl-mc/fsl-mc-= bus.c > index fa43c7d..624828b 100644 > --- a/drivers/bus/fsl-mc/fsl-mc-bus.c > +++ b/drivers/bus/fsl-mc/fsl-mc-bus.c > @@ -627,6 +627,7 @@ int fsl_mc_device_add(struct fsl_mc_obj_desc *obj_des= c, > mc_dev->icid =3D parent_mc_dev->icid; > mc_dev->dma_mask =3D FSL_MC_DEFAULT_DMA_MASK; > mc_dev->dev.dma_mask =3D &mc_dev->dma_mask; > + mc_dev->dev.coherent_dma_mask =3D mc_dev->dma_mask; > dev_set_msi_domain(&mc_dev->dev, > dev_get_msi_domain(&parent_mc_dev->dev)); > } >=