Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4371754imm; Mon, 14 May 2018 06:41:39 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpEB3VJcrgx6RK5z3HvrpGoynTpJf0mUd66Kwi7KETjqLSXvstOdYVAJstD2nev80JZfOIk X-Received: by 2002:a17:902:8685:: with SMTP id g5-v6mr9769287plo.302.1526305299174; Mon, 14 May 2018 06:41:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526305299; cv=none; d=google.com; s=arc-20160816; b=Gr4UReso4dfZHwrIHhpSFQ4KO1FwDuJ8yO3iTiSJPR0r8FLSSw4UZrEsoHNOhaiswS e+G5WzmIS0oxRt62FCqdVYpCY5gtlYWW8APTi+wdcGd/zrAKp0cNIYTGhTwxRJqrcJau 1+A5emCcpdqOsVsM3MzRKgu/I3MIXNGngUzvzS2/GZL9lZgLwPFpPoYaso8MCSQTHs1E 33lANJZjW8r7P+vg3bDi4W5WqiL5+F5eISAjowpmiaUh9feR045jKIhostgyY5YMXVih a3ht9SLGvl3SPuTC6x6FjMBZbZbUviWSAp426jkvmaOMQ0vB2+AbzL2M37P07UtbG/t6 p9zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:spamdiagnosticmetadata:spamdiagnosticoutput :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=e3OMRMa4AYf1LhkoHiQtQvylpzEOMhNzLZmSsFhfNDk=; b=KaJTJNM5KOyU1MKftB/LCbtCKpVMOmq90TzOV3oo4N67Xr8zNg64pm9ZooyMXgg3/i ts4/PfkR0E4J8r0zG7DKd5BMMggg+YMBUGudk8TWYeD1iEU9IXr952skdkAUw1Trcc35 KWJiffNrVqYhpKO5XJ7UxghoMzHTUQ0jWMjYr38/vF8FYXGGmgpmITig9y6sELG/qnIG qRoehpQkv7au7BiSA/SWsur89Rbx+36ixEnG9arasd4ThmSHNztHe+NeluhcdgSyD4MD cYZc/AH51HRLRsIl193Wy9mfV4F2jeQQa99n6oikDRhfrsZLfTzpCLYBPU3xPaQSePPJ vmAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=vjmMbYcm; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1-v6si9118545plj.122.2018.05.14.06.41.25; Mon, 14 May 2018 06:41:39 -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; dkim=pass header.i=@nxp.com header.s=selector1 header.b=vjmMbYcm; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932213AbeENNj6 (ORCPT + 99 others); Mon, 14 May 2018 09:39:58 -0400 Received: from mail-eopbgr20067.outbound.protection.outlook.com ([40.107.2.67]:28612 "EHLO EUR02-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753740AbeENNjx (ORCPT ); Mon, 14 May 2018 09:39:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=e3OMRMa4AYf1LhkoHiQtQvylpzEOMhNzLZmSsFhfNDk=; b=vjmMbYcmnew0ky0MvnIgALU4gR6m551N09UHig6BY7vNdJboYO2szPoLH6ewUz72r+z3h/tqoBd2Iso9WLr3901tqLbxqxCXkK5yDB2YerrcXKZEXvll+aNcp5L7L7NWQDwD2VTUwXh5XGrcMtvmY4dneaPk9X9mDwzHNxmEVPo= Received: from AM6PR0402MB3864.eurprd04.prod.outlook.com (52.133.29.151) by AM6PR0402MB3864.eurprd04.prod.outlook.com (52.133.29.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.755.16; Mon, 14 May 2018 13:39:50 +0000 Received: from AM6PR0402MB3864.eurprd04.prod.outlook.com ([fe80::98a3:8b6d:67ba:d38b]) by AM6PR0402MB3864.eurprd04.prod.outlook.com ([fe80::98a3:8b6d:67ba:d38b%13]) with mapi id 15.20.0755.018; Mon, 14 May 2018 13:39:50 +0000 From: Laurentiu Tudor To: Nipun Gupta , "robin.murphy@arm.com" , "will.deacon@arm.com" , "mark.rutland@arm.com" , "catalin.marinas@arm.com" CC: "hch@lst.de" , "gregkh@linuxfoundation.org" , "joro@8bytes.org" , "robh+dt@kernel.org" , "m.szyprowski@samsung.com" , "shawnguo@kernel.org" , "frowand.list@gmail.com" , "bhelgaas@google.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 5/6 v3] bus: fsl-mc: supoprt dma configure for devices on fsl-mc bus Thread-Topic: [PATCH 5/6 v3] bus: fsl-mc: supoprt dma configure for devices on fsl-mc bus Thread-Index: AQHT3hJvQleVKzMAW0qSPwbA0z2ep6QvVagA Date: Mon, 14 May 2018 13:39:50 +0000 Message-ID: <5AF9916E.8000504@nxp.com> References: <1524824826-29473-1-git-send-email-nipun.gupta@nxp.com> <1524824826-29473-6-git-send-email-nipun.gupta@nxp.com> In-Reply-To: <1524824826-29473-6-git-send-email-nipun.gupta@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [86.34.165.90] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;AM6PR0402MB3864;7:NLZrhbviMNullw7ln7fkt2oZ7Px2dLtKuUGPWCzSuY4fJgdQW+R5LPbGzGx+xwOsP/dD6B3KE3HnNr0+1awIjmrekr9hx7cwTLlH+XPbzoMPys4ln0m3mfyXM7z9ZPuKr/lsPjcT49dJTSPIX+IBTP6jJBkhGGnqawCqGWS+beUtyE10T8kjj8iVgJmu6Cf0l3eTndIu3BcnZ8RU8FiC/0a82lffDvK+LXaOgpniGyIIqubUU6zVpHAbO2p4oI5R x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(48565401081)(2017052603328)(7153060)(7193020);SRVR:AM6PR0402MB3864; x-ms-traffictypediagnostic: AM6PR0402MB3864: authentication-results: spf=none (sender IP is ) smtp.mailfrom=laurentiu.tudor@nxp.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(185117386973197); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231254)(944501410)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(6072148)(201708071742011);SRVR:AM6PR0402MB3864;BCL:0;PCL:0;RULEID:;SRVR:AM6PR0402MB3864; x-forefront-prvs: 067270ECAF x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(366004)(39860400002)(39380400002)(376002)(346002)(199004)(189003)(54094003)(6116002)(5660300001)(105586002)(6486002)(5250100002)(2501003)(229853002)(97736004)(106356001)(14454004)(7416002)(305945005)(7736002)(81156014)(6436002)(81166006)(8676002)(6512007)(25786009)(86362001)(80316001)(54906003)(3846002)(39060400002)(110136005)(2201001)(59896002)(6246003)(6506007)(446003)(53546011)(478600001)(87266011)(8936002)(2906002)(44832011)(316002)(102836004)(99286004)(11346002)(4326008)(26005)(486006)(53936002)(2616005)(476003)(68736007)(3280700002)(66066001)(3660700001)(65816011)(36756003)(76176011)(33656002)(2900100001);DIR:OUT;SFP:1101;SCL:1;SRVR:AM6PR0402MB3864;H:AM6PR0402MB3864.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: r0ee4lt8YRCYBQ3dtEAXPzPCfR+VssfrKvVMx3fS+3Y3yel30LLBo/7sHjPJO0XEUKlEd1ilSTA4rH3pf0LuE6GUwaI16/lwNuxypf5xDNoGr/sF2OLWVxZjCe53eQGf+VgqklLPerqeP5++HQikh96+RlbeodPfIl3ifrwB45v9GJaMpqrLxFUqjDOxG9vD spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="Windows-1252" Content-ID: <03F01C290B624D4B87A4DE017A3CA11B@eurprd04.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 5728b3a9-2536-4f03-9314-08d5b9a02a7d X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5728b3a9-2536-4f03-9314-08d5b9a02a7d X-MS-Exchange-CrossTenant-originalarrivaltime: 14 May 2018 13:39:50.0634 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR0402MB3864 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Nipun, On 04/27/2018 01:27 PM, Nipun Gupta wrote: > Signed-off-by: Nipun Gupta > --- > drivers/bus/fsl-mc/fsl-mc-bus.c | 16 ++++++++++++---- > 1 file changed, 12 insertions(+), 4 deletions(-) > > diff --git a/drivers/bus/fsl-mc/fsl-mc-bus.c b/drivers/bus/fsl-mc/fsl-mc-= bus.c > index 5d8266c..624828b 100644 > --- a/drivers/bus/fsl-mc/fsl-mc-bus.c > +++ b/drivers/bus/fsl-mc/fsl-mc-bus.c > @@ -127,6 +127,16 @@ static int fsl_mc_bus_uevent(struct device *dev, str= uct kobj_uevent_env *env) > return 0; > } > > +static int fsl_mc_dma_configure(struct device *dev) > +{ > + struct device *dma_dev =3D dev; > + > + while (dev_is_fsl_mc(dma_dev)) > + dma_dev =3D dma_dev->parent; > + > + return of_dma_configure(dev, dma_dev->of_node, 0); > +} > + > static ssize_t modalias_show(struct device *dev, struct device_attribut= e *attr, > char *buf) > { > @@ -148,6 +158,7 @@ struct bus_type fsl_mc_bus_type =3D { > .name =3D "fsl-mc", > .match =3D fsl_mc_bus_match, > .uevent =3D fsl_mc_bus_uevent, > + .dma_configure =3D fsl_mc_dma_configure, > .dev_groups =3D fsl_mc_dev_groups, > }; > EXPORT_SYMBOL_GPL(fsl_mc_bus_type); > @@ -616,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; This change seems a bit unrelated to the patch subject. I wonder if it=20 makes sense to split it it in a distinct patch. --- Best Regards, Laurentiu=