Received: by 10.213.65.68 with SMTP id h4csp81639imn; Thu, 15 Mar 2018 10:09:32 -0700 (PDT) X-Google-Smtp-Source: AG47ELsL2NdWX4kOW1nMZJ+KTvZx5LUi3CJomuyo+e7vQl2pMWUvbH6SADd88pDuUPs+upY9dpmY X-Received: by 2002:a17:902:d892:: with SMTP id b18-v6mr3617658plz.241.1521133772853; Thu, 15 Mar 2018 10:09:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521133772; cv=none; d=google.com; s=arc-20160816; b=dUGCkvoKdTsLth1p9IFzzLd/fJjlXFxPis7PuNRac/AUiXZys/lkZwa7lr/cMV+6tg qNPQ5XDuIuB6DK8UEa5QSSS8ZA8zvhvB4vRrT7bjPMhAmJTsi/IO8KnGvJK0v5H1d0Z3 ltb7LH9rgKQ3t2DGWiHR1SsRZ97N9OTIfmCiXzYSyVpMOeXLWM2AWvpin9xkpHoJXk9i lZbNUe6xjUtatSN0gQnt9QsmjuQCl/eD7MBS/GrSi2fCJiNCPJydLEE6LvSuQP5wca+f pPzd0GAYK6y0BpzllshvUheeBk9YilRZz8eGdOgHjryHvtRYhL5zqY954UBTwvm0yeeC cY7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:message-id:date:subject:cc:to :from:dkim-signature:arc-authentication-results; bh=9qYhxSIE2NCM533IebBmunPSJAQKZFMZ7q+QBjdt7U8=; b=MDaPupfqQMsHzZRg9xmBVcZ0IVirk1SDuTU2NmQLxvN6PfSAWbiqrA9TsWA6vT0Qfq hKjC8SyK7R9PXqj2aj64TZGAG+55qKryR8BPJnVKE04BWs7xWB4sOAPZ/CGMKF4+XQ5/ Lv31PG1WsgVIhzG78lCUKs0b73pEtfbu08htVJ+fyki0vPzZTnCf0GwzvA8R1JsiULlG ykgIDFlQ9nkRUK7wHQdoTQLErx7fv9S6uVkhT2Tm4kG+u5bxbyOQGPgvilnlKmS6jZCZ Tvb5Z9/atzGsqj5mBDqacG/kWfzyakVghzx2Oto9RU7yNthD8BMKZOZUL5dgjZgIGuDA cgDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=L6P6mKqz; 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 v2-v6si4209327plp.113.2018.03.15.10.08.47; Thu, 15 Mar 2018 10:09:32 -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=L6P6mKqz; 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 S1752545AbeCORGL (ORCPT + 99 others); Thu, 15 Mar 2018 13:06:11 -0400 Received: from mail-db5eur01on0068.outbound.protection.outlook.com ([104.47.2.68]:58206 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751572AbeCORGH (ORCPT ); Thu, 15 Mar 2018 13:06:07 -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=9qYhxSIE2NCM533IebBmunPSJAQKZFMZ7q+QBjdt7U8=; b=L6P6mKqzF/I3WItVSQVuzoOl4IezZybCoOyY66eDbadNlrCrA8B8yrWbFHRHFfuKtn0diw5PmsZFR1ss8atEVlWRNwv5AcvhKLhlkEwCC2WmUpRa+K289WgPQU9DnOJWtlB18KzR35fqJZKvtOifj5yNycT1v4yiZ/LcLtSdbAg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ioana.ciornei@nxp.com; Received: from rhuath.am.freescale.net (192.88.168.1) by DB6PR04MB3206.eurprd04.prod.outlook.com (2603:10a6:6:6::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.567.14; Thu, 15 Mar 2018 17:06:03 +0000 From: Ioana Ciornei To: gregkh@linuxfoundation.org, laurentiu.tudor@nxp.com Cc: linux-kernel@vger.kernel.org, stuyoder@gmail.com, ruxandra.radulescu@nxp.com, razvan.stefanescu@nxp.com, Roy.Pledge@nxp.com, arnd@arndb.de, Ioana Ciornei Subject: [PATCH v2 0/6] bus: fsl-mc: enhance Management Complex userspace support Date: Thu, 15 Mar 2018 12:05:30 -0500 Message-Id: X-Mailer: git-send-email 2.8.3 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [192.88.168.1] X-ClientProxiedBy: MWHPR15CA0039.namprd15.prod.outlook.com (2603:10b6:300:ad::25) To DB6PR04MB3206.eurprd04.prod.outlook.com (2603:10a6:6:6::14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 19d2c3d6-fe2c-4443-d0a9-08d58a9709e0 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:DB6PR04MB3206; X-Microsoft-Exchange-Diagnostics: 1;DB6PR04MB3206;3:R4cQ9m9G295y7OrrNKR/gh60ZZzsQhCcpDUO79SGPa9TL6b9yYpiYMjxe/3J7VG8zD63sMq/kr73YrjdaV1Qzo/Mm8fEa23V9XDY/h1QT/1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Yidf4XyupGpanIEykd8cLDF7QFDC61rtsRa/j4YSlU6oaMd/LEuVFeFxWGu4C9lt0x5OvkpyLXEf7edarw8Z7lE2pDIuqjHqV+UeANrbE8sS3kGVQ8not6sViZIesauO1ehLJOFro+RA9YC68vAw6nR0LRAjBAYR7WHARdIq6EjphTnxWAMGZjV/j098j7kojQtT7emwyWj8zvkliZDYi/9W1zkiTKKXDcBk3oC/nDN;4:EreH/djs82tHidYijwgIIqi0jjvUHo2agZN8JNUwKx8prrPcNhFcOItAsNgdkO4m758a4akprOzZkZjEZIumB3nOoYvYuXeFaLFYySqRE+P9MbEQf1zmWTjfaVcm4hPg4UB++MBwpnICpu8F83Q0VeNwQI2A9EOqqwUW5sSz9RLcALPxEEU1GVaR5Q58Qjb7VKeney+PF8P6aSjIRE2Qu7ZBUKjiaCLtyq52E+7SikXuHFf9IPA4I6qEQZSwn6xvj53B+JoTPC7PP2QSH2KSYQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231221)(944501244)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(6041310)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:DB6PR04MB3206;BCL:0;PCL:0;RULEID:;SRVR:DB6PR04MB3206; X-Forefront-PRVS: 0612E553B4 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(376002)(396003)(39380400002)(346002)(366004)(39860400002)(189003)(199004)(7736002)(105586002)(81156014)(6486002)(50466002)(68736007)(3846002)(47776003)(66066001)(50226002)(6512007)(305945005)(6116002)(36756003)(48376002)(8676002)(53936002)(8936002)(5660300001)(478600001)(186003)(97736004)(16526019)(316002)(86362001)(25786009)(106356001)(39060400002)(81166006)(6666003)(26005)(6636002)(4326008)(52116002)(386003)(51416003)(6506007)(2906002)(16586007);DIR:OUT;SFP:1101;SCL:1;SRVR:DB6PR04MB3206;H:rhuath.am.freescale.net;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DB6PR04MB3206;23:NevPbtG1xGwONYnZEy4UBhKST3UA///euOXRhFzKj?= =?us-ascii?Q?4y1mtT6hLsPyCo3X8Ij9/HQq3+geRalpgKFYHaZRQMnxEBOMgRplNGs7L6ue?= =?us-ascii?Q?AtJvNdU+87KdxbwciYjqNFZ8JGIRB8wAhFDiZNxdD2U+pTdpXdai+N/pLtGX?= =?us-ascii?Q?wVXJ5orvTnniBVVR2WkBG9bt8Eba7l+9znxGMZTovkAAh3u/DaUo/evLnUgE?= =?us-ascii?Q?NrlHf38Ya/Lk98mVKBiPiMxWa5W5fwMcG7hcsAdu13dbWEHn4yAM1C4f2c+y?= =?us-ascii?Q?+g4RNGMoND6U8y1MGHIdsavR48FULlfTR37OZQkU3Pm0KCyVr7706QDpvAZi?= =?us-ascii?Q?jSpaAmfDuzuBnmheiz8UeDDZnviOQBQmU4agl+rT/nag9THTcH9nc7kgXqkv?= =?us-ascii?Q?g5sr6kPqYihiplbHK4RSz1GITi5bXUC4jIpbikBdBl38AahV2TjBk4BJ8JjQ?= =?us-ascii?Q?Q9+t8sPa/2dBimaAiHZiy8BVym3Pd0ReGYfB9KMb00p+gjBn+sFDDcbNw1DD?= =?us-ascii?Q?YbA1v4zTvpy23SIhidA38Guv+0TUcC9VG+5vtDx2QrqtK+t4nMdzFPCuf3FV?= =?us-ascii?Q?a+MmfJ8pLgH/9hkvcZetf3iZ29q8lkLncw8NXGDE0K7PXiTEZqTLMTX059jK?= =?us-ascii?Q?h3nknimh7v/6DR4dAMa4wGhecqLw8vQOwUJ0BzsyEKHTLiBCNwKn5mGVRgkF?= =?us-ascii?Q?VgsbbNulro4VJNVXgjx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EB5RCNuz1jbfPpo7VhUfpQwQtv3CtLj2KR/JgvA1t6asGPOc6pqjhMjxfuKnnajJrKEkQhwQA9ux/tjHDQ+eqn/j/cmxxWOKRJZJC/OMwCOsobATr3NAg0ElTmeevmBGpIry5Um0IRyHWcMj/Wg6C2yav5GYno+MLcRjhb4deo=;24:eWklWo715uQg2V1Vt0wOq8iJGJSui1nfagosKdq6kjuNPgbinFZMifVgIJjd8isxd8A5hfNmN+6kpB0rSpEy4pKnn4pXPZDzO6fPPwWJGYQ=;7:/mcdjkqNy0bRveSjOz3eMl66X3FrLXi32MzD3STSuKyrufFOfUgv9qVBFbF2/DLg4sCEyfG4ayDU86Et46HOFOK9ndSukJaINhNu0YWzdDVApuOo+s27m/vqv20W5ZhPkkRusht23SjajIxhXhXGs2aFn4LQJufBY+KQYkWqLOmgUhZ0LhwDeYGqjrqzhLa7JDcJcgwS3BdyfxWphsq3WXcNaoer/9NKLR+QJJPf2QVQAmFbkYrR9fAMhMbunRm+ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Mar 2018 17:06:03.0246 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 19d2c3d6-fe2c-4443-d0a9-08d58a9709e0 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR04MB3206 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch set adds restool support in fsl-mc bus along with a rescan attribute to the root DPRC container. Changes in v2: - changed mc_command in fsl_mc_command structure - updated fsl_mc_command to use the proper types and moved it in uapi - added proper sysfs documentation Ioana Ciornei (6): bus: fsl-mc: change mc_command in fsl_mc_command bus: fsl-mc: move fsl_mc_command struct in a uapi header bus: fsl-mc: add fsl_mc_allocator cleanup function bus: fsl-mc: add restool userspace support bus: fsl-mc: add root dprc rescan attribute bus: fsl-mc: add bus rescan attribute Documentation/ABI/stable/sysfs-bus-fsl-mc | 13 ++ Documentation/ioctl/ioctl-number.txt | 1 + Documentation/networking/dpaa2/overview.rst | 4 + MAINTAINERS | 2 + drivers/bus/fsl-mc/Kconfig | 7 + drivers/bus/fsl-mc/Makefile | 3 + drivers/bus/fsl-mc/dpbp.c | 12 +- drivers/bus/fsl-mc/dpcon.c | 14 +- drivers/bus/fsl-mc/dpmcp.c | 6 +- drivers/bus/fsl-mc/dprc-driver.c | 4 +- drivers/bus/fsl-mc/dprc.c | 28 ++-- drivers/bus/fsl-mc/fsl-mc-allocator.c | 5 + drivers/bus/fsl-mc/fsl-mc-bus.c | 97 +++++++++++- drivers/bus/fsl-mc/fsl-mc-private.h | 53 +++++++ drivers/bus/fsl-mc/fsl-mc-restool.c | 219 ++++++++++++++++++++++++++++ drivers/bus/fsl-mc/mc-sys.c | 20 +-- drivers/staging/fsl-dpaa2/ethernet/dpni.c | 84 +++++------ drivers/staging/fsl-dpaa2/ethsw/dpsw.c | 64 ++++---- drivers/staging/fsl-mc/bus/dpio/dpio.c | 12 +- include/linux/fsl/mc.h | 16 +- include/uapi/linux/fsl_mc.h | 31 ++++ 21 files changed, 561 insertions(+), 134 deletions(-) create mode 100644 Documentation/ABI/stable/sysfs-bus-fsl-mc create mode 100644 drivers/bus/fsl-mc/fsl-mc-restool.c create mode 100644 include/uapi/linux/fsl_mc.h -- 1.9.1