Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3985199imu; Mon, 10 Dec 2018 11:03:31 -0800 (PST) X-Google-Smtp-Source: AFSGD/XD9nlRE2YCRAksbzjXpm7LF1pue8ZArILGYnxgf9PDAOXr6oR2dyvZkprXHyTFWk/IYuyH X-Received: by 2002:a17:902:780c:: with SMTP id p12mr12852133pll.197.1544468611926; Mon, 10 Dec 2018 11:03:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544468611; cv=none; d=google.com; s=arc-20160816; b=eL8Z5uujzXhfvNHELWARLYRrMsAF5iAEQxfLJol095C/bTRSJf0MYXgYOCzO1abwkT JnwMDjPmCjwU0Qk1VFB8HHaN60D9kZyyXUB0AM6TPCuviXK1bF0+YB62SLc4uOolWaGU Cngi1Aa4RhRBrxojTP1GjPGXjeZ9I7H7wi6N8En5CF+kzJYgPqCes1VdUT9dktsCrTuP bB5xFE9WED/B7HFT2Yb6UJfOS1w+ODVHzWdpw4L5cbEdahNIPnvWBQ1CZFCWh7Mqdk67 neVa6+caQJLeEidmqHq2kyQT32E4CltlU0B1hnF5epW40eKkmR8thJaw0f/tSQp8gxCD kveA== 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:message-id:date:thread-index:thread-topic:subject :cc:to:from:dkim-signature; bh=YfB6S8viis25hw5/MhMRPiBD5zG11+uXI558SSJ4WPw=; b=Ape8KSsbKJc3BXfdeuoUgx6XFOJIUACr//UKQVCf7LuRAPuOBhMDqHnpeG6kYB3zqr rxCoSZR6HWw/u5DYupJqDHCmBMxqSMKN1ChV4nDOd/k3xIk7f93bIpnTTKTxTDnZk8wl vIrrTRH6f4Ay923OVrDmW3HubfXsn9Z2nXM5+SpK31i0tPibI1eZGqLzGuBnowyUIMHP uu7twhhey+PIPsHhlzSNLy4cJiWmZ2ivFEyrzXW5WS0EB2v+N2ls5OxsvZyw0ECtugwq V+JKVAKwl773mcJe4EqAuzxEYkD2wTElRxFF7A22j6C8gxc+fu2cDNE42K++cVz5hpav 8coQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b="TzPnW/TC"; 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 p8si10652018pls.83.2018.12.10.11.03.15; Mon, 10 Dec 2018 11:03:31 -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="TzPnW/TC"; 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 S1727673AbeLJQuW (ORCPT + 99 others); Mon, 10 Dec 2018 11:50:22 -0500 Received: from mail-eopbgr70059.outbound.protection.outlook.com ([40.107.7.59]:24256 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727062AbeLJQuV (ORCPT ); Mon, 10 Dec 2018 11:50:21 -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=YfB6S8viis25hw5/MhMRPiBD5zG11+uXI558SSJ4WPw=; b=TzPnW/TCqG4PS/k1xoardZP4e1ndyy96fqfU7fzGj0PrbSG3v11jPzgXEcT5yjhHkuVA6LE7yUyZbt5+DKqnZnk4JnU5syoLXUjOVCmUc0bUfJ60HDxZZ/X5NUoHlntX3EoLnMhtfmgGdV7ie8Kzma0wbbKY1YeuOy8qPNI9rSM= Received: from VI1PR0402MB2800.eurprd04.prod.outlook.com (10.172.255.18) by VI1PR0402MB2750.eurprd04.prod.outlook.com (10.175.22.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1404.21; Mon, 10 Dec 2018 16:50:17 +0000 Received: from VI1PR0402MB2800.eurprd04.prod.outlook.com ([fe80::d9a8:33a8:4241:be86]) by VI1PR0402MB2800.eurprd04.prod.outlook.com ([fe80::d9a8:33a8:4241:be86%11]) with mapi id 15.20.1404.026; Mon, 10 Dec 2018 16:50:17 +0000 From: Ioana Ciornei To: Leo Li , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "netdev@vger.kernel.org" CC: Laurentiu Tudor , Horia Geanta , Ioana Ciocoi Radulescu , Roy Pledge , Ioana Ciornei Subject: [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: AQHUkKht9srZH6NoRk2FfJWJEHs4dQ== Date: Mon, 10 Dec 2018 16:50:16 +0000 Message-ID: <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: x-clientproxiedby: VI1PR08CA0145.eurprd08.prod.outlook.com (2603:10a6:800:d5::23) To VI1PR0402MB2800.eurprd04.prod.outlook.com (2603:10a6:800:ad::18) authentication-results: spf=none (sender IP is ) smtp.mailfrom=ioana.ciornei@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [86.34.165.90] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;VI1PR0402MB2750;6:s5EtzLgR/ynEiIrpYTd6kv2Ze5JWEkDUxvw7VnpAgrGnKxEdELl5v+wN0+jjngOTkgUG3/t0nZpE/GsCODi4FzpoWDKAe9kH4FtjUlU4uDYyrbBmVKxo61mLfAdjCUjwiUPlwNGSNCnBpQz8sNRcmKmmfIvhyw3xbqbd3+9aBNPHXs3YR1b0KGV+Zah2aqkaRruvl52EQ09GLALk6KW20ttpvIM+zz+3m0g1eG3mAeoF2S6O/bVuSlGN1zdCBjFMNDzcZzwbqKmcxEkBtZ5ZgEZVtU8zGKp0BI0UnuGODZaWN/Q+hYmlSvwupDfY0n3r3CL5nsZMu83DaCSD7KpKF+U9wmMoo2+QIdDJjaTnrWLM7/bNdB9HmQe3lRG5rWd8dj8llw1Ln8yQwavhsOymxzjyzu10WMKhuBxt3RmoA4PzOZ9l2+BGLUT5DtJxxTxcebJB6vO3qsbpQp9TBGOWIA==;5:VTss370IdmPk1DiVZMQV19qdDrFY3rxXRwsuz20fcBImRfOnG0dqf9ZEoHimbiRhaxF/+IXnE3+1yd7XINXmQwMoRfXutw+2WtIX5L0DZh0sTjBP03UQ4P3jhYdS2vD4j4AQjXWScZfuVJiQYT8OJAWdu0hKS4ScCuHGigrEGWs=;7:Xu0tfzxC/4X2p0nz8sfuapLXxEaePUI6/evoWK2Ql5/m6yIIkl05LrdddhKqC22PY3/Drv+8tfed/kp8dFMlEikjM6+p9XbQ2+AyYiawQrr7vVOjlDBbbrXPV/lZSeun3FNLPnB9qSiHGRKpoXRcsw== x-ms-office365-filtering-correlation-id: 60cf9629-1836-4991-4505-08d65ebf8ffe x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390098)(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:VI1PR0402MB2750; x-ms-traffictypediagnostic: VI1PR0402MB2750: x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(3002001)(3231455)(999002)(944501520)(52105112)(93006095)(93001095)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(20161123562045)(20161123564045)(201708071742011)(7699051)(76991095);SRVR:VI1PR0402MB2750;BCL:0;PCL:0;RULEID:;SRVR:VI1PR0402MB2750; x-forefront-prvs: 08828D20BC x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(396003)(366004)(136003)(376002)(346002)(199004)(189003)(186003)(2501003)(44832011)(53936002)(2616005)(71190400001)(476003)(2201001)(3846002)(6116002)(71200400001)(66066001)(486006)(305945005)(7736002)(86362001)(68736007)(36756003)(6436002)(81156014)(14444005)(316002)(110136005)(8936002)(14454004)(81166006)(478600001)(256004)(54906003)(25786009)(8676002)(6486002)(99286004)(102836004)(106356001)(26005)(105586002)(386003)(2906002)(97736004)(5660300001)(6506007)(52116002)(6512007)(4326008);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR0402MB2750;H:VI1PR0402MB2800.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: DQz+G2p8YcRWyWsDh0g1X5l7Pcz0gDzRWZy1qTrqdeZiJ20dfSbpjd+UGRqGGPhKeSuQb9ZeBxzK1H3fpFlWlIh/ZpERhrec4RQFiLGiiTA0K4GTt1jlZc097rXG/XbV6XSX0MLqsFbrnUja2XailujrkSF/AODrKLyLftyW+EQ4AJLTnCFjOTk1Vuo3ctgybtXR5rtsQ1ECDFWRvnuqMsPdtiblcWOeJa7yQO/oAlg5PqHhFeVNURHq94I4xW25U9y834/cxsZ46D+29qTRjphqxTYmsoINu1keG8RBMN+i8Of0p0e/VKMdXf2d6kGh spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 60cf9629-1836-4991-4505-08d65ebf8ffe X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Dec 2018 16:50:16.9646 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB2750 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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. 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. 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 Roy Pledge (1): soc: fsl: dpio: perform DPIO Reset on Probe 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(-) --=20 1.9.1