From patchwork Thu Jun 22 13:35:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Tudor X-Patchwork-Id: 9804405 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 8441660329 for ; Thu, 22 Jun 2017 13:37:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 706C22842B for ; Thu, 22 Jun 2017 13:37:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 64B622865D; Thu, 22 Jun 2017 13:37:15 +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 9E4B22842B for ; Thu, 22 Jun 2017 13:37:14 +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=yaJc6McK148SYtdxGT0IYkiatqjo3N503zdhcmsVAho=; b=BHNEoFwGZVLPJc tlGRNzf3W1Y2/1laLu/GIFxfFzV0CXI6rM1gi4DoY1+KDqzG9scnb/EjQI9Aqya6PVKgE5U0P3yK6 hJRxEbFVeAn8AZkkScpTeEuk01o4J/nr22S3KPRmLs8I1oNjuPJ62x+uyaTIQ451AQxj726djvvbT i1GgRQ/r2v7DR2PM6kWYp5CAFMJMU39C6/SumMT61khMRa5YZfefwk+v5jHwnFtFNfzNhihEiNS8V lhm5OpsObJlSlkacJb4dsX/V51n30sWN1uoj7dKcF/ZqH1NJpklFRcenmoMjlcKVddOj+Xav0ezZq zWbSlnv4ce+m2C1zGJvw==; 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 1dO2IJ-0001Xr-U2; Thu, 22 Jun 2017 13:37:11 +0000 Received: from mail-bn3nam01on0040.outbound.protection.outlook.com ([104.47.33.40] helo=NAM01-BN3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dO2Hw-0000un-Lf for linux-arm-kernel@lists.infradead.org; Thu, 22 Jun 2017 13:36:55 +0000 Received: from CY4PR03CA0094.namprd03.prod.outlook.com (10.171.242.163) by BY2PR0301MB0600.namprd03.prod.outlook.com (10.160.125.22) 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:26 +0000 Received: from BL2FFO11OLC010.protection.gbl (2a01:111:f400:7c09::100) by CY4PR03CA0094.outlook.office365.com (2603:10b6:910:4d::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1178.14 via Frontend Transport; Thu, 22 Jun 2017 13:36:26 +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 BL2FFO11OLC010.mail.protection.outlook.com (10.173.160.154) 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:24 +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 v5MDa5BF016929; Thu, 22 Jun 2017 06:36:19 -0700 From: To: , Subject: [PATCH 03/14] staging: fsl-mc: decouple the mc-bus public headers from dprc.h Date: Thu, 22 Jun 2017 16:35:49 +0300 Message-ID: <20170622133600.31694-4-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: 131426121856938753; (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)(39380400002)(39860400002)(39840400002)(39450400003)(39410400002)(39400400002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(9170700003)(2876002)(53936002)(38730400002)(36756003)(2950100002)(5003940100001)(8656002)(105606002)(33646002)(106466001)(189998001)(39060400002)(77096006)(85426001)(104016004)(81166006)(8676002)(5660300001)(81156014)(7416002)(4326008)(50986999)(76176999)(2906002)(1076002)(305945005)(8936002)(575784001)(86362001)(356003)(48376002)(54906002)(6666003)(86152003)(5890100001)(50466002)(498600001)(47776003)(50226002); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0301MB0600; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; MX:1; A:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11OLC010; 1:MuqW/Y7rn3bru94qYGRZuD/Y79e9DZ0UIsFWSzzi69PgyLY4ldg18pkzQa/RaE/AuVxvvOzCOyvoGT/fc1EdEm2J8G7rpgPbAPzMPTYdMA9RJQBlVuFBK2jn9iIkh9y0BjJKGX1na1a5YHDxTaQ/sviIwa1ReWYEfSdnxfS68f3bIup51wB/MObLWs+/pfSa8NEiUKSxJHicR6lV2Vijt3p0W4dz6UF1Gq492ycDXk61eYjv866z5JHNyJaNcdY/oWgon4hGyQ8DC/4FnjF73aJu1pwRPzT9qoOW8Kgg7ScJx+mKjsFCdK2LQ7ydl+dqjS/1L0HTYOyRGmMd2TKCapcHHmySWFx2OX4qWiJJeVZ8Jsy22Y+brPwEw6vGlrO7/JyweKwdzZBLM1c0OYS5gT6jkg0K2MOlxfznVlqI735hGueR3crGnTNeqlsizhqUxeHz9W/uRxiRh2zzgb5irxdfF0UMg9Bb5RxHHi4F6Fk2T0wKTNhS7vKCqzQidpyCOZ/YmzF2DRFqw7ZPG/ixynFQxh+XpUySa9i1aJn4Ruk9z0/DiVwS2Z+gIa670WxSvUEmlDum85LWRjoN+hBYg/8IkcH9du69XKpB9J0o7lRPGz0A/BprMD+T3b8C5XxFHtTjdX/gj3PxMqI2rvRgdOzD9EX91K6vfhMPjmbGCsrWguWwS8wlSlTfl8SLk7xkXzWZP4o9WcXYBBnCmD+tvQ== MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9b92b6cb-2ce6-4a83-11a4-08d4b973adf2 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131430075)(201703131517081); SRVR:BY2PR0301MB0600; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0600; 3:d61oiNmy/phPIBGriCzbdgesoPgtmnKbmt3/u2WJg9e6zUAS09DBtpzF5PSTNpSl5yIuECY301C95lZBHXToFSp23cT1B4HXLr9EHZPzXr5XTCSmKvHUyhRJchi2nNb37skuZ6qz62lf8BFnpeu2Z/yp7GlxmTdAXdYA2IQW7OqWbjMemtby2jVcFLvccHeevmbETRZbQadwATJarfN9kJ8zpIhb2ORSnUegSqXtgjwJfsnnc/cvB8FEGouM7g00GSg8306+cRPoHSOc2TvQOjVf/HvbSIbbuwwIgo7p5bcTS5fbw1X5U/PXE2SOoI4entjZBdHzSPDKF0DEH+/4KzPs3AsR6o9HA6SnX62GglZ3NaBMvDcr7C13Mjw42TSFVI7u8PTQT0q3nFn05oLcalESQNVVzSOUhHBslC5G6nevQJTOpItwpnK4Kk8PIDwb X-MS-TrafficTypeDiagnostic: BY2PR0301MB0600: X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0600; 25:TU7PY111dVrGwrd02hYgEiDusiib+JcyyNt/85uWKB5w0tnaHaXMxviE7HY1ypxR/MQq6rlbzpAjZA1VVflIj/UgNYzEM08dvJciN6BcQNhUK1yYxpjmU1LbbMk7/r24uOyGQn7C94dAEWeorRDWz6FhZmn0e5VSb24IZD14nHDyP3D7yVXCUsU9Inc73vFoXS398+GGQwQ2Suuo0iGok2pcdgyyrs3nD0g8s7NKShdInEamvjWxPqWLg3KfBiqDB/7OcVY32yr4UT7yCkauru2adImmdjv9t/i1XRn9w3LsQnmx2DkdwLiJbZrxhHWJUoQCU+Lj9Uss3yJQHbYXny9zG9cn0hIJPDTig04HEbJuUkrQzA1RIy+ox2j9Kfkji75eGOiqn0hrRrDUetd7u2AWhfG8sRPHyzWGPNpzPa+O8x5sfIPtJ6oqxtswPtJbcUwmNnEml3Dl7LOWDbTYusGl1JPH1qd71yiZDTrpAmyO2lFtVeowiOnUZjaY+pDNgNrnSBTIeekCdeR0BEaAdKnnp7BbcA3sTBJColSdW1QVabSfxc/e14w3E7/XTBZZ5d8C6UWwsjv98apFOEn6OvV8LnE9DIEEQFj81fbXPeN63CeyB2z+1EiaN4M44XxTp8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: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(5005006)(13016025)(8121501046)(13018025)(3002001)(93006095)(93001095)(100000703101)(100105400095)(10201501046)(6055026)(6096035)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(20161123559100)(20161123565025)(20161123561025)(20161123563025)(20161123556025)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BY2PR0301MB0600; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BY2PR0301MB0600; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0301MB0600; 4:oZCVQbEXMxqzGaazQYMaDeUaB2rCV6+IOibEF0W4?= =?us-ascii?Q?EHAB3cwSHKi9eFsSbvvVacDCt2exrtR/clIzmFY4juYjBk/Obp8TcFcwCfNJ?= =?us-ascii?Q?aTIf5OkCdzDV9qdkT/WBUuwtniP2RutGzFP2IHMjck3IKOZn7VNPrH8Ldy1L?= =?us-ascii?Q?22wDR8oM+cAKhbuaKGUbgY+pU75AAVOJ1Z+3ZQiYwS8IiXibJV9Y63q4bwOe?= =?us-ascii?Q?tzaYouSdWfX7MfIeHOw2jTnwGqy3nkFM0it3sS+fBHaqFXdclja9zPjBLrej?= =?us-ascii?Q?9z6SkeYpXUVfqfkAG8A/yFqFBUwncQ+umUWvwg8c0BOALtpsQXRaBt5RajmR?= =?us-ascii?Q?wTkGa70wXE6jLGKRW/2vz3TTf8m61C3tm5BHk+3G6uNlgYcn+6dk1uOLr3Zf?= =?us-ascii?Q?k9D9f3QiQqRo+7ygfAeEy+nxFHXotCVOC5NAA/hxvBGsUXoeC4hVpNZw5wi2?= =?us-ascii?Q?LfcoQhiqw4773xO01BpuscSLHUIWtGpUzGM+H/riX8LQKwYyKO3RnhgSXu4Y?= =?us-ascii?Q?O50AyOOkQwcswJOsg8shE1GHRTvNJY2MCUyHrcNTNh2ygiahAef4qYCmczSa?= =?us-ascii?Q?uTcSfHnf//1uI/hofZSuhDZ/qyStp5qeFiyG9TeFcpMsx1G2/XdTHRnLwpLz?= =?us-ascii?Q?H7fHDg65QS7ZGvLjj5ldF06hL1bOlKS40C6caBUUdmH27kNl56brKhrwh1nu?= =?us-ascii?Q?NbouBTPORaHuqDzgPcOxDnVZwrbPVuMmnSb5kD+XYWHPZ6JkTxjYhSTmYce1?= =?us-ascii?Q?bOrASEC93UBBZXxiYqq0JXDh2J3UpwkG6SgOOPYzl6FZoDV+Z5yinmVLNvP4?= =?us-ascii?Q?sk0Bk9DY09lxv90pbDMcLOYZ4qVA34IKpgxNct8+HOLitpb3O614E4yEKNZT?= =?us-ascii?Q?WE8lHQ/YYMliQB9Gpvb1qn5QpQbh9E+3UoDhxODn/GjhSq9MkyMxaB5ZLzuH?= =?us-ascii?Q?65jpW7z6LjWi9iCdUyQuzLAEcJZrws194P9UtyhAFrLEUmJrt/1BcwZKKYPN?= =?us-ascii?Q?kbYzIrm1VadYz2DDER+UGzUDrRp25+BHoDicrZaTLR/Qvx6Aq12qkWDnIODS?= =?us-ascii?Q?8gkkKkW+iTnvdTPXrrCXJjoMtUEy2Me7oayNVrjp6h+87lw28ylFPQ3a8C0C?= =?us-ascii?Q?8Gs+m0U7TbRuGPaMbuUpvmkYuTm4yTk5wVgDIXuHUDo4WS3uQFzqCXanXqgf?= =?us-ascii?Q?ibVANvas14Xhtw7m3F0d1tDAWZHN0HkABWZrpjIqE+ee5FTEnm5zKwbyGMX9?= =?us-ascii?Q?ahurnlk0+z58VpFp72M69y14yY3A5O5R7Pf9arRo?= X-Forefront-PRVS: 03468CBA43 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0301MB0600; 23:lggcV3ER3bnIncMugNgVsC2/fmKniPhJfm6c4bC?= =?us-ascii?Q?y7TkURQ2VrQIUc90riMc6Um1ib+NOVv1vHjbQODibNpobuYRp3Y/QOR2MTqk?= =?us-ascii?Q?QF2qcFjiuj4z39r50mJQmW4m935B1Z1EcwOIkxszzjtXFoiKMHV45K0TuQl5?= =?us-ascii?Q?ze/3KI8dPvvq4dUT4yFvM+ae4iTwYKs1Q6Ekh2k0nZQ1UcIkk4S4JScPN8V/?= =?us-ascii?Q?2KfaZ+wJHxy/cdb/0H+55JLpyPjTwyeayNvWom4paqZcoEjZW3yn2Hscl+Uw?= =?us-ascii?Q?zlmKStHK/5r62+jFhq/18IM1uCGE4HKXeQluATRrez0FeMWFrg289lhxkgWh?= =?us-ascii?Q?Z4I8//h5rrbeueoQM8F7NOSRucAFzlAOchXBQQX+uKoXBnW6upnOhHYgVhso?= =?us-ascii?Q?70HF8aDwNNojMEiOWXHcQEuuE2Tt/76n7zqj4aGShnv0IvZXyUo4kki5TPOv?= =?us-ascii?Q?9d8kSF5vXuXN8dnTHpcd1S6R/bSD3XyKqMpguHpH5len/KPgxKjJwMqWTU+A?= =?us-ascii?Q?L6d9pa18yomC9AiiYZH67JR+1MhO0mLgo+90pl39vlG6DCg7GqVTBlT61dcu?= =?us-ascii?Q?aepKwK3GM7u2IClOBqnRvpNbPcyj1INoUjeoL29wikzPWZsQjv211oE4Fxie?= =?us-ascii?Q?sL1d2RahAw4aj+HonN0N+skiu004732pYIivDUraTMJ5GRhzdi2ThDZPwrHa?= =?us-ascii?Q?vSU1eSokyo6S2sfM9lqH4ZE9XeLP7gK8CxaJNbAyPksQFVrVBvoDuHgJCuK5?= =?us-ascii?Q?QCt9vQwt91luixDT+EjlMqchpml+bPFDU5lbuvleG3jabKTAkuFWOfJfQbSD?= =?us-ascii?Q?kv1e4Q/32rLudOOF6EohZ8Yk2Ws4uSjkUA7bXuDfMbdrX2NahPbCPBMZMp58?= =?us-ascii?Q?6hcVj0NNf+2UZ6Ui9xidzphqqxIkGyDC0ddnLSRxelHAlv8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dN/Zm7wUFAC03D8e3eaYjulF5+PKJRUaEdP5o+0omA2DimlaJmmDqqvOvlruIfuh0Ap3A0y8cMnCDIqBFCdcy8rn5PHieQtslvar9bvCaCKarcHiEkGyXUHKcpD0cd19ASVB+DfAPUSh2zDoPOrTUPjMgVVhAnhzJdSV3WylrCz4GE/SkqxIyAvd8fPbZyGWF8a44YRADQMwWQfmt/qduSiNDUFNKaT8gIVzQt42+JfyDGhFwXCjWS0XVosIiZ4g==; 24:MvlabpbDHKYmciQZbF9deFxP2YCelWlpdFvkbwjYoYtqSIa/AddrmD/rP3DSDwu8Vl41Ddqsy0GWnCQ7w/dvWIFtYOMK0T3md/+T7uoPRXU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0600; 7:+pMyijNiqw6PxisH92moXKT6yxYQFojKANkPZVv0bT5DtQmik6Wihl1pMFrb/1pDT4wAVIA7UGD+6mo/cSX3DMKh8XlZm0uTqVSpHu807AqC4JEpL5eg15PpTfJ0kJP84ZkPVEHKaTtLUdB19Kq8FrSdDNDRKubE/svz/CS/1J2lh/7cBlNHoxAHmNDJe6expFQcW1b2CN/xWQRuiCyjrM4aEG6AAk38nrpLn451lPmpHZzZrGwlbIsAmo8LJfRvNGm2KV4iFOGrrEKuU/6FgvjBgs6Nk/XIPCMNnq9lM+ED5eonEz3a2L+hMcXGBqYQylzmho30jIt9o31fhvGDPmq6OLkVLCB3NsPxaCphx0L72bt4dZB3wVPHtawhqG9THi/XHLhxrIezll9IKsZQExMppyHpFSwlHFFFsc/RKYYXfaOVtHbMEHfFrNBF8Qxwe68CUj1zSRWIwW9XLjtItu72a2BzjLsymAdby98eXexQwafL0WqCkGjv/FfCPwd3oOEqszGUTqcC9+MQvBsmI0njF8eejf/+Y2XOkoaxVcVIs+I6/LHOlBjih7bn0uSo61axNXLCnNTKevCSvAi/FjZz5xqhWMedb5wkywobIwOwkL244b8QAxPLxw3y08KfZrujBvDB7z385bpR8F6Lyb5VXMp5zR7kER6OX1JajTksCYelRS+PvImxtxvn1dPtsk6q83YjMKsIrkyq7MykBM/hQjAZ+aLhU4GCXYTwhdVE2kPizUve9Afwt2x+fib0WzwH9I1OiqDnC055hRVgu05yRUHzGq67a7SWqcqWzxY= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jun 2017 13:36:24.1807 (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: BY2PR0301MB0600 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170622_063649_293860_4FA8FEA8 X-CRM114-Status: UNSURE ( 6.13 ) 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 In its current form, the public headers of the mc-bus depend only on a structure "dprc_obj_desc" defined in dprc.h. Move it to the bus public header together with its associated defines and, in order to keep the naming prefixes consistent rename it to "fsl_mc_obj_desc". This will allow making dprc.h private in future patches. Signed-off-by: Laurentiu Tudor --- drivers/staging/fsl-mc/bus/dprc-driver.c | 38 ++++++++++++------------ drivers/staging/fsl-mc/bus/dprc.c | 3 +- drivers/staging/fsl-mc/bus/fsl-mc-bus.c | 12 ++++---- drivers/staging/fsl-mc/bus/fsl-mc-private.h | 2 +- drivers/staging/fsl-mc/include/dprc.h | 46 ++--------------------------- drivers/staging/fsl-mc/include/mc.h | 41 ++++++++++++++++++++++++- 6 files changed, 71 insertions(+), 71 deletions(-) diff --git a/drivers/staging/fsl-mc/bus/dprc-driver.c b/drivers/staging/fsl-mc/bus/dprc-driver.c index 80c080f..ff65e70 100644 --- a/drivers/staging/fsl-mc/bus/dprc-driver.c +++ b/drivers/staging/fsl-mc/bus/dprc-driver.c @@ -21,13 +21,13 @@ #define FSL_MC_DPRC_DRIVER_NAME "fsl_mc_dprc" -struct dprc_child_objs { +struct fsl_mc_child_objs { int child_count; - struct dprc_obj_desc *child_array; + struct fsl_mc_obj_desc *child_array; }; static bool fsl_mc_device_match(struct fsl_mc_device *mc_dev, - struct dprc_obj_desc *obj_desc) + struct fsl_mc_obj_desc *obj_desc) { return !strcmp(mc_dev->obj_desc.type, obj_desc->type) && mc_dev->obj_desc.id == obj_desc->id; @@ -36,7 +36,7 @@ static bool fsl_mc_device_match(struct fsl_mc_device *mc_dev, static int __fsl_mc_device_remove_if_not_in_mc(struct device *dev, void *data) { int i; - struct dprc_child_objs *objs; + struct fsl_mc_child_objs *objs; struct fsl_mc_device *mc_dev; WARN_ON(!dev); @@ -45,7 +45,7 @@ static int __fsl_mc_device_remove_if_not_in_mc(struct device *dev, void *data) objs = data; for (i = 0; i < objs->child_count; i++) { - struct dprc_obj_desc *obj_desc = &objs->child_array[i]; + struct fsl_mc_obj_desc *obj_desc = &objs->child_array[i]; if (strlen(obj_desc->type) != 0 && fsl_mc_device_match(mc_dev, obj_desc)) @@ -79,7 +79,7 @@ static int __fsl_mc_device_remove(struct device *dev, void *data) * been dynamically removed in the physical DPRC. */ static void dprc_remove_devices(struct fsl_mc_device *mc_bus_dev, - struct dprc_obj_desc *obj_desc_array, + struct fsl_mc_obj_desc *obj_desc_array, int num_child_objects_in_mc) { if (num_child_objects_in_mc != 0) { @@ -87,7 +87,7 @@ static void dprc_remove_devices(struct fsl_mc_device *mc_bus_dev, * Remove child objects that are in the DPRC in Linux, * but not in the MC: */ - struct dprc_child_objs objs; + struct fsl_mc_child_objs objs; objs.child_count = num_child_objects_in_mc; objs.child_array = obj_desc_array; @@ -105,13 +105,13 @@ static void dprc_remove_devices(struct fsl_mc_device *mc_bus_dev, static int __fsl_mc_device_match(struct device *dev, void *data) { - struct dprc_obj_desc *obj_desc = data; + struct fsl_mc_obj_desc *obj_desc = data; struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); return fsl_mc_device_match(mc_dev, obj_desc); } -static struct fsl_mc_device *fsl_mc_device_lookup(struct dprc_obj_desc +static struct fsl_mc_device *fsl_mc_device_lookup(struct fsl_mc_obj_desc *obj_desc, struct fsl_mc_device *mc_bus_dev) @@ -136,16 +136,16 @@ static struct fsl_mc_device *fsl_mc_device_lookup(struct dprc_obj_desc * device is unbound from the corresponding device driver. */ static void check_plugged_state_change(struct fsl_mc_device *mc_dev, - struct dprc_obj_desc *obj_desc) + struct fsl_mc_obj_desc *obj_desc) { int error; u32 plugged_flag_at_mc = - obj_desc->state & DPRC_OBJ_STATE_PLUGGED; + obj_desc->state & FSL_MC_OBJ_STATE_PLUGGED; if (plugged_flag_at_mc != - (mc_dev->obj_desc.state & DPRC_OBJ_STATE_PLUGGED)) { + (mc_dev->obj_desc.state & FSL_MC_OBJ_STATE_PLUGGED)) { if (plugged_flag_at_mc) { - mc_dev->obj_desc.state |= DPRC_OBJ_STATE_PLUGGED; + mc_dev->obj_desc.state |= FSL_MC_OBJ_STATE_PLUGGED; error = device_attach(&mc_dev->dev); if (error < 0) { dev_err(&mc_dev->dev, @@ -153,7 +153,7 @@ static void check_plugged_state_change(struct fsl_mc_device *mc_dev, error); } } else { - mc_dev->obj_desc.state &= ~DPRC_OBJ_STATE_PLUGGED; + mc_dev->obj_desc.state &= ~FSL_MC_OBJ_STATE_PLUGGED; device_release_driver(&mc_dev->dev); } } @@ -172,7 +172,7 @@ static void check_plugged_state_change(struct fsl_mc_device *mc_dev, * in the physical DPRC. */ static void dprc_add_new_devices(struct fsl_mc_device *mc_bus_dev, - struct dprc_obj_desc *obj_desc_array, + struct fsl_mc_obj_desc *obj_desc_array, int num_child_objects_in_mc) { int error; @@ -180,7 +180,7 @@ static void dprc_add_new_devices(struct fsl_mc_device *mc_bus_dev, for (i = 0; i < num_child_objects_in_mc; i++) { struct fsl_mc_device *child_dev; - struct dprc_obj_desc *obj_desc = &obj_desc_array[i]; + struct fsl_mc_obj_desc *obj_desc = &obj_desc_array[i]; if (strlen(obj_desc->type) == 0) continue; @@ -227,7 +227,7 @@ int dprc_scan_objects(struct fsl_mc_device *mc_bus_dev, int dprc_get_obj_failures; int error; unsigned int irq_count = mc_bus_dev->obj_desc.irq_count; - struct dprc_obj_desc *child_obj_desc_array = NULL; + struct fsl_mc_obj_desc *child_obj_desc_array = NULL; error = dprc_get_obj_count(mc_bus_dev->mc_io, 0, @@ -254,7 +254,7 @@ int dprc_scan_objects(struct fsl_mc_device *mc_bus_dev, */ dprc_get_obj_failures = 0; for (i = 0; i < num_child_objects; i++) { - struct dprc_obj_desc *obj_desc = + struct fsl_mc_obj_desc *obj_desc = &child_obj_desc_array[i]; error = dprc_get_obj(mc_bus_dev->mc_io, @@ -282,7 +282,7 @@ int dprc_scan_objects(struct fsl_mc_device *mc_bus_dev, if ((strcmp(obj_desc->type, "dpseci") == 0) && (obj_desc->ver_major < 4)) obj_desc->flags |= - DPRC_OBJ_FLAG_NO_MEM_SHAREABILITY; + FSL_MC_OBJ_FLAG_NO_MEM_SHAREABILITY; irq_count += obj_desc->irq_count; dev_dbg(&mc_bus_dev->dev, diff --git a/drivers/staging/fsl-mc/bus/dprc.c b/drivers/staging/fsl-mc/bus/dprc.c index fcf7b47..a47f31d 100644 --- a/drivers/staging/fsl-mc/bus/dprc.c +++ b/drivers/staging/fsl-mc/bus/dprc.c @@ -29,6 +29,7 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ +#include "../include/mc.h" #include "../include/mc-sys.h" #include "../include/mc-cmd.h" #include "../include/dprc.h" @@ -496,7 +497,7 @@ int dprc_get_obj(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, int obj_index, - struct dprc_obj_desc *obj_desc) + struct fsl_mc_obj_desc *obj_desc) { struct mc_command cmd = { 0 }; struct dprc_cmd_get_obj *cmd_params; diff --git a/drivers/staging/fsl-mc/bus/fsl-mc-bus.c b/drivers/staging/fsl-mc/bus/fsl-mc-bus.c index 7b48ade..8725a5c 100644 --- a/drivers/staging/fsl-mc/bus/fsl-mc-bus.c +++ b/drivers/staging/fsl-mc/bus/fsl-mc-bus.c @@ -82,7 +82,7 @@ static int fsl_mc_bus_match(struct device *dev, struct device_driver *drv) * If the object is not 'plugged' don't match. * Only exception is the root DPRC, which is a special case. */ - if ((mc_dev->obj_desc.state & DPRC_OBJ_STATE_PLUGGED) == 0 && + if ((mc_dev->obj_desc.state & FSL_MC_OBJ_STATE_PLUGGED) == 0 && !fsl_mc_is_root_dprc(&mc_dev->dev)) goto out; @@ -339,7 +339,7 @@ static int fsl_mc_device_get_mmio_regions(struct fsl_mc_device *mc_dev, int i; int error; struct resource *regions; - struct dprc_obj_desc *obj_desc = &mc_dev->obj_desc; + struct fsl_mc_obj_desc *obj_desc = &mc_dev->obj_desc; struct device *parent_dev = mc_dev->dev.parent; enum dprc_region_type mc_region_type; @@ -432,7 +432,7 @@ static void fsl_mc_device_release(struct device *dev) /** * Add a newly discovered fsl-mc device to be visible in Linux */ -int fsl_mc_device_add(struct dprc_obj_desc *obj_desc, +int fsl_mc_device_add(struct fsl_mc_obj_desc *obj_desc, struct fsl_mc_io *mc_io, struct device *parent_dev, struct fsl_mc_device **new_mc_dev) @@ -534,7 +534,7 @@ int fsl_mc_device_add(struct dprc_obj_desc *obj_desc, } /* Objects are coherent, unless 'no shareability' flag set. */ - if (!(obj_desc->flags & DPRC_OBJ_FLAG_NO_MEM_SHAREABILITY)) + if (!(obj_desc->flags & FSL_MC_OBJ_FLAG_NO_MEM_SHAREABILITY)) arch_setup_dma_ops(&mc_dev->dev, 0, 0, NULL, true); /* @@ -687,7 +687,7 @@ static int get_mc_addr_translation_ranges(struct device *dev, */ static int fsl_mc_bus_probe(struct platform_device *pdev) { - struct dprc_obj_desc obj_desc; + struct fsl_mc_obj_desc obj_desc; int error; struct fsl_mc *mc; struct fsl_mc_device *mc_bus_dev = NULL; @@ -746,7 +746,7 @@ static int fsl_mc_bus_probe(struct platform_device *pdev) goto error_cleanup_mc_io; } - memset(&obj_desc, 0, sizeof(struct dprc_obj_desc)); + memset(&obj_desc, 0, sizeof(struct fsl_mc_obj_desc)); error = dprc_get_api_version(mc_io, 0, &obj_desc.ver_major, &obj_desc.ver_minor); diff --git a/drivers/staging/fsl-mc/bus/fsl-mc-private.h b/drivers/staging/fsl-mc/bus/fsl-mc-private.h index 01ef9329..7f5406f 100644 --- a/drivers/staging/fsl-mc/bus/fsl-mc-private.h +++ b/drivers/staging/fsl-mc/bus/fsl-mc-private.h @@ -12,7 +12,7 @@ #include "../include/mc.h" -int __must_check fsl_mc_device_add(struct dprc_obj_desc *obj_desc, +int __must_check fsl_mc_device_add(struct fsl_mc_obj_desc *obj_desc, struct fsl_mc_io *mc_io, struct device *parent_dev, struct fsl_mc_device **new_mc_dev); diff --git a/drivers/staging/fsl-mc/include/dprc.h b/drivers/staging/fsl-mc/include/dprc.h index 2f4a7a7..21295e4 100644 --- a/drivers/staging/fsl-mc/include/dprc.h +++ b/drivers/staging/fsl-mc/include/dprc.h @@ -39,6 +39,7 @@ */ struct fsl_mc_io; +struct fsl_mc_obj_desc; int dprc_open(struct fsl_mc_io *mc_io, u32 cmd_flags, @@ -167,59 +168,18 @@ int dprc_get_obj_count(struct fsl_mc_io *mc_io, u16 token, int *obj_count); -/* Objects Attributes Flags */ - -/* Opened state - Indicates that an object is open by at least one owner */ -#define DPRC_OBJ_STATE_OPEN 0x00000001 -/* Plugged state - Indicates that the object is plugged */ -#define DPRC_OBJ_STATE_PLUGGED 0x00000002 - -/** - * Shareability flag - Object flag indicating no memory shareability. - * the object generates memory accesses that are non coherent with other - * masters; - * user is responsible for proper memory handling through IOMMU configuration. - */ -#define DPRC_OBJ_FLAG_NO_MEM_SHAREABILITY 0x0001 - -/** - * struct dprc_obj_desc - Object descriptor, returned from dprc_get_obj() - * @type: Type of object: NULL terminated string - * @id: ID of logical object resource - * @vendor: Object vendor identifier - * @ver_major: Major version number - * @ver_minor: Minor version number - * @irq_count: Number of interrupts supported by the object - * @region_count: Number of mappable regions supported by the object - * @state: Object state: combination of DPRC_OBJ_STATE_ states - * @label: Object label - * @flags: Object's flags - */ -struct dprc_obj_desc { - char type[16]; - int id; - u16 vendor; - u16 ver_major; - u16 ver_minor; - u8 irq_count; - u8 region_count; - u32 state; - char label[16]; - u16 flags; -}; - int dprc_get_obj(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, int obj_index, - struct dprc_obj_desc *obj_desc); + struct fsl_mc_obj_desc *obj_desc); int dprc_get_obj_desc(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, char *obj_type, int obj_id, - struct dprc_obj_desc *obj_desc); + struct fsl_mc_obj_desc *obj_desc); int dprc_set_obj_irq(struct fsl_mc_io *mc_io, u32 cmd_flags, diff --git a/drivers/staging/fsl-mc/include/mc.h b/drivers/staging/fsl-mc/include/mc.h index 1c46c0c..60c7067 100644 --- a/drivers/staging/fsl-mc/include/mc.h +++ b/drivers/staging/fsl-mc/include/mc.h @@ -104,6 +104,45 @@ struct fsl_mc_device_irq { #define to_fsl_mc_irq(_mc_resource) \ container_of(_mc_resource, struct fsl_mc_device_irq, resource) +/* Opened state - Indicates that an object is open by at least one owner */ +#define FSL_MC_OBJ_STATE_OPEN 0x00000001 +/* Plugged state - Indicates that the object is plugged */ +#define FSL_MC_OBJ_STATE_PLUGGED 0x00000002 + +/** + * Shareability flag - Object flag indicating no memory shareability. + * the object generates memory accesses that are non coherent with other + * masters; + * user is responsible for proper memory handling through IOMMU configuration. + */ +#define FSL_MC_OBJ_FLAG_NO_MEM_SHAREABILITY 0x0001 + +/** + * struct fsl_mc_obj_desc - Object descriptor + * @type: Type of object: NULL terminated string + * @id: ID of logical object resource + * @vendor: Object vendor identifier + * @ver_major: Major version number + * @ver_minor: Minor version number + * @irq_count: Number of interrupts supported by the object + * @region_count: Number of mappable regions supported by the object + * @state: Object state: combination of FSL_MC_OBJ_STATE_ states + * @label: Object label: NULL terminated string + * @flags: Object's flags + */ +struct fsl_mc_obj_desc { + char type[16]; + int id; + u16 vendor; + u16 ver_major; + u16 ver_minor; + u8 irq_count; + u8 region_count; + u32 state; + char label[16]; + u16 flags; +}; + /** * Bit masks for a MC object device (struct fsl_mc_device) flags */ @@ -150,7 +189,7 @@ struct fsl_mc_device { u16 icid; u16 mc_handle; struct fsl_mc_io *mc_io; - struct dprc_obj_desc obj_desc; + struct fsl_mc_obj_desc obj_desc; struct resource *regions; struct fsl_mc_device_irq **irqs; struct fsl_mc_resource *resource;