Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2497396imu; Mon, 17 Dec 2018 03:03:21 -0800 (PST) X-Google-Smtp-Source: AFSGD/U2F3oZ8wM4ZZzKxKBOuCCf99jIYShVgFsc+q8MMCBc39gjsmt4J2FHQw6+RrrTzu+6C4yA X-Received: by 2002:a17:902:264:: with SMTP id 91mr12386251plc.108.1545044601558; Mon, 17 Dec 2018 03:03:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545044601; cv=none; d=google.com; s=arc-20160816; b=mN/6Snhrj2brHVBhj4NiH7805jOGMbnd5mzBRwA+yaL1brk7cDaaLTyOERv8SHOXu3 vR7UbF5T6BNnngXXKeEJOeMi5j4IJTI334fmbW2XcBnemdmsT5osNF3zWfWAHaZaaFAj Aj5jcFhrDpBfhxLfBC8qbL7SkNlgLGAkE8bZyV3dilZ41yo6KAjvTzeuqOL0Db0j67q+ 0u+GpFxUC4YOntJkQgHpJ5pJwYXt1jh07lTV2Mtq97Y4y9su03CksK/Sm3Mo9DzX9xtf vCyGeCqIklXXYdrsWDcQ7Q1CkfruchbEhH88y+YTHmEKWSSzmT94n2Jq5IQxl2/DDVT/ 7I4w== 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 :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=ywSyVKzvZmQ1853Jc81+cpkTcp4zUBRtSDXt24DS9mM=; b=wgvpD8/5SG9FkZkngMisRPxWUwnEZiToRUDhMcedyylgelTfrLk/KdeGE8Uu9aEtjP aoZp5LGvjzaZk2h/02iC01xxhxiyt5xKdJQAP461G840npp2dOlw/g+l363zfdJy/wBy JBTRaBHccggAmMJqCT3JRtX9uiF3PySqpagpMdLFp8uQHih8qZ+1iEktOaOc8fheT5Gs Rbqia3BptEKRufKBog1DE4ZkRo0t9NfglSfCq4pc4wKjJR8Zt8QxJztJ5z1Z5H2rSvsl MZWfcQSJTQlh7QoOv0JZoBVouUZnZjei64KK/ABjGtI5popJJrJdSVnGVE9Jq10/mPie bnig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b="SMZb/pF+"; 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 f15si10174782plr.144.2018.12.17.03.03.06; Mon, 17 Dec 2018 03:03:21 -0800 (PST) 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="SMZb/pF+"; 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 S1731579AbeLQKqO (ORCPT + 99 others); Mon, 17 Dec 2018 05:46:14 -0500 Received: from mail-eopbgr80084.outbound.protection.outlook.com ([40.107.8.84]:13067 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726566AbeLQKqO (ORCPT ); Mon, 17 Dec 2018 05:46:14 -0500 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:X-MS-Exchange-SenderADCheck; bh=ywSyVKzvZmQ1853Jc81+cpkTcp4zUBRtSDXt24DS9mM=; b=SMZb/pF+Md9njpmGz8+9FdcJkkpAmthZ5DVm2y7d7fEq8OM8pzXkFqF5K1YmIW3+z1pDt8nRd/0V6oVOSprav6YPOUZDXbaB6MWzoADW5JGj2ScASx3hCzBwenttqYTevInPygPCoXMYzDz0WIf6QqYx9+Y9LJQemG7cdFzttr8= Received: from VI1PR04MB5134.eurprd04.prod.outlook.com (20.177.50.159) by VI1PR04MB4400.eurprd04.prod.outlook.com (20.177.55.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1425.20; Mon, 17 Dec 2018 10:46:10 +0000 Received: from VI1PR04MB5134.eurprd04.prod.outlook.com ([fe80::116d:6493:b392:f7ca]) by VI1PR04MB5134.eurprd04.prod.outlook.com ([fe80::116d:6493:b392:f7ca%5]) with mapi id 15.20.1425.021; Mon, 17 Dec 2018 10:46:10 +0000 From: Laurentiu Tudor To: Ioana Ciornei , Leo Li , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "netdev@vger.kernel.org" CC: Horia Geanta , Ioana Ciocoi Radulescu , Roy Pledge Subject: RE: [PATCH 0/5] soc: fsl: add device links support for devices on the fsl-mc bus Thread-Topic: [PATCH 0/5] soc: fsl: add device links support for devices on the fsl-mc bus Thread-Index: AQHUkKht9srZH6NoRk2FfJWJEHs4daWCyTSQ Date: Mon, 17 Dec 2018 10:46:09 +0000 Message-ID: References: <1544460591-14888-1-git-send-email-ioana.ciornei@nxp.com> In-Reply-To: <1544460591-14888-1-git-send-email-ioana.ciornei@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=laurentiu.tudor@nxp.com; x-originating-ip: [192.88.166.1] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;VI1PR04MB4400;6:miRqneAWyWmq9s5UQmp+/PGZxM6kLGiKiZLi0yoj74uXXlFMBKi4J+5fWxsDrOx6bxHeCKsv+K+PLan+LOjofyzwkQHYMBFgqLJF+i8RuFr4m/yscXIhpaK602fjzdQMlQEwmUxxRojT3YRdsK9xIXVuVwxMArqS0s+S0G8GVtjHqOaJnk+kUI2XyDHUJoay0v+Etf5BErUINRqETzXzVL9Flkkg1MZPmeR1NQaTTJorpAIE+5JFZhQm3RJr6QNNNfdIR6El27eSdEjkSaUgH2fC4VM9RZ0SJ2se1g5dYMO12ntQll8eKFMX0NeS8wFhvq6+MOwh5PE+u7o4nsO+ODLEieu9Wch2vZmZNkmiH6ywQ87h8Z3hV+z9uenMOtGqw9KaGzMC8VxicZWFe5zOnHqIL90wfnByo9EmRW+sgh8mac5qEBa+AsBGqg0YzE9XGju4x+F3Z6kI4DH9UOEtYA==;5:hVeeHlxDOtTbroyntHYBViYfcGTkpIjP9JMdHp/ZLWinM2H6YW1tq/7LQk6eET9S7aCM8r+4XGSzOBeSgCCHbAgez7cS5Y+p5N/OasaDa02F2S2W0L6/ZBqE0Z8Omrqc3oYIhPy0yPsOATpG+aYrnesATwYbgrB3TKWZW91CCsY=;7:4Q2NClYqCkn/asLbJ15A5aGJablEYRiEe4PpHLnavmxzUvQ3BJnLQqTHwEpENGfnwgr5hw4r9vKaTEkqjAJctAZHF2KmV0B9UVaGWV4R6cm1SwPHM7VNEqHK57J5ju6uK/ILS3dBTJL9MEtih1kq2A== x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: e1c39fcf-f6f5-4726-e560-08d6640cdb43 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:VI1PR04MB4400; x-ms-traffictypediagnostic: VI1PR04MB4400: x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(3230021)(999002)(5005020)(6040522)(2401047)(8121501046)(3231475)(944501520)(52105112)(93006095)(93001095)(3002001)(10201501046)(6055026)(148016)(149066)(150057)(6041310)(20161123558120)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(201708071742011)(7699051)(76991095);SRVR:VI1PR04MB4400;BCL:0;PCL:0;RULEID:;SRVR:VI1PR04MB4400; x-forefront-prvs: 08897B549D x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(136003)(366004)(39860400002)(396003)(346002)(376002)(13464003)(199004)(189003)(256004)(33656002)(229853002)(68736007)(476003)(74316002)(7736002)(71190400001)(71200400001)(186003)(106356001)(54906003)(86362001)(4326008)(14444005)(44832011)(2201001)(446003)(14454004)(99286004)(486006)(11346002)(110136005)(305945005)(2906002)(55016002)(97736004)(53936002)(2501003)(6116002)(3846002)(6246003)(316002)(105586002)(102836004)(6436002)(9686003)(7696005)(8676002)(66066001)(478600001)(76176011)(81156014)(81166006)(6506007)(25786009)(26005)(8936002)(5660300001);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB4400;H:VI1PR04MB5134.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: kE9RT67xb4lRwSPRbSY8+CNQjvmzON+MQrMIhELYdTBmO88o4DmmMxlwy33XwUa8cwMpHRBI1jHMqYkWG4cy5hYSKn7KiTttkrEy65fmQnBcABfmOhN8HJ4I9OCFP52GTqtzeiyqcz3rjvPUF+thxxsD5IPUs9odY7q9fLJ4RRGimrwjCPxoNtqmTw5dhXfzpov/RBacpHd1OBeaA1+mBr/j08WVexYCt70PeVA/9y6mvinxXONiQJZ5pc1eEbw51/FXYHeLJ6/e6eL7qkLktYkPVzzNVYLZASvlXgRfqDvmAWxpN2f09axOXWKPu2hj spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e1c39fcf-f6f5-4726-e560-08d6640cdb43 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Dec 2018 10:46:09.8827 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4400 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Ioana Ciornei > Sent: Monday, December 10, 2018 6:50 PM >=20 > The fsl-mc bus discovers and exports devices dynamically allocated > by the Management Complex firmware. > This patch set adds the ability to automatically create a device link > between a consumer device on the fsl-mc bus and a supplier one. > For example, a dpni device (a network interface) requests access to a > dpio device (I/O portal) using the dpaa2_io_service_register function > which is enhanced to also add the corresponding device link between > them. >=20 > The first 3 patches set the stage for a proper handling of device > links while the following 2 are the ones that add the actual links. >=20 > The internal management of the links is not exported to the consumer > driver, but it's rather included in the functions that actually allocate > the provider device: fsl_mc_portal_allocate, fsl_mc_object_allocate and > dpaa2_io_service_register. >=20 > Ioana Ciornei (4): > soc: fsl: dpio: keep a per dpio device MC portal > soc: fsl: dpio: store a backpointer to the device backing the dpaa2_io > soc: fsl: dpio: add a device_link at dpaa2_io_service_register > bus: fsl-mc: automatically add a device_link on > fsl_mc_[portal,object]_allocate >=20 > Roy Pledge (1): > soc: fsl: dpio: perform DPIO Reset on Probe >=20 > drivers/bus/fsl-mc/fsl-mc-allocator.c | 11 +++++++++++ > drivers/bus/fsl-mc/mc-io.c | 13 +++++++++++++ > drivers/crypto/caam/caamalg_qi2.c | 6 +++--- > drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c | 9 +++++---- > drivers/soc/fsl/dpio/dpio-cmd.h | 1 + > drivers/soc/fsl/dpio/dpio-driver.c | 18 +++++++++--------- > drivers/soc/fsl/dpio/dpio-service.c | 23 > ++++++++++++++++++++--- > drivers/soc/fsl/dpio/dpio.c | 23 > +++++++++++++++++++++++ > drivers/soc/fsl/dpio/dpio.h | 4 ++++ > include/linux/fsl/mc.h | 1 + > include/soc/fsl/dpaa2-io.h | 9 ++++++--- > 11 files changed, 96 insertions(+), 22 deletions(-) Reviewed-by: Laurentiu Tudor --- Best Regards, Laurentiu