From patchwork Thu Jun 22 13:35:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Tudor X-Patchwork-Id: 9804551 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 DAE2860234 for ; Thu, 22 Jun 2017 14:49:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C665D286BB for ; Thu, 22 Jun 2017 14:49:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BAE6E286C0; Thu, 22 Jun 2017 14:49:37 +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 17E09286BB for ; Thu, 22 Jun 2017 14:49:36 +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=OZXkDTSbrVP72iQbqcQHc2c50G8UWH6bLd3l9byMA8g=; b=Er+ET7ZCBwNm8V 2H45h8FYLnApsDUD/xIcVeNVguJzpkpdREZGcesBjKu4PBnfwylPF/FL99XrVIRyMST7G+hUTY3MJ rvmUrOGrQj35kGkO+070L8N8J3FujLuE+lX39q52Hoi3CfO8lu5br3cd5sIyvvQj3iP1IQcVk+CXg kIWbCxMoKCGqYFSZ6hQdXBRbQwMd/4a/VDXRhx5sq9FWa8VV8bVAOfu4jit2bOWTXvf+8Y5MBqsB2 cC7rKjkoU7mSGo1IQ5ygj1Hgj1UmTSpIcwIYilxX86CXEmkUvnsFghZfp7fhTo9NEQLqHN2mOgYsR Bqt94o91y0wF+qbHBokg==; 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 1dO3QN-0000Fm-CF; Thu, 22 Jun 2017 14:49:35 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dO3Pz-0000Fd-Lw for linux-arm-kernel@bombadil.infradead.org; Thu, 22 Jun 2017 14:49:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=IVNmlt+gpsII2Ooh+eLQgiYTuLoZvxjUi0VBG+DCrUo=; b=Fi5ndiOSAA4qHxKTrxvqWmesI B7ZSektR7jPM+c5SSadcRhvdnTVCuREzhp9s7P4KOqyCjB5r84Pz2i5us8IDmjNMsdzrTYaDWF3Jc xJuyOJBj6WVawj7Esf9QMkgsjxHgJOUB1qJbCOi8Uar/PnFbCiGiHzBz+2qV6z2TS8E4p8lHIdXNH qzIXEPVSsk3fCi+h5g9GfFr9ffBWssOUEdaTzsHJZqGT1DLtqFcljJLbGxpi1JyV2IDFJcH6s123e V/22BatLxJp+gwY9uK062BjhQnh/4G7w+8KKAxUdlBIXeqIGq0VJT16t662qeJHUpNC0sOP6w7OSI D86HhX9VA==; Received: from mail-sn1nam01on0048.outbound.protection.outlook.com ([104.47.32.48] helo=NAM01-SN1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dO2Iv-0001jA-Ay for linux-arm-kernel@lists.infradead.org; Thu, 22 Jun 2017 13:37:50 +0000 Received: from BN6PR03CA0031.namprd03.prod.outlook.com (10.175.124.17) by CY1PR0301MB1194.namprd03.prod.outlook.com (10.160.165.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1178.14; Thu, 22 Jun 2017 13:36:52 +0000 Received: from BL2FFO11OLC015.protection.gbl (2a01:111:f400:7c09::179) by BN6PR03CA0031.outlook.office365.com (2603:10b6:404:10c::17) 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; Thu, 22 Jun 2017 13:36:52 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) 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.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BL2FFO11OLC015.mail.protection.outlook.com (10.173.160.81) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1178.14 via Frontend Transport; Thu, 22 Jun 2017 13:36:50 +0000 Received: from fsr-fed1964-102.ea.freescale.net (fsr-fed1964-102.ea.freescale.net [10.171.73.86]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id v5MDa5BL016929; Thu, 22 Jun 2017 06:36:45 -0700 From: To: , Subject: [PATCH 09/14] staging: fsl-mc: move rest of mc-bus.h to private header Date: Thu, 22 Jun 2017 16:35:55 +0300 Message-ID: <20170622133600.31694-10-laurentiu.tudor@nxp.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170622133600.31694-1-laurentiu.tudor@nxp.com> References: <20170622133600.31694-1-laurentiu.tudor@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131426122118249064; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39850400002)(39450400003)(39860400002)(39380400002)(39400400002)(39410400002)(39840400002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(9170700003)(8656002)(54906002)(86152003)(498600001)(77096006)(6666003)(76176999)(36756003)(5003940100001)(356003)(50986999)(86362001)(38730400002)(106466001)(105606002)(2950100002)(4326008)(39060400002)(2906002)(7416002)(5660300001)(1076002)(47776003)(189998001)(33646002)(85426001)(104016004)(8676002)(81156014)(53936002)(50226002)(8936002)(81166006)(2876002)(48376002)(50466002)(305945005); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB1194; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; MX:1; A:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11OLC015; 1:iRmVSs6DZXPYPvV9pyalsDM5/WhHWjvRG9RtZlRqARgiJoIB9Q5vRJwChmapr9436Jn5Qhq7S67VJMNoC54uOsXAgpPIQnvfnHS5us3nT8WzlRydm8Hhc2JfbkMrxKFT581g007ZroaxGrRqOcGAyw2VXD8sDKt1894TtA4/Gcj2DZ5JYD+goNMs9t44jrXAUA3iAklJlPpVFXzsMle1s+dxw4GhNTfhv6H4ONXBtO0YXSnnpL5W9zmqPDrwc0CB5gie0QECS6pkFejpSZ3nhn8pHqTQxqA5oO/0fcD/qwr05yI3Ag78K2VGMnKPGt6r3pI3qbMBEjL5zd/n2N2Nraf+5vOOrWIz0HYsC+3TO/ofrscVV4dYicqLz2Gqmrtku2FR7lKwZ5/JQDTNgjW3IjDE5BGsB4Vps923BZ+6n7QAEcn0/9UD/LxjjKlKUfJXTY6EZUvOS8H9paHitS1/Pm0+4MiGOe3s8uuoGOHdv3CYHbBoTqfuMlQPpoPItWXFDzfFiRmXL+jSlQGkRsuM0UKoAbVeXi1BUouXzadxJXcN5mdUFzTQsx27aIpn4yzBV2hPrms6jVmt7chwyl4frL/yk74SaqgpAC2uuVj0IT2P8BQKJxGdaKMS9Bb+7evTYOzh+FG72tfXHElhKez0iLwL46hNh25Bo/i/Hep9rI8E7PEM9vRA9s16X5CJSDi+2MLWBUFhWpCF6EJUrH0CMQ== MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7c22a4c3-f871-4cee-590e-08d4b973bd85 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131430075)(201703131517081); SRVR:CY1PR0301MB1194; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1194; 3:HIb99CogvXo6rIvCS1eihSN37QMlxL+u2hFz29TKmpBjnXHPz4CfIBdEXUD97FdCE7TsQntxhzuo4kEFH9SPMEoZL/d/WllZTjQuSbTBznRwlMH8EREkPDE4zBuwMdd0qJ3PKY2g8GUurlMJ/oGDjeqRbtL9gFF+E+11FOUf54LiB24rjpSF73DrFXJ+trMpfhLVN52OPJ4MEBwUFb5LP3ygEnOBKp3vaQTzqYrilglq2tHHBTH/17Iv/K3RoTG0TBW3r5vrlyAHPF0H6q6t0k9LXgJDdeJQY2Ucu17hDy3/50o9omQT1LC7MgioAaQP7n2jIMmoo1XgNBqEMj9gjqhEXBMQkn78g9i+R7NcvWcD6GCZHlWJE43fXgBYx9trElyA/mgSu7MvF7JMnlioSy238beHnllgvXfgLIjktFI3sQkgQk+I5zhAJZNlFjaR; 25:9QATgggekP68LbtrT5aEmzKq5Y0LqZ35tU+Q45F3PjmRlnKRYfMs7hL2dJ36vcLrNV8qB6Gx90zP4hf9aGd7pRKEhU0s1QR7/eBo44Xq4FuFBOb8OM4ZZuBC06RaxzpvqP2ip4gwTz+h2ngRtZJl9gO35zXqc0jb5Y5Vxb4nt39QjXq5gJjKwWwJQjZCp6TaZHijU/siNiCaSEv+TCSNMN6Hq2KbXp3TpUPP8M0JTBx8Sr8STm/PlgsxZ5TJLeT4dYyDcmkqg0w618Yv9zbAi71YWZOFk62vlV5G3NJmNRuff8/pEzYABfigHLFQ7tSJdUwZYkHuT3coI/yTqjhnSbsehXA7qMoE18TabW73Efhny1p8jffzo9x6ObXflovjOdGPQXt6MH3oHRak02/6JC+xGOEH6eCT44SXYj9udipxrFSbC0WppIopaP2Z/LfKyeIIKnYibuZTF58ICOacOpWig6CnZ6OVI8YPCvQsDKM= X-MS-TrafficTypeDiagnostic: CY1PR0301MB1194: X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1194; 31:xvBQSZQQcB6PIZl1EorXc02N/sgCyYCNX9fT2N+ZM5XeF9rsMngnplfyActT0cSz/CxqNazVhNBZ1buOQ5EMV8FZmPzeBRkbYXe7EpD09zJ08k+hDDTzzeP9cqPZy1sqbiYnn32I76aWlf7/N7A7Qv5PtxXsI13Ndc49ZZLmuEwJ88P5U+/2ZgXlf04Enq0nI7AGVq9Q0yfJb458APxwpYDCUNeXioZvL+IyfPvDN6MYFU1ISD3l6SjYUlnhWsGXkDZ5tulgAF3KRKeMDZKOfkSk/SCqKDuvOt48dAAk+wI= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(101931422205132); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(13018025)(8121501046)(5005006)(13016025)(100000703101)(100105400095)(10201501046)(93006095)(93001095)(3002001)(6055026)(6096035)(20161123561025)(20161123563025)(20161123556025)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(20161123559100)(20161123565025)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY1PR0301MB1194; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY1PR0301MB1194; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB1194; 4:jG1peEwSx5g8emgOckb5fZVBXXVfsztEIg+TUnNG?= =?us-ascii?Q?CuMBM5GzRukCenV/GlgeT8/jHrVGnslx3C0MMdeD9SIN67IM3zbi5sMds5r0?= =?us-ascii?Q?5Dgq6g7yjuE4TYqJfghw+nGc/6XQvPVIMS0UZ21Tm2UVAMpq8MEoBG1yiI1C?= =?us-ascii?Q?LgL/rX4sYNTE7ljE6rzi7UpIxUq5JY/DbTdFzqsnaHcITfsCPUsRoovwaJTC?= =?us-ascii?Q?KhO/Qqejra5JgYiDpgt8FdqvVRYpsF/Fecs5e2ZHkoWaWS+92oxIx6zVMA7Q?= =?us-ascii?Q?S0SB5+hsP+lan8/BdNm6i1i58FgX5vU3O5nm+LUqprjZPaAA9L6wm0L8xOH1?= =?us-ascii?Q?IGW8DLN7yjVZ/Z2H0uZI2p1kM+oJFrPlAB/QXBtTo3DDR+kuWBj47b6zSTdm?= =?us-ascii?Q?cCFbH7WiqAFDJ3H0XcfjF1CLgwE8UKvT1tGIxVgBeMl23Dz5NYTv9FxLEGEd?= =?us-ascii?Q?6rKbIijWJg6j/+ArVDp5dliIFC/SpRi5mNygMHhj2FSg7KoBTDxEEkOUZzyE?= =?us-ascii?Q?xjtbRusQ7xYBiYyygo7I8b4TEnphuK46lSvWX95LDksmfu7urG8MuUsexCes?= =?us-ascii?Q?QE3H1laFr0ec93hW7D2Bi6sv9MImlgx5uRcB0TndO3fuGMGjXN10N/nrQHHZ?= =?us-ascii?Q?r14Z0ojtImNoULuEj2+FBkpPOfK6q+Ya54sbLpwTXkBfkNnkdSQ994bkUIzK?= =?us-ascii?Q?8F+wPAL4AxaAtxF+/4JQZ515sQ4BERUlRrERKfLtH3XB/G8T32+h0RJ3bN9n?= =?us-ascii?Q?pN/9l9ww1tqA8XvFFJ8mNCvfu+FvltEHhBOblfQWihnM4R/4X3IcBiMkHq7X?= =?us-ascii?Q?t9QdjLqIjcdmy+hQ6OoycgS39tMKNohSqsMW1pYHpZilY/zQMoVLU0Oey2u+?= =?us-ascii?Q?tesBFekUmBB6uVtwsDQD46i2+fYluBlnFOcgWRPAY+gbE2rS88XQxJc2DCBC?= =?us-ascii?Q?/hdQyNyNeOc1Q9BZKXxvS3wTFhRc1zQ1SzYcmaHSCSQRy7rGTEbH0tmUSIdm?= =?us-ascii?Q?yj1eVoTY/D5y5aSECfssyn+F38qq8H4D/w5dO2GysWIHf+ZClLKeR/ZwRZ68?= =?us-ascii?Q?tGaYkh4t8oNBT8+p5yFJVzcyFhAxEvwK45tqOZRgFUyTGyryjWUCGpR/7R7b?= =?us-ascii?Q?zLStdHlAO/PlBvz+rKzi19q1cJOi20WWikJiEE159OtnqpF68xs3LiBd04Cf?= =?us-ascii?Q?2f/IoPEyi+ZWa5wvINvxCgFAMqI+buktNx2hwZSvJSEz4XS8L+go/rpNeBuT?= =?us-ascii?Q?hPk5fsbZZuDL906KvfUuJMVEjJY2rqaxvg13Ok5wybbs9atJH9WimBoklQaB?= =?us-ascii?Q?FQ=3D=3D?= X-Forefront-PRVS: 03468CBA43 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB1194; 23:GanCemLcgGMXzT0k0OmGW0NBkyLJYZMbxmuW0m1?= =?us-ascii?Q?qnlPz3Tkc0ryN1slgniRpjgw3OyERYu3Cf8IrAegi3T43Gf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OkbGFsA/Bo2uPrhHKTLG3cp9GODXytkNZ0aK?= =?us-ascii?Q?AYYza3dGXKJ2LaZhzYDIBWGLCQaw2wPWxe+XVKk3va9mU2S4HZ99n/P40vyU?= =?us-ascii?Q?eWZmi12XW+4UCIJQ2xR8C2ggObQ+9WR1zks47vGn4dD/anbyMsE/hdfbfCZX?= =?us-ascii?Q?Cx+T/J1IoiQMFffASJFfygF+81eOd1NbpBdfR3W8jriIkRwZ02ZpL5xwOTyg?= =?us-ascii?Q?gXDDeHn9mpwIgxt1AaotINNiSjzynPekJMurmKq2uIuy0shhS64avc3Dr4ED?= =?us-ascii?Q?x+mLpTykuP/F4C3frnJUSIrPdqOfZvvfroLz6SAbhUhU38OtY2PLOXawDvey?= =?us-ascii?Q?V89Ebr04SckO0zZBW/SnoDaA=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB1194; 6:rAc49YzLuHRxIiYu5eFlht+qmVvTMRtPYelUm+fW?= =?us-ascii?Q?+RQb0hYhF289jvdvhcV48M0iJ1BMgYOmkd1rjVThZdN05369wSGk/l1d7hNC?= =?us-ascii?Q?LevXBviaV20nYHnvmV1p8m8M4VemA2unzYUgI9qw3IzMJAoGTb8or0kpR3Xt?= =?us-ascii?Q?694srSHbixQJhOWFaEa6JjWYvb+yRfxDGlVqr5WY0bEnicZzqfIMzk5itTeO?= =?us-ascii?Q?RHVT33kEvvAKGBvZPBjmKEt3dkxXzerkst4Wtb2pMgmiGWw865jSFOT1XC5j?= =?us-ascii?Q?2khgOkIoT/rT66OQWwMdigIpky/t6M+eogDar3P3h69wlKKgC0n/l7WnuPHV?= =?us-ascii?Q?Ys+fLADRfK5pyxB96MTewPC+/jmjhvt9VH7KteYQ8z4ORJNbjh8hyt0ZphRZ?= =?us-ascii?Q?oYzPpq2bIQr6DwzAZTrGTxBfTEJD9Vg4KFHDkFZddDcjg0grWtD3QOidAz11?= =?us-ascii?Q?CLfyh7ZkDRlzJJ1jIaYXlz4QZ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0NS7OwnGVf2jA2FvGMWBufXb5Ru1wH+G3ey/3wtl8= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jun 2017 13:36:50.4053 (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.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0301MB1194 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 --- 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 8447961..142dfa7 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 c2af5b5..e6a2857 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_ */