From patchwork Tue Jun 27 14:41:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Tudor X-Patchwork-Id: 9812101 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0E34C6020A for ; Tue, 27 Jun 2017 14:58:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F28CA27F97 for ; Tue, 27 Jun 2017 14:58:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E69B6286AE; Tue, 27 Jun 2017 14:58:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 291DC27F97 for ; Tue, 27 Jun 2017 14:58:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=pbyN8HvFHFG8zdgYflsoCvQaVMIEC5rpvtCc1elTmd4=; b=P2wQEuQgeO6l1d EIoN+QEasjEp3/2wswGEgP1wKJ7NI9DX0mmwHJIBJpHf2sRzc8f9PkLjc4K3sOJwBnA/0SnvwIdvY YhcDg5e40DaKE4dAedy8Mb9V1iuTyqBBdd+XExx2+c5rXcgRXwSsMNAcabttgOhNJXVeftigs+GiH D8vzet6dVmX1WRAplASAiFil7tdwAURXaAeu1JkwkaPwq/LKNLpZ+0XPbRPjkKUSrAMTW6QD1Wyf1 ZQlDftDHBncUfw55cnfSocrjY42ZmOtAjLAr2jVZEfcd0gdlkthuDfzqW8H6bFEFN7+4Nu/nrjbgE XTYZ6yXnpQ0ERYUZ+q9Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dPrwt-0006VB-LF; Tue, 27 Jun 2017 14:58:39 +0000 Received: from mail-bl2nam02on0073.outbound.protection.outlook.com ([104.47.38.73] helo=NAM02-BL2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dPrwX-0005WJ-1e for linux-arm-kernel@lists.infradead.org; Tue, 27 Jun 2017 14:58:22 +0000 Received: from BN3PR03CA0075.namprd03.prod.outlook.com (10.167.1.163) by DM5PR03MB2572.namprd03.prod.outlook.com (10.168.196.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1199.15; Tue, 27 Jun 2017 14:42:46 +0000 Received: from BN1BFFO11OLC001.protection.gbl (2a01:111:f400:7c10::1:194) by BN3PR03CA0075.outlook.office365.com (2a01:111:e400:7a4d::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1199.15 via Frontend Transport; Tue, 27 Jun 2017 14:42:46 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1BFFO11OLC001.mail.protection.outlook.com (10.58.145.12) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1199.9 via Frontend Transport; Tue, 27 Jun 2017 14:42:45 +0000 Received: from fsr-fed1964-102.ea.freescale.net (fsr-fed1964-102.ea.freescale.net [10.171.73.86]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v5REfmnp032306; Tue, 27 Jun 2017 07:42:41 -0700 From: To: , Subject: [PATCH v2 13/15] staging: fsl-mc: move mc-sys.h contents in the public header Date: Tue, 27 Jun 2017 17:41:33 +0300 Message-ID: <20170627144135.15599-14-laurentiu.tudor@nxp.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170627144135.15599-1-laurentiu.tudor@nxp.com> References: <20170627144135.15599-1-laurentiu.tudor@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131430481663793619; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39840400002)(39860400002)(39410400002)(39380400002)(39850400002)(39400400002)(39450400003)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(9170700003)(4326008)(2876002)(8936002)(50466002)(2950100002)(498600001)(6666003)(48376002)(54906002)(81166006)(189998001)(5660300001)(8676002)(86152003)(76176999)(50986999)(36756003)(1076002)(5003940100001)(7416002)(85426001)(86362001)(356003)(106466001)(305945005)(47776003)(575784001)(105606002)(38730400002)(77096006)(39060400002)(33646002)(53936002)(8656002)(50226002)(2906002)(104016004)(2004002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR03MB2572; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1BFFO11OLC001; 1:xfSvK1ll+j/WgrqgzhrrqT/ZYo4DAmWfp1/wJCGb?= =?us-ascii?Q?x2I8LvAf71H0y7MgEyEpjzGzdR2jZ3WghAqf7tqqwMrT60dkumZmFSG7/Q13?= =?us-ascii?Q?c8oQlhRrcv1ZHIE4rYhMDx8y4nmKT+59fxPEl8DdAIUD0UlwxalUDAef7uVM?= =?us-ascii?Q?yROQWM4ZWHIsqi7gnhBEOvbprjwULairQOTv/PhU9LpQaemK9ToBMixjDJL5?= =?us-ascii?Q?6xc4Vv9dEru+apTLYXFRihRK1jBhX4K7fqO4WnahcoaIemjncLdCW756hxKa?= =?us-ascii?Q?5xjq37Xvlpxw8y/PTeHWCaug0bmvo8Mzoq8QvjIR+0cZgQzWbwVWZIdZ/9S6?= =?us-ascii?Q?UadE39Xa/dX82lLIExRbD3e4fYoVdeOp70ugIDumg6vPNFmeR25opxWBwmvR?= =?us-ascii?Q?2yxJaeDx8Y+ND4q/E6mRq2rh6QndV+/hkZzxgIs76jvfP4eVf8lWZ0iYTO4q?= =?us-ascii?Q?EiR+waJ98UDppxP7eSL8bT1+iplgHjLWO8jkb1UHpvLuflfJZehGSOxFWWly?= =?us-ascii?Q?y3MTrO23I3HCBxByKEkYwZKiGApxJpJwlbIZw6oKEf2cUihz18GJt8iseYzv?= =?us-ascii?Q?yK6BxjoANzJHDUGnuHFIefkrXjX1GwPNY6X7bi8bsI1JQOaiKBYsG56xbZ3A?= =?us-ascii?Q?chhwxj7ORWM07DZgrUxVX+oe944+MkVCbzZQIcgGLoONq5tFDwLYCq/FA+Js?= =?us-ascii?Q?Pe90twmJpxrIXfQ5LD86Q35UFOflRertOROU+/K8OstoXyK3CiV9RXiQm5vn?= =?us-ascii?Q?FbSc4HGpC3fmusJJ0j58Zv+U2Qy/iRZMbLI6G3fueTdt0z3QOQzxbO8Z8Tuo?= =?us-ascii?Q?GwjWQ+u8zFjRRyhRjafMPk3/1a1NoGY7GiEoF89/ma+eHsIaX+ceqEjAuEVL?= =?us-ascii?Q?s1czBRf8NPVGEpJbYIR5VVSo2S1RSUvGY3WHj5SfRYkelxmKufEkdaTnvdVo?= =?us-ascii?Q?/3ZR5fLN5ijuaUYXdIZSit4YaVGMt2zucGLlF3XEsvBy5XsZx8FbhIsJ23Yr?= =?us-ascii?Q?2f+kd72X8xL8CWKP1zSCDrDx5QkrAOkVqa0XA6yZISDTMdogghG+QPeydUwb?= =?us-ascii?Q?0Kw3xVZSAntZbBgkT3AElWQo9JMT?= MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 33da1d73-a0da-4603-3874-08d4bd6ac6af X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506067)(300135500095); SRVR:DM5PR03MB2572; X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2572; 3:iCVbFkU/JtqPAYp+uhsU4nUkuvZRSOsTFjNR+GRFZgEtxtueRF/JHKWEcI4kCTy62qrVDlhUWQefgriSPMhxhx4/UYrSZ2gmH4eBgTK7VPeuQxmOmEtda5IIm+bAV7xLM+z0zLQhK+lDEtDuIMECKghyoqvbZR/6U2pLKxuu/hN0wab/WhOcKw7M/As0ZyEzo81DAis4BX+syZHbyt0xwcP5LoZ+psyyo/Tyb7Z/+QqTqkAuMnoVKRx/Mmrhm09/9K9N0Y6p2g60K2c8oMufUyYj9Kr2+Yq9ekN/nSIYsCzznUd/rvd300e5kwlfectsGvOrDpepKh60GGh8MB/FUGTF87jo/3ndFuPCuddqf8rW/riIBELLbmDd46uOl3ibPQTaDfuaw752Xf4nI2N4yHUHH1C915vDOkzaSZkajX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Is49rIdAi/c/0mWZ7CEE9o+kB72y1Mt3lYkQmLqM3Ew== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236129657087228)(185117386973197)(48057245064654)(275809806118684)(158140799945019); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(8121501046)(5005006)(13016025)(13018025)(93006095)(93001095)(10201501046)(3002001)(100000703101)(100105400095)(6055026)(6096035)(20161123563025)(20161123561025)(20161123565025)(20161123559100)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259150)(20161123556025)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM5PR03MB2572; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM5PR03MB2572; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR03MB2572; 4:eUbLwMjiM9jwGDhF0xO9DnDwnUSdRoxyB4oSPUNkCm?= =?us-ascii?Q?XY6cbyAvYtebS3pRwdGbXB3Nw4h+B77CZKzAN35m7Ximkfi8YFp42sxDBs5m?= =?us-ascii?Q?3LvmBM+p7Z39WeDwI4uykuCJ6Lhu7GfQOUNUDG2G6vTvKr/27ZWL7ydH2Hvl?= =?us-ascii?Q?Il4CNhmSldawQ8kithjRzo97h6MniQeX75jIjpXCyBFDBWb83PlAiw8s55A4?= =?us-ascii?Q?BZfNAimaSRzs9T7kReLB0An7XhL50NJJhLDt9j2jeI/l8rWZTfqR5HnymUQC?= =?us-ascii?Q?6XQssfH4pv6hqSUtiviW/1EaagnTIvPEwhQ1Zu9iyPfR8J6E5z4zO/8lch4l?= =?us-ascii?Q?nhru+/iz3SYmNGDX+aximKMPTmR977q/6+QlHE3PcPZznb2VCOaJ8kWKWMRQ?= =?us-ascii?Q?n9MACn3Bto1O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= =?us-ascii?Q?KlitM/3h11sDej1DvdpEIbeQLXuxijQd+f6RnXVtvND5wfdLszy5v9VAFTTB?= =?us-ascii?Q?UCSesp7eSJA+0i7Ryr7mCg4QXY0z8ZPVsNROWnkBuwj3n0?= X-Forefront-PRVS: 0351D213B3 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR03MB2572; 23:eNFIDzAuLaomc2LpKJnBh8x2aY895wB8zsmGsQ/Vg?= =?us-ascii?Q?CUM9hxGTfVxPWwNwwyd95GnHLit80DwrO94iemheF+8bnv3jV2osr3O535EF?= =?us-ascii?Q?Uqpy08Zk6jXwhHLYAXhwF6nzswlVo7I14rA/h+4ebWttm27N+bvb/a1ZtnU7?= =?us-ascii?Q?hHvQ1k6vVh7TxdqWPqFdlHfZB6CNiK4wt7lzD8KS4UhEopzuJekUdJfkQ0HO?= =?us-ascii?Q?TURv620ZOAlA/fkIgWlkB0B4YUSCpaBkmkISNgzT9WsFHau9iacGz09H24JF?= =?us-ascii?Q?dXtBItawRFG2Xu5wUEkb29RQWCV5FZHlsPVHqRnSm2vqQkZWZQss5aHt1BOQ?= =?us-ascii?Q?VIrD1w4f/rMIuJtMlv3sR/8RdeSr/B3nEipfJXpcc7XskGum5fbnSCqxLgHq?= =?us-ascii?Q?g8VJh8saQb2RCYnClon+IHM1mkkaxwa+B0AJxK17M3iDFZ/lP4KpGxon6uOY?= =?us-ascii?Q?/WZLGu5EBCp2EI/zkgzvwYLmWObYoaYZ/y0Kb0bz4yqvu06KCnfJzYaWD+dm?= =?us-ascii?Q?kdKOYTM5wcOT9hMXJx2NamsmHCAlQDgTWWSgpNM4hWrjhYOPIH7Sb6GsJhey?= =?us-ascii?Q?2On5a0YZVl/DoXzXQ3yN7+GWYcNKo7lHhJu9vqPhYLzzf6FWL0M3yHi01MzS?= =?us-ascii?Q?GcAOlhtvN3t9TestcuHu/pP0doAXjGscjVbH194EK+EP4Y/Y8lfKcdSp7nIP?= =?us-ascii?Q?+txJhtVYLU1wkqr51LMLhPnbymn06SRvSn/sEGDj/3AwQ3k0b+UolYYaruN2?= =?us-ascii?Q?qhbuWe1NCv2IGcJSXroCVgZNCUmVf6WXpBGEfj+ginn3SRqJy1iYewMGHmFv?= =?us-ascii?Q?TXCODbwGz9LO1niHcS6rKi1mEmm9kiVCCHHU+UDMtpxkszZuGxJPchDU/LOc?= =?us-ascii?Q?D041WYV5NlzHxC7Y27b04z3BpkuzpvZuLEGCm8bo5FVyvzkKqJJyZu8/RJEu?= =?us-ascii?Q?+Kr58fuEQN03NVjzwr+1SQ2R+jQxzt6dH57Ki60E5As7l3613e0FqKWG/maG?= =?us-ascii?Q?DNNZYfSMzDp9w8QFadNUJi33QroorbmIGN/VZlynDhdAeSq5Heljjw0Atq/r?= =?us-ascii?Q?YsA0I/Z4PnCm5BiRuxUGxgYcu5nnb94KV3y1TLaiUTyaoesVVM6gDTVneIzs?= =?us-ascii?Q?ekAnghkhfpjg8jt47//HjE44JnHf/04C2vYCJrwN2ry7biY+uhW9RT/q0S69?= =?us-ascii?Q?8rDSN527Ov3LcuNk+bV5Cm7AnAiujqLqqrbkcyKuWIYtCFH+JcVI/p8zA+dJ?= =?us-ascii?Q?toLlNtArQeo8weTpzKxD4rO3LOeqz/eXESRmwONu5oI8sKDLiuAd+MqIN2sM?= =?us-ascii?Q?+4JiRXzVAAS9XZb0XbwpAqRcGYR/tCJHqQy5V7vzJeQ?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR03MB2572; 6:TZZtIgubEg12vdUAdUqImLnns77Vxb/clwo+C1Yu8g?= =?us-ascii?Q?3sqhfHym3s5h0G1Y3AXONhBiS75JxYpRfM0DZWTDbm9NLxGHzO1X9CsOlSut?= =?us-ascii?Q?zLOFufsEbCeLgOxVJ0j/bYpJPkbWbWsezqMme5x4IZVzKFp0Bk/0mdiL2y/b?= =?us-ascii?Q?DySCeYE6GO1jSG55AUQNckQttgkJydt8GFlh1QFqdLnvYS4eQkwUSZmESU1I?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FaqRpdtoIxPN5+LrZu6IgLZ2Suf9yQgjCfa4YYZcm1xRA2dPMVPiiC88z8hhsdKtK68E647u8MvF8I/lYxDE8FQhP6Y+PjvUkCEvOAjGBWiI/sIEB1DwBu07FM6qmk9Dosl75BtsMRjJBgOCmBxW7bu861clwMTpEC8ptuuAOtCVE8FcaT/8Jg3OEAJ+uVBe/7TxAQsYjIiBdz2drwwNwVDRcN/uAOqceuVxE3nuOeuKNsuE/zuNjEhH2CiuDAfP0smRgBvbh/IuMxmF+XiuqRvn9cOQIW5PShB52q7yTEU3mB4R3/gxlKCmFt4UtSM1tShy+TxKhGzQOV1kpwjHvGz6kWWt0T7nEhtAsWX3oDsPsmao+J4OWfrTIwRagVkIk0= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2017 14:42:45.9269 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR03MB2572 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170627_075817_416561_DBF71296 X-CRM114-Status: UNSURE ( 6.58 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devel@driverdev.osuosl.org, ruxandra.radulescu@nxp.com, arnd@arndb.de, marc.zyngier@arm.com, roy.pledge@nxp.com, linux-kernel@vger.kernel.org, agraf@suse.de, catalin.horghidan@nxp.com, ioana.ciornei@nxp.com, leoyang.li@nxp.com, bharat.bhushan@nxp.com, linux-arm-kernel@lists.infradead.org, Laurentiu Tudor Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Laurentiu Tudor mc-sys.h contains the API to send commands to the MC and is used by drivers. Move it to the public headers and get rid of the mc-sys.h header. Signed-off-by: Laurentiu Tudor --- v2: - no changes drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c | 1 - drivers/staging/fsl-dpaa2/ethernet/dpni.c | 2 +- drivers/staging/fsl-mc/bus/dpbp.c | 2 +- drivers/staging/fsl-mc/bus/dpcon.c | 2 +- drivers/staging/fsl-mc/bus/dpio/dpio.c | 2 +- drivers/staging/fsl-mc/bus/dpmcp.c | 2 +- drivers/staging/fsl-mc/bus/dprc-driver.c | 2 +- drivers/staging/fsl-mc/bus/dprc.c | 1 - drivers/staging/fsl-mc/bus/fsl-mc-allocator.c | 2 +- drivers/staging/fsl-mc/bus/fsl-mc-bus.c | 1 - drivers/staging/fsl-mc/bus/mc-io.c | 2 +- drivers/staging/fsl-mc/bus/mc-sys.c | 1 - drivers/staging/fsl-mc/include/mc-sys.h | 98 -------------------------- drivers/staging/fsl-mc/include/mc.h | 53 ++++++++++++++ 14 files changed, 61 insertions(+), 110 deletions(-) delete mode 100644 drivers/staging/fsl-mc/include/mc-sys.h diff --git a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c b/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c index 1f89274..b9a0a31 100644 --- a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c +++ b/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c @@ -40,7 +40,6 @@ #include #include "../../fsl-mc/include/mc.h" -#include "../../fsl-mc/include/mc-sys.h" #include "dpaa2-eth.h" /* CREATE_TRACE_POINTS only needs to be defined once. Other dpa files diff --git a/drivers/staging/fsl-dpaa2/ethernet/dpni.c b/drivers/staging/fsl-dpaa2/ethernet/dpni.c index 2c4b1a8..160eaf8 100644 --- a/drivers/staging/fsl-dpaa2/ethernet/dpni.c +++ b/drivers/staging/fsl-dpaa2/ethernet/dpni.c @@ -32,7 +32,7 @@ */ #include #include -#include "../../fsl-mc/include/mc-sys.h" +#include "../../fsl-mc/include/mc.h" #include "../../fsl-mc/include/mc-cmd.h" #include "dpni.h" #include "dpni-cmd.h" diff --git a/drivers/staging/fsl-mc/bus/dpbp.c b/drivers/staging/fsl-mc/bus/dpbp.c index e92d887..b714673 100644 --- a/drivers/staging/fsl-mc/bus/dpbp.c +++ b/drivers/staging/fsl-mc/bus/dpbp.c @@ -30,7 +30,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include -#include "../include/mc-sys.h" +#include "../include/mc.h" #include "../include/mc-cmd.h" #include "../include/dpbp.h" diff --git a/drivers/staging/fsl-mc/bus/dpcon.c b/drivers/staging/fsl-mc/bus/dpcon.c index 20df185..2272a9c 100644 --- a/drivers/staging/fsl-mc/bus/dpcon.c +++ b/drivers/staging/fsl-mc/bus/dpcon.c @@ -30,7 +30,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include -#include "../include/mc-sys.h" +#include "../include/mc.h" #include "../include/mc-cmd.h" #include "../include/dpcon.h" diff --git a/drivers/staging/fsl-mc/bus/dpio/dpio.c b/drivers/staging/fsl-mc/bus/dpio/dpio.c index a18ca89..48dce4a 100644 --- a/drivers/staging/fsl-mc/bus/dpio/dpio.c +++ b/drivers/staging/fsl-mc/bus/dpio/dpio.c @@ -31,7 +31,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include -#include "../../include/mc-sys.h" +#include "../../include/mc.h" #include "../../include/mc-cmd.h" #include "dpio.h" diff --git a/drivers/staging/fsl-mc/bus/dpmcp.c b/drivers/staging/fsl-mc/bus/dpmcp.c index 66011e8..7b3dd19 100644 --- a/drivers/staging/fsl-mc/bus/dpmcp.c +++ b/drivers/staging/fsl-mc/bus/dpmcp.c @@ -30,7 +30,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include -#include "../include/mc-sys.h" +#include "../include/mc.h" #include "../include/mc-cmd.h" #include "dpmcp.h" diff --git a/drivers/staging/fsl-mc/bus/dprc-driver.c b/drivers/staging/fsl-mc/bus/dprc-driver.c index 7c6c4ac..4cdd190 100644 --- a/drivers/staging/fsl-mc/bus/dprc-driver.c +++ b/drivers/staging/fsl-mc/bus/dprc-driver.c @@ -13,7 +13,7 @@ #include #include #include -#include "../include/mc-sys.h" +#include "../include/mc.h" #include "dprc-cmd.h" #include "fsl-mc-private.h" diff --git a/drivers/staging/fsl-mc/bus/dprc.c b/drivers/staging/fsl-mc/bus/dprc.c index e5dfc33..f93fe00 100644 --- a/drivers/staging/fsl-mc/bus/dprc.c +++ b/drivers/staging/fsl-mc/bus/dprc.c @@ -31,7 +31,6 @@ */ #include #include "../include/mc.h" -#include "../include/mc-sys.h" #include "../include/mc-cmd.h" #include "../include/dprc.h" diff --git a/drivers/staging/fsl-mc/bus/fsl-mc-allocator.c b/drivers/staging/fsl-mc/bus/fsl-mc-allocator.c index 04ae2cc..b37a6f4 100644 --- a/drivers/staging/fsl-mc/bus/fsl-mc-allocator.c +++ b/drivers/staging/fsl-mc/bus/fsl-mc-allocator.c @@ -10,7 +10,7 @@ #include #include -#include "../include/mc-sys.h" +#include "../include/mc.h" #include "fsl-mc-private.h" diff --git a/drivers/staging/fsl-mc/bus/fsl-mc-bus.c b/drivers/staging/fsl-mc/bus/fsl-mc-bus.c index 75f8dc3..166604e 100644 --- a/drivers/staging/fsl-mc/bus/fsl-mc-bus.c +++ b/drivers/staging/fsl-mc/bus/fsl-mc-bus.c @@ -20,7 +20,6 @@ #include #include #include -#include "../include/mc-sys.h" #include "../include/mc-cmd.h" #include "fsl-mc-private.h" diff --git a/drivers/staging/fsl-mc/bus/mc-io.c b/drivers/staging/fsl-mc/bus/mc-io.c index ec2835f..35221a17 100644 --- a/drivers/staging/fsl-mc/bus/mc-io.c +++ b/drivers/staging/fsl-mc/bus/mc-io.c @@ -31,7 +31,7 @@ */ #include -#include "../include/mc-sys.h" +#include "../include/mc.h" #include "fsl-mc-private.h" #include "dpmcp.h" diff --git a/drivers/staging/fsl-mc/bus/mc-sys.c b/drivers/staging/fsl-mc/bus/mc-sys.c index 4d82802..c537bf8 100644 --- a/drivers/staging/fsl-mc/bus/mc-sys.c +++ b/drivers/staging/fsl-mc/bus/mc-sys.c @@ -37,7 +37,6 @@ #include #include #include -#include "../include/mc-sys.h" #include "../include/mc-cmd.h" #include "../include/mc.h" diff --git a/drivers/staging/fsl-mc/include/mc-sys.h b/drivers/staging/fsl-mc/include/mc-sys.h deleted file mode 100644 index b520370..0000000 --- a/drivers/staging/fsl-mc/include/mc-sys.h +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Copyright 2013-2016 Freescale Semiconductor Inc. - * - * Interface of the I/O services to send MC commands to the MC hardware - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of the above-listed copyright holders nor the - * names of any contributors may be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * - * ALTERNATIVELY, this software may be distributed under the terms of the - * GNU General Public License ("GPL") as published by the Free Software - * Foundation, either version 2 of that License or (at your option) any - * later version. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef _FSL_MC_SYS_H -#define _FSL_MC_SYS_H - -#include -#include -#include -#include - -/** - * Bit masks for a MC I/O object (struct fsl_mc_io) flags - */ -#define FSL_MC_IO_ATOMIC_CONTEXT_PORTAL 0x0001 - -struct mc_command; - -/** - * struct fsl_mc_io - MC I/O object to be passed-in to mc_send_command() - * @dev: device associated with this Mc I/O object - * @flags: flags for mc_send_command() - * @portal_size: MC command portal size in bytes - * @portal_phys_addr: MC command portal physical address - * @portal_virt_addr: MC command portal virtual address - * @dpmcp_dev: pointer to the DPMCP device associated with the MC portal. - * - * Fields are only meaningful if the FSL_MC_IO_ATOMIC_CONTEXT_PORTAL flag is not - * set: - * @mutex: Mutex to serialize mc_send_command() calls that use the same MC - * portal, if the fsl_mc_io object was created with the - * FSL_MC_IO_ATOMIC_CONTEXT_PORTAL flag off. mc_send_command() calls for this - * fsl_mc_io object must be made only from non-atomic context. - * - * Fields are only meaningful if the FSL_MC_IO_ATOMIC_CONTEXT_PORTAL flag is - * set: - * @spinlock: Spinlock to serialize mc_send_command() calls that use the same MC - * portal, if the fsl_mc_io object was created with the - * FSL_MC_IO_ATOMIC_CONTEXT_PORTAL flag on. mc_send_command() calls for this - * fsl_mc_io object can be made from atomic or non-atomic context. - */ -struct fsl_mc_io { - struct device *dev; - u16 flags; - u16 portal_size; - phys_addr_t portal_phys_addr; - void __iomem *portal_virt_addr; - struct fsl_mc_device *dpmcp_dev; - union { - /* - * This field is only meaningful if the - * FSL_MC_IO_ATOMIC_CONTEXT_PORTAL flag is not set - */ - struct mutex mutex; /* serializes mc_send_command() */ - - /* - * This field is only meaningful if the - * FSL_MC_IO_ATOMIC_CONTEXT_PORTAL flag is set - */ - spinlock_t spinlock; /* serializes mc_send_command() */ - }; -}; - -int mc_send_command(struct fsl_mc_io *mc_io, struct mc_command *cmd); - -#endif /* _FSL_MC_SYS_H */ diff --git a/drivers/staging/fsl-mc/include/mc.h b/drivers/staging/fsl-mc/include/mc.h index d37e2c7..33bb3b8 100644 --- a/drivers/staging/fsl-mc/include/mc.h +++ b/drivers/staging/fsl-mc/include/mc.h @@ -23,6 +23,7 @@ struct msi_domain_info; struct fsl_mc_device; struct fsl_mc_io; +struct mc_command; /** * struct fsl_mc_driver - MC object device driver object @@ -201,6 +202,58 @@ struct fsl_mc_device { #define to_fsl_mc_device(_dev) \ container_of(_dev, struct fsl_mc_device, dev) +/** + * Bit masks for a MC I/O object (struct fsl_mc_io) flags + */ +#define FSL_MC_IO_ATOMIC_CONTEXT_PORTAL 0x0001 + +/** + * struct fsl_mc_io - MC I/O object to be passed-in to mc_send_command() + * @dev: device associated with this Mc I/O object + * @flags: flags for mc_send_command() + * @portal_size: MC command portal size in bytes + * @portal_phys_addr: MC command portal physical address + * @portal_virt_addr: MC command portal virtual address + * @dpmcp_dev: pointer to the DPMCP device associated with the MC portal. + * + * Fields are only meaningful if the FSL_MC_IO_ATOMIC_CONTEXT_PORTAL flag is not + * set: + * @mutex: Mutex to serialize mc_send_command() calls that use the same MC + * portal, if the fsl_mc_io object was created with the + * FSL_MC_IO_ATOMIC_CONTEXT_PORTAL flag off. mc_send_command() calls for this + * fsl_mc_io object must be made only from non-atomic context. + * + * Fields are only meaningful if the FSL_MC_IO_ATOMIC_CONTEXT_PORTAL flag is + * set: + * @spinlock: Spinlock to serialize mc_send_command() calls that use the same MC + * portal, if the fsl_mc_io object was created with the + * FSL_MC_IO_ATOMIC_CONTEXT_PORTAL flag on. mc_send_command() calls for this + * fsl_mc_io object can be made from atomic or non-atomic context. + */ +struct fsl_mc_io { + struct device *dev; + u16 flags; + u16 portal_size; + phys_addr_t portal_phys_addr; + void __iomem *portal_virt_addr; + struct fsl_mc_device *dpmcp_dev; + union { + /* + * This field is only meaningful if the + * FSL_MC_IO_ATOMIC_CONTEXT_PORTAL flag is not set + */ + struct mutex mutex; /* serializes mc_send_command() */ + + /* + * This field is only meaningful if the + * FSL_MC_IO_ATOMIC_CONTEXT_PORTAL flag is set + */ + spinlock_t spinlock; /* serializes mc_send_command() */ + }; +}; + +int mc_send_command(struct fsl_mc_io *mc_io, struct mc_command *cmd); + #ifdef CONFIG_FSL_MC_BUS #define dev_is_fsl_mc(_dev) ((_dev)->bus == &fsl_mc_bus_type) #else