From patchwork Tue Jun 27 14:41:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Tudor X-Patchwork-Id: 9811999 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 AD0C4603D7 for ; Tue, 27 Jun 2017 14:44:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9CEE420007 for ; Tue, 27 Jun 2017 14:44:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8F5452861B; Tue, 27 Jun 2017 14:44:40 +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=ham 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 AE8EC20007 for ; Tue, 27 Jun 2017 14:44:39 +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=3mVRo5hjAE/DfdVgAhUbHFFkkIS57fogoZIhrIZW+Po=; b=lkmuOCrF8kAL2k v5C/OOlNqNzV+e/kAaynWn9HtpI9vh4XF6aq/qB8d1yLyfjffF1xNMzRzUtig30DRzYi/Id99ZY4g L4yvniletp5IzDIFQPyOmBcsubjF6P++FuOZPIWvefppKWC6R1f3OsBsCDHhK4N8GGTHC1pfztZqx ZJfMEx6CVNNDYL8CKD9kX/wWC2EKDuwmIN+HdFBr9NB09JwA+G/naXWsQ4l79a4aNtca8MJrDwijL B8TQsx9X61C9GwtK5EdFY6RmN8XK9dtAjSZkE1y8ehkPBFyyEf+wDuQSmMyJa0NFdyF7FbMahp/P5 Qm1luqmeyCEp3m1IKLDA==; 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 1dPrjJ-0002uj-Uf; Tue, 27 Jun 2017 14:44:37 +0000 Received: from mail-dm3nam03on0043.outbound.protection.outlook.com ([104.47.41.43] helo=NAM03-DM3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dPrhg-0000dQ-B7 for linux-arm-kernel@lists.infradead.org; Tue, 27 Jun 2017 14:42:58 +0000 Received: from BN6PR03CA0038.namprd03.prod.outlook.com (10.175.124.24) by BN6PR03MB2594.namprd03.prod.outlook.com (10.173.143.17) 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:33 +0000 Received: from BL2FFO11FD033.protection.gbl (2a01:111:f400:7c09::104) by BN6PR03CA0038.outlook.office365.com (2603:10b6:404:10c::24) 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:34 +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 BL2FFO11FD033.mail.protection.outlook.com (10.173.161.129) 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:33 +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 v5REfmnm032306; Tue, 27 Jun 2017 07:42:29 -0700 From: To: , Subject: [PATCH v2 10/15] staging: fsl-mc: move rest of mc-bus.h to private header Date: Tue, 27 Jun 2017 17:41:30 +0300 Message-ID: <20170627144135.15599-11-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: 131430481538535462; (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)(39850400002)(39380400002)(39450400003)(39860400002)(39400400002)(39410400002)(39840400002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(9170700003)(5660300001)(105606002)(77096006)(85426001)(47776003)(189998001)(2876002)(50226002)(86362001)(50986999)(39060400002)(48376002)(76176999)(2950100002)(8936002)(33646002)(6666003)(2906002)(54906002)(106466001)(8656002)(104016004)(498600001)(7416002)(8676002)(356003)(1076002)(53936002)(81166006)(86152003)(5003940100001)(4326008)(305945005)(50466002)(36756003)(38730400002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR03MB2594; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; MX:1; A:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BL2FFO11FD033; 1:Bf00wakaK+07HIJapqI17aYtJddHJRyjf6LlhgzOcW?= =?us-ascii?Q?yiL4OD4jpAFQCkaqRiqvSB042Bu0VpevD9odrI5dnw+ppKfwCZbeT7rccslZ?= =?us-ascii?Q?qGdU2t1BZvMum5AgRhrmsDaqFYKm+ARuyXLl17Y6PfSepPbqtfxCnnXkebnB?= =?us-ascii?Q?EqtSE4ke91ArbjV57oBIKWqPJReYQgfvLLN/dLHcJovF+YMjMyUah+7j+aTP?= =?us-ascii?Q?9TPhBjuy6NXtTdySxqewcpTsT0xfL4DPJj/FV0qWtqGnY1rPvVwKCbmRYWAD?= =?us-ascii?Q?tf7h4IKo6GSG9PKVygkkn9mFwPhapo0kLNzCQYp5YpeVhaJxLfyvn1VXsuwJ?= =?us-ascii?Q?mqEgDtCl4yxX2Kj4o4PkY0oBi0grTVarSYKHWFyuxHRdsjMyAOUPXzVAJz/O?= =?us-ascii?Q?/q4IR4HQeWBelK4VF1FVoh/aZFlWDtuYjO4KPvvADAhPeQ+qUszwtE03qqQz?= =?us-ascii?Q?9keAwPpNxGMVokYgvqNQ0x4nUZ/HVdVmYbZ6pJi3dVD7bYNhD8boYqhcefDH?= =?us-ascii?Q?T3wvVxeDZMsgZI/4TZcgjJyS+grfDsOigUCywLb8wKYRzjUR8nK6ToXKE+oA?= =?us-ascii?Q?LhZLV9E3210PDbgzZVm4nHvzXvsvMeKds3FEnA2t3Nr2cILjCzU2w/jMtW+Y?= =?us-ascii?Q?ZqTOMKzl+uKdadl28dmDK3duvHkICu8RvBqbL6WVah7i+3gwyZkuazjitt2t?= =?us-ascii?Q?xaq7zNho37F7hPKIdLW8mbbMKhOXVO1yRwUR8BXoEH7j3V37oNokB0X1/8so?= =?us-ascii?Q?tnlS4Y7qv1RN0417fcUe+Tld/s0HQn7yiTbTBGh4hQLtlAcqcD4F8TKVIbmq?= =?us-ascii?Q?HbaPm6NQMeMBOcOlhLxVaijZoQFLHHlimeJenae5ise9XFMQDAp20EgmKk7U?= =?us-ascii?Q?AaZ/xhx5QCgNfRor9h3r1kRTzK4bRPL9Uk9Us2WMntT5bIkOnQ5otZnHoUk6?= =?us-ascii?Q?biKVBlHTTvvp+YEg6MBYOr3SMUP4985J6AwgT1QcjN6WG786oPVqxCz+t3BT?= =?us-ascii?Q?wEwd9xrwKW0wnzPsbQ6NLq/QCzmKLOymNan3qV0DFTPcmIQdP+96NNfclzOV?= =?us-ascii?Q?DKvgH4ffQO3FA6PxxJqH40WmTP?= MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5187c544-b133-4338-eec5-08d4bd6abf37 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:BN6PR03MB2594; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2594; 3:uCm15P2DDREqcvybrBW3zIqJIR15ZPr+wyJtfVIy3hfHU1FddaVx65KZ4Dkw3EoPNmZ0PUvUW3NaruD3NGH5PzeL1Fb1bfGdFfNl++C6r/OT4JmR0M3WKOBGpEr7JyqWgPtxbog2o2deonGqeXjLPU+xJGb8v/eFOlfahz2VN6JKt5kspme1lRLWcl/4+NKj8dqLKtgT/N8YbNfvGfuoRlv5am78bg5MadfTHBbbr4/lyZtELk39Tixp4KtAZNmYAwlygyL7/FmIzg7MBX6lwwGnyZ+uWCC1sY2JBoqaJQ0kuKaQG5J5o00hSotJb4C0EJZ4iyo2XflVEVTK3fAPdbkdqkcCjmg8T0gy1JwIfXVSC7lMz57GyTRoi67uWc5/GY931RlDrQd8ZUBnyd6yGLUvkaHRXgYK0YuPIcvHMuY6EznTP8GwnwfpnESw3ZFi2D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QyPkI9mbO0KPbkm3GBIPgw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236129657087228)(185117386973197)(101931422205132); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(13018025)(8121501046)(13016025)(5005006)(10201501046)(93006095)(93001095)(3002001)(100000703101)(100105400095)(6055026)(6096035)(20161123561025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123563025)(20161123556025)(20161123565025)(20161123559100)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN6PR03MB2594; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN6PR03MB2594; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR03MB2594; 4:IaAjevP/UydmIFnQwONL+inpjuku/RI/OIpH2AUYG0?= =?us-ascii?Q?bWdjCD0+EljXqozC7dQSm1gBsk3H9y6fzrVUaXzE7RN/evq7DFknkNwfo4zA?= =?us-ascii?Q?460zkCkzPjpA963DH+1Vci6fMwjcAAcvKFxUyrS8YKOLjLdQ4ofeHTWny1Ty?= =?us-ascii?Q?T324UVyj/N6lft7oFylsH9v1pSws17/WKmV6CGOjDTuzP8OqbSLfrJ83JAXR?= =?us-ascii?Q?xHbM6Hmale/QrEDuUjfcKY4sg8vmvIt94d1DAdnrCpCVhwcEL1Yj9jWMAG6n?= =?us-ascii?Q?7qYV2ZlR4L3JJ1Cu+UNmnkqtk2XttG1K9bN4mTIidgbZ1YGu6fAEQoxInMFG?= =?us-ascii?Q?7LE+3AauoSVFxRTpteZM8SIxNAUEsXSxtWGrFDuxrTR9ZcVVYgn7wdhQs1mC?= =?us-ascii?Q?N5pKSjXPsfPv9L5jhjA0cW3gjzhaP0mDZU8cbEh3AB7wUnt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ZHIueIJ658EiKWW2p0p68?= X-Forefront-PRVS: 0351D213B3 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR03MB2594; 23:/JsZqOnnEgQPZnKAEbcfJMQzDxBeHkC3LyUTQAbv0?= =?us-ascii?Q?1AVekQlOHt6Bu3yaFC42PCJLhvWJwVIMOhwydeFsJdS9bMCLPioBC1O49NH7?= =?us-ascii?Q?VQITndaB8hgu8zLqnMC/ljUZ3hd93eMnVHBe2dEvWltq/77cpawEEyNuBXsA?= =?us-ascii?Q?Kvxeq/yQt7jzr3mA4PTSQuI7xaND41zwYlikEsOAzuydS4spp9rmiyYTrkkE?= =?us-ascii?Q?FrxVK1tzIuY9k+Jxo4/1OTwYNdIMsnc8FYp6/7DD5aS9MljxY8czx2Hsuq/b?= =?us-ascii?Q?iHwuSTnYgTzINk5KMZdkiHfpdY4V7Xy0wtZWkE//3FCE5RYok8h6RQfhkpsL?= =?us-ascii?Q?MatkTPh1Wre1PRWpL20yfxZC2mBqJAtGWycwbFgBuLBBRtCKw5wHS7gFo3jZ?= =?us-ascii?Q?ZpSjPTsEw2ff6ukhlmLGuoqJ115FcXaB7V1PTGZrgkxK9N+RDMOXBY8dpUZ5?= =?us-ascii?Q?FbMJycKfXbmaqR+xnKfafk5b4AOdKHKJEOu3Z4RepGUttqkIdIakNo9EpNvH?= =?us-ascii?Q?mePZdpCcz1vhtOzA+y8atF8F/jwUMgtXFjwNZu0l5eN2wqmi8AfpVR/S8Fp6?= =?us-ascii?Q?giz7T9EIsPBvb6dgVf58e35umGF2Z5h1Y28KOmmOvSUNALWOa2J3uVvFTWF0?= =?us-ascii?Q?RBQ6IttkAWNMTLgiK5rKmfxeKBpF0SnO3UVKy2FU8R4BW6djy1ovLGVe0TmE?= =?us-ascii?Q?KvkDlaipKQszdbbbXEPWZzRxBxhzXk1CPPl07/TXeRlqC6I26UfvUQipJKmV?= =?us-ascii?Q?ehGoum5w00I6/b0SYe2y7i0vQVYRSuz9R1/x6be1vrSTin4+/PcfokjfVigi?= =?us-ascii?Q?DdP86aLE+5vPYramh1tifo+NPqqW3teEiTTue/3I6ipkvfGJY0fyAt01Xbtx?= =?us-ascii?Q?5cvcwcWX5PZvveusTKzYjzdrPta4xWKm5giXIxm+aLNLE0eOxrRnWCuEja12?= =?us-ascii?Q?WWWGzKdJRw6GIZYO2UHkqU77D5IOb7JTmjbgABhAYZYGm1SB+8q0DrtUlX/w?= =?us-ascii?Q?Vtu2u7m4bHFB9XQm8neM8ydsKqJHbKj8El9G9lMeNRDXTTBeLJzqMcx3gvzp?= =?us-ascii?Q?/rssRrrPwoU7GE9qpq4TiVX9xjgS8J0h1a7rkWMLztNbhsmbXl09BI/elNp/?= =?us-ascii?Q?XvG/7LL3F+mIjMO/t+bvQgEzfVA6KC/ale0+5/7Enb1RarPcWGA2SzTpNl8M?= =?us-ascii?Q?ZCzn7cF+4CHGFwjMj6o9jfaWML31tPrqUNXmfLIZP+lmxlOB4PTEVF46hRCx?= =?us-ascii?Q?XiopI+TtKEOgF92SKslp4Gim/bVLVpgWjItzZDfSrjmzdTDbLODSYrp0ZP+L?= =?us-ascii?B?QT09?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR03MB2594; 6:GwlKO3Tq1dUD6gEcDzOzZrRQzSqO9oHHZkukne5Rm/?= =?us-ascii?Q?LpOW3MZuK9lQ3Jhue5as5PdFaSRLSmpCMUjjs2UyBEE5VJa9JdvJwwqInZGt?= =?us-ascii?Q?Cmw/bq+17zdVf/k3YnIL/kDXGRBH7f3+sK0lZNt6PjQXlvkWjlLC1nMZITIb?= =?us-ascii?Q?HoH1lFs3PY7HLb2FuVT7GHV/UxcW7/qHl3zPP51s4EwuJna2L3LDaQTeKdXr?= =?us-ascii?Q?VuxZOAEa7Rbr9FUUmrF17HNMAoudMfl41bPqRNqflVDLusZzlqHG3/zssPWu?= =?us-ascii?Q?RDFPwqONpbsUHHQVITvAINFTc1Szr5TCT5Jzm2u3yV8vgm2kGwV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l9jLn5rrqZlDrrvQezQqZIXJYZSB7yZGJbeceBsvDdgIRtvQckabvvgVo3ETmT8MQ5kUokmLRruHaOP47M50Iq/lCbpXpcRtoqPs0fbyF7nxyMcvPYXXHobWxr1BzythTaxg/ha1asgalVDLgI2jyJv3OgFbgX82AkyXvKi5kFTjfVP+avaZyzX03z+xpO+7s4GOQr8KaMW2oivUXsehiTC8GCHm8dhK7IJUcvgtw= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2017 14:42:33.6351 (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: BN6PR03MB2594 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170627_074256_572996_1D364D79 X-CRM114-Status: UNSURE ( 6.65 ) 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 All the mc-bus.h contents is only used privately in the bus driver so move everything to the private header and get rid of the mc-bus.h header file. Signed-off-by: Laurentiu Tudor --- v2: - no changes drivers/staging/fsl-mc/bus/dprc-driver.c | 1 - drivers/staging/fsl-mc/bus/fsl-mc-allocator.c | 1 - drivers/staging/fsl-mc/bus/fsl-mc-bus.c | 1 - drivers/staging/fsl-mc/bus/fsl-mc-msi.c | 1 - drivers/staging/fsl-mc/bus/fsl-mc-private.h | 61 +++++++++++++++++ .../staging/fsl-mc/bus/irq-gic-v3-its-fsl-mc-msi.c | 1 - drivers/staging/fsl-mc/bus/mc-io.c | 1 - drivers/staging/fsl-mc/include/mc-bus.h | 77 ---------------------- 8 files changed, 61 insertions(+), 83 deletions(-) delete mode 100644 drivers/staging/fsl-mc/include/mc-bus.h diff --git a/drivers/staging/fsl-mc/bus/dprc-driver.c b/drivers/staging/fsl-mc/bus/dprc-driver.c index adf2ffb..7c6c4ac 100644 --- a/drivers/staging/fsl-mc/bus/dprc-driver.c +++ b/drivers/staging/fsl-mc/bus/dprc-driver.c @@ -13,7 +13,6 @@ #include #include #include -#include "../include/mc-bus.h" #include "../include/mc-sys.h" #include "dprc-cmd.h" diff --git a/drivers/staging/fsl-mc/bus/fsl-mc-allocator.c b/drivers/staging/fsl-mc/bus/fsl-mc-allocator.c index d9a06b9..04ae2cc 100644 --- a/drivers/staging/fsl-mc/bus/fsl-mc-allocator.c +++ b/drivers/staging/fsl-mc/bus/fsl-mc-allocator.c @@ -10,7 +10,6 @@ #include #include -#include "../include/mc-bus.h" #include "../include/mc-sys.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 60b2a40..3dec3e9 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-bus.h" #include "../include/dpmng.h" #include "../include/mc-sys.h" diff --git a/drivers/staging/fsl-mc/bus/fsl-mc-msi.c b/drivers/staging/fsl-mc/bus/fsl-mc-msi.c index a92fa5a..81dca7a 100644 --- a/drivers/staging/fsl-mc/bus/fsl-mc-msi.c +++ b/drivers/staging/fsl-mc/bus/fsl-mc-msi.c @@ -16,7 +16,6 @@ #include #include #include -#include "../include/mc-bus.h" #include "../include/mc-cmd.h" #include "fsl-mc-private.h" diff --git a/drivers/staging/fsl-mc/bus/fsl-mc-private.h b/drivers/staging/fsl-mc/bus/fsl-mc-private.h index 7f5406f..e583999 100644 --- a/drivers/staging/fsl-mc/bus/fsl-mc-private.h +++ b/drivers/staging/fsl-mc/bus/fsl-mc-private.h @@ -11,6 +11,53 @@ #define _FSL_MC_PRIVATE_H_ #include "../include/mc.h" +#include + +/** + * Maximum number of total IRQs that can be pre-allocated for an MC bus' + * IRQ pool + */ +#define FSL_MC_IRQ_POOL_MAX_TOTAL_IRQS 256 + +/** + * struct fsl_mc_resource_pool - Pool of MC resources of a given + * type + * @type: type of resources in the pool + * @max_count: maximum number of resources in the pool + * @free_count: number of free resources in the pool + * @mutex: mutex to serialize access to the pool's free list + * @free_list: anchor node of list of free resources in the pool + * @mc_bus: pointer to the MC bus that owns this resource pool + */ +struct fsl_mc_resource_pool { + enum fsl_mc_pool_type type; + int max_count; + int free_count; + struct mutex mutex; /* serializes access to free_list */ + struct list_head free_list; + struct fsl_mc_bus *mc_bus; +}; + +/** + * struct fsl_mc_bus - logical bus that corresponds to a physical DPRC + * @mc_dev: fsl-mc device for the bus device itself. + * @resource_pools: array of resource pools (one pool per resource type) + * for this MC bus. These resources represent allocatable entities + * from the physical DPRC. + * @irq_resources: Pointer to array of IRQ objects for the IRQ pool + * @scan_mutex: Serializes bus scanning + * @dprc_attr: DPRC attributes + */ +struct fsl_mc_bus { + struct fsl_mc_device mc_dev; + struct fsl_mc_resource_pool resource_pools[FSL_MC_NUM_POOL_TYPES]; + struct fsl_mc_device_irq *irq_resources; + struct mutex scan_mutex; /* serializes bus scanning */ + struct dprc_attributes dprc_attr; +}; + +#define to_fsl_mc_bus(_mc_dev) \ + container_of(_mc_dev, struct fsl_mc_bus, mc_dev) int __must_check fsl_mc_device_add(struct fsl_mc_obj_desc *obj_desc, struct fsl_mc_io *mc_io, @@ -27,6 +74,10 @@ int __init fsl_mc_allocator_driver_init(void); void fsl_mc_allocator_driver_exit(void); +void fsl_mc_init_all_resource_pools(struct fsl_mc_device *mc_bus_dev); + +void fsl_mc_cleanup_all_resource_pools(struct fsl_mc_device *mc_bus_dev); + int __must_check fsl_mc_resource_allocate(struct fsl_mc_bus *mc_bus, enum fsl_mc_pool_type pool_type, struct fsl_mc_resource @@ -43,6 +94,14 @@ int __init its_fsl_mc_msi_init(void); void its_fsl_mc_msi_cleanup(void); +int fsl_mc_find_msi_domain(struct device *mc_platform_dev, + struct irq_domain **mc_msi_domain); + +int fsl_mc_populate_irq_pool(struct fsl_mc_bus *mc_bus, + unsigned int irq_count); + +void fsl_mc_cleanup_irq_pool(struct fsl_mc_bus *mc_bus); + int __must_check fsl_create_mc_io(struct device *dev, phys_addr_t mc_portal_phys_addr, u32 mc_portal_size, @@ -51,4 +110,6 @@ int __must_check fsl_create_mc_io(struct device *dev, void fsl_destroy_mc_io(struct fsl_mc_io *mc_io); +bool fsl_mc_is_root_dprc(struct device *dev); + #endif /* _FSL_MC_PRIVATE_H_ */ diff --git a/drivers/staging/fsl-mc/bus/irq-gic-v3-its-fsl-mc-msi.c b/drivers/staging/fsl-mc/bus/irq-gic-v3-its-fsl-mc-msi.c index 49127ac..865d385 100644 --- a/drivers/staging/fsl-mc/bus/irq-gic-v3-its-fsl-mc-msi.c +++ b/drivers/staging/fsl-mc/bus/irq-gic-v3-its-fsl-mc-msi.c @@ -16,7 +16,6 @@ #include #include #include -#include "../include/mc-bus.h" #include "fsl-mc-private.h" static struct irq_chip its_msi_irq_chip = { diff --git a/drivers/staging/fsl-mc/bus/mc-io.c b/drivers/staging/fsl-mc/bus/mc-io.c index d66b87f..ec2835f 100644 --- a/drivers/staging/fsl-mc/bus/mc-io.c +++ b/drivers/staging/fsl-mc/bus/mc-io.c @@ -31,7 +31,6 @@ */ #include -#include "../include/mc-bus.h" #include "../include/mc-sys.h" #include "fsl-mc-private.h" diff --git a/drivers/staging/fsl-mc/include/mc-bus.h b/drivers/staging/fsl-mc/include/mc-bus.h deleted file mode 100644 index a79a679..0000000 --- a/drivers/staging/fsl-mc/include/mc-bus.h +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Freescale Management Complex (MC) bus declarations - * - * Copyright (C) 2014-2016 Freescale Semiconductor, Inc. - * Author: German Rivera - * - * This file is licensed under the terms of the GNU General Public - * License version 2. This program is licensed "as is" without any - * warranty of any kind, whether express or implied. - */ -#ifndef _FSL_MC_MCBUS_H_ -#define _FSL_MC_MCBUS_H_ - -#include "../include/mc.h" -#include - -/** - * Maximum number of total IRQs that can be pre-allocated for an MC bus' - * IRQ pool - */ -#define FSL_MC_IRQ_POOL_MAX_TOTAL_IRQS 256 - -/** - * struct fsl_mc_resource_pool - Pool of MC resources of a given - * type - * @type: type of resources in the pool - * @max_count: maximum number of resources in the pool - * @free_count: number of free resources in the pool - * @mutex: mutex to serialize access to the pool's free list - * @free_list: anchor node of list of free resources in the pool - * @mc_bus: pointer to the MC bus that owns this resource pool - */ -struct fsl_mc_resource_pool { - enum fsl_mc_pool_type type; - int max_count; - int free_count; - struct mutex mutex; /* serializes access to free_list */ - struct list_head free_list; - struct fsl_mc_bus *mc_bus; -}; - -/** - * struct fsl_mc_bus - logical bus that corresponds to a physical DPRC - * @mc_dev: fsl-mc device for the bus device itself. - * @resource_pools: array of resource pools (one pool per resource type) - * for this MC bus. These resources represent allocatable entities - * from the physical DPRC. - * @irq_resources: Pointer to array of IRQ objects for the IRQ pool - * @scan_mutex: Serializes bus scanning - * @dprc_attr: DPRC attributes - */ -struct fsl_mc_bus { - struct fsl_mc_device mc_dev; - struct fsl_mc_resource_pool resource_pools[FSL_MC_NUM_POOL_TYPES]; - struct fsl_mc_device_irq *irq_resources; - struct mutex scan_mutex; /* serializes bus scanning */ - struct dprc_attributes dprc_attr; -}; - -#define to_fsl_mc_bus(_mc_dev) \ - container_of(_mc_dev, struct fsl_mc_bus, mc_dev) - -int fsl_mc_find_msi_domain(struct device *mc_platform_dev, - struct irq_domain **mc_msi_domain); - -int fsl_mc_populate_irq_pool(struct fsl_mc_bus *mc_bus, - unsigned int irq_count); - -void fsl_mc_cleanup_irq_pool(struct fsl_mc_bus *mc_bus); - -void fsl_mc_init_all_resource_pools(struct fsl_mc_device *mc_bus_dev); - -void fsl_mc_cleanup_all_resource_pools(struct fsl_mc_device *mc_bus_dev); - -bool fsl_mc_is_root_dprc(struct device *dev); - -#endif /* _FSL_MC_MCBUS_H_ */