From patchwork Thu Jun 22 13:35:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Tudor X-Patchwork-Id: 9804455 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 A26C160329 for ; Thu, 22 Jun 2017 13:39:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 90B072845D for ; Thu, 22 Jun 2017 13:39:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 84D772867B; Thu, 22 Jun 2017 13:39:50 +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 284922845D for ; Thu, 22 Jun 2017 13:39:49 +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=gRxzynReeaTNjjtmrjyQh55kHVLdyZ5gEqMCSPOUWDY=; b=SXxze4i65fk8w6 G3KPhlAakj3hzXB1v9JpYp5ZjXdq3ktSIdsg8OcR6LkygowBC5wtP6wfrkAiW5v5PWLp69sEkG9hl S6iHcOtdxQa0jh45gP9r7/+lspKabWyQeRqwXPGWSnW1lGUzwmvT6kny5TW2AXPmZFP8xsLPFyuJC CN3W8pb2XmkYngjA+EZUSTB9RtOnX+r7NL/Q4vusx29BVHobK8QIgZoAEXxDcImno895Vi6j3AMVL N2RGhLUdUz7qIaHsWv7HnBe4beUonOakSyyen2rNJcwM0enDQuN32TcuSzQHYWOmbX7EH3or3gQug jCrgsczppnZ8ppyLGcxQ==; 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 1dO2Ko-0003tb-OD; Thu, 22 Jun 2017 13:39:46 +0000 Received: from mail-sn1nam01on0082.outbound.protection.outlook.com ([104.47.32.82] helo=NAM01-SN1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dO2Ic-0001Vq-MH for linux-arm-kernel@lists.infradead.org; Thu, 22 Jun 2017 13:38:08 +0000 Received: from BN6PR03CA0077.namprd03.prod.outlook.com (10.164.122.143) by CY1PR0301MB0603.namprd03.prod.outlook.com (10.160.142.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1199.15; Thu, 22 Jun 2017 13:37:08 +0000 Received: from BN1AFFO11FD047.protection.gbl (2a01:111:f400:7c10::165) by BN6PR03CA0077.outlook.office365.com (2603:10b6:405:6f::15) 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:37:08 +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 BN1AFFO11FD047.mail.protection.outlook.com (10.58.53.62) 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:37:07 +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 v5MDa5BP016929; Thu, 22 Jun 2017 06:37:03 -0700 From: To: , Subject: [PATCH 13/14] staging: fsl-mc: move mc-cmd.h contents in the public header Date: Thu, 22 Jun 2017 16:35:59 +0300 Message-ID: <20170622133600.31694-14-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: 131426122280044374; (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)(39840400002)(39860400002)(39450400003)(39400400002)(39380400002)(39410400002)(39850400002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(9170700003)(36756003)(5003940100001)(50466002)(85426001)(48376002)(104016004)(1076002)(5660300001)(4326008)(189998001)(86152003)(53936002)(54906002)(498600001)(86362001)(8656002)(39060400002)(38730400002)(33646002)(77096006)(76176999)(105606002)(6666003)(106466001)(2950100002)(305945005)(81166006)(8676002)(81156014)(2876002)(8936002)(50226002)(356003)(7416002)(47776003)(50986999)(2906002)(2004002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB0603; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD047; 1:1pf8A+wgwDUm1OwlnP96kihT1xulTJq2pyyzlOfNOJDGYEzVJ0GkXzIL977BUCScj+pXUFWIUvGvglSU2n1XHYUcG+FmNtc6D+DTnfoaN/skOSRM8jEkcSnFwI4VVYknHuVsU8PPhm/Ewkeu7vibeVftP5B0YEAzW4JgjwR/QOtOml6Id8JUoidfMsBmQmy2WWQIKFKlwOZJDsvj3vzb3AEzKD3wbc1+K+0CIEERFE2aFI2YlalJJEB/hAaY+02cYozIxxtHqJDGCyhEO6WR9w/cYuDCVUu29r1R8QhxQ2iXP7a5B0SPDouAx2cxDQBRnaAut7zzRh4i//V3gzETyskdMuKTRpGeFvThRa7pIzTe3UREJ8J5bhUze6U0r5UPAGI1GD3HXIMNUBHh2XzzLOoXKz5XgDf8lm/2GLdo5Cb+3RdYvPyYzBUUeBaYBW2dhXA323oyGeBUphNWU+89Muw/yFNNw1kRMEygwsue3AmJWna+SeoMpBm/hRQCAYT4z6KF/zN9cK4tWUWwbvUOOGQc9emSRv1MTvkDTCRg+8IBeyAIMSieDPO5zf8ax/tSjiM7f1e8DJB0WzIGjMG5aCfj4L+tE6AX9MoZFeFGiWByBZFYLsGvTxQYqWV9WAG7fgAhOOsiJ6fidWBGCZpkd7ytgPGilUpsUSkU97ctgMSB0D0fJN+zn/Uyv5fVu5/0hZjNNdU5XyCPbRmqYFltDJEv2Mgi51a0iV8oEHjZKypY/eFKkT2AiNo4oCJg53uKIVQYuLydKTyW2YBh7969xFa56AjoCRsB6Id8n96Eh8komUttaAQ4ZTzwnnOuT3Dq3Uy93kmIWantC5yJ62g0+KwYUVTzEifAhbtQDF1I/Iwg/JKqUG4Di4Q+uT9UTbEyYD98zzF2Aakh/Wdu6hwFIg== MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e20362a8-e52d-42ae-8756-08d4b973c72c X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131430075)(201703131517081); SRVR:CY1PR0301MB0603; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0603; 3:KsBgdnuI/rlmT6MZbuczRVC+bkI+B7IKQKJ/ayPOW0nicW61DyO4a6n2DD2bWF5WCLjCjv8wa6S+gy/e/74wL6Pd/zI2qEmcshO/xhR0SSnB6QqWCHfP8jYUyc//bAN/SYWqj+H6AS1qYRV7OXpQyXUbzjdz9CkHGFFbymhl6FtQpUe1T8sirssSQFhsbzg2QWN0a3neNhLZqF+P2oPPOxkrHCXIKRMHIvFklm29UTEasEQ9pWGsUOQGAUhjpcVHo0jcLTpdFR/Z5nyVTJPyeAHHDnNbhvZyjelBvWf99l1G1ZMmSE7TlCEffb6AGq/HQUWYCI2WXjOszZqSbk1pJDG7UXBdoMDHbMJTuvA71fSLNnIdwKhfPNyjQM/3/F4ksn6tGrhjfyPCYhYTOR6zu9EjdaH0wZ7nlJ7W4prTD7IIniljlPdSgOgoVQ+RvoFP; 25:yT5727Tqdt0QoN7zIh5RcVegFOwOF3SulEWyP/xyKOvaNqu6+Vn21TmEZRA6HnHfkEYO6vsQ7wDq8Ytb6wtXIqd6tsA8GdVhcPmhfxSzUnuq982QcjZYvidN2qq1QoIJZ4iIbOGqAtD/e/G1Aq8sylnKaxzs812o6Ws0bPFCMHuGClCcbIpbCX8WIk0wwS0fWzT03p3UqG2E+9Sdp51Y1EdtTOVVPZf4Tru6ivRYsEiEANCiOIFKvzcnpHm/pwrDpkODZMujdWiseBChKVlfz75yS6oiSfSC49W/jul6TylRPwiLuDD/RzJkfV2u622a6zODtpJfqowPQtES3im2ju9M4BSjyvygi0e5jG/7Hr2WJRu2E7qjZQMYflsoDIkSrN4iikYZQyB/+iRaNJGmNZS9zQGBpsOCznFFOkC7wnOZiI/H3cJdkdImAbKeywI4nV8Ilv5+Keh/ajhgYRoxpoXyxcoa94OC+QOYfqlrgHE= X-MS-TrafficTypeDiagnostic: CY1PR0301MB0603: X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0603; 31:iRdx4Bdy5ocwKijdunbwh5rbPwzmCTFvW3aX13QT9jOoOsh61xGEarEAHOWVzwUZUE9f+rxYYQFAoK/8tve7ga3cWtZbrZ/YyzqrHRSz8zg8LtVfmhfgn5UskQjLhwQt8091+qrcJQofYrIPuWhp/F/HCmPo92EopEyhcGY0b4KGyDx9ImmATrshPL4iIjkMIlvjHLnJ0/zK44o7t4f1cNzjWOQQbtNdQHAZ1VON6egyYqg5+5+PN05HF76ZdeRIkjlsb8e5NobFayqJooRcBw== X-Microsoft-Antispam-PRVS: 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)(13018025)(8121501046)(5005006)(13016025)(93006095)(93001095)(3002001)(100000703101)(100105400095)(10201501046)(6055026)(6096035)(20161123556025)(20161123561025)(201703131430075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(20161123559100)(20161123565025)(20161123563025)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY1PR0301MB0603; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY1PR0301MB0603; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB0603; 4:7eA/g5lNC2SBTmtW/NOUR4dManb1TPNn42Afl72K?= =?us-ascii?Q?HKH77gAbWDCHDxJ8hNu6XATJ+fVDL7Odg5PWAdv0pi0Yl5+0+Vb2zA0rk0bO?= =?us-ascii?Q?yNKWFOcyFfySQjiwr8wyWuoilTF0Bh6C3/5U+zsLDn9InSlrqEJB36zDP4Ko?= =?us-ascii?Q?ztB6iVyVQkjAPrK3ozKrOSRjV/sfKx7PZl8bI1AxVRfNUQw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PC5nIzcOZOHYykXrBdfvGMrQ2rq7vFDYm5sgt8X?= =?us-ascii?Q?S3js3ysIgmC7cjAMbF+FEGy+D/ZEpxEUt2FTezzu71dXPv4B/xz5NgB9rIDf?= =?us-ascii?Q?JNg50VbAHGyb8CvKjDcnZeTohIojwhICPbL7URorjsdIprc3YOJTAbz18848?= =?us-ascii?Q?MNUJk4LhobT/y+81NQ1xm8hKioOs+Q+yt1kTxWu/?= X-Forefront-PRVS: 03468CBA43 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB0603; 23:U4K9XiVpphI046bkAlKACyHYrSQG0GKYAarn6Yc?= =?us-ascii?Q?VLRUMvSORdZ5zQMTmjggr9pB5bg59+cZ/GrBQCIJpc/fXmlbdXP+JFk+5VcE?= =?us-ascii?Q?E4k8EIK92bkEpPDUj9YD9GoiJqlRn1XWkK0zLXWl9JFuZe2UVdshOOOLlivh?= =?us-ascii?Q?5J3kZyfLGq9Y4yraMr7bpS7wUlvUDllmGjYPO7PLHN8FBAYSGbiqaE8H+u9I?= =?us-ascii?Q?MbbiNoHoBJ9jds3ULanfz9jErOGGKgxA4QqeOObKSEEe/Jk//hZjKboD2KOe?= =?us-ascii?Q?TkTi20NxzXS0FuIfz8YMXulbPg7NPStpX9azMpu61XQ2bm7+Zrc8ZJoP379c?= =?us-ascii?Q?gNIy975dlB598UbolGBDeZ9tZexsXmCjbbAU1oW9HJt+P3k3ho5x5bJqcvFo?= =?us-ascii?Q?9uebjLv4T4Dqz/dJa0ytsAVYa8RVrcUk/7lT9JuPwyAUskeZ3ICNPQ8gyP+Q?= =?us-ascii?Q?d+QNWKoKxF+QE+G4ShCGsBjNvlkYCVzFw2sHqy1Xlrzg6rzrehhD4cCnm8Xp?= =?us-ascii?Q?7GKMkegyw/fAQ1SX5CRZU+0AV7YnYA3PTtSgvwHRflxsZjbWr9rO4tF7TaGd?= =?us-ascii?Q?U7ColqQ443A4Uq6UkF5i0Hfecx9O6uKk05vmezHeWvS3VKvwwAt0eFLbyDze?= =?us-ascii?Q?kVLiuPFyYVvz4MfaQnHiK1UFWiGAxbdKVGI/eiqHG1+sEPQeOatSksrMwJ5v?= =?us-ascii?Q?oPsyB73y8YzuZDBjfPdPQwNdeH1iYJuXZY3uLzUzB2wM2aKxmoihYR1h1EnC?= =?us-ascii?Q?meP7W3XHCJ+B2G6VeexGjg66KuZTTFwQU34Qnarry6qGaimXao+6NZSShwxh?= =?us-ascii?Q?S/AzM+RiC4xjie2iavxEuICmBkIH5DDibATo9kjmjIBWIUH9MuccXnH3pZ3B?= =?us-ascii?Q?kPyG3wUbXxfhMcijvROrJmx/3Yz+pPZ/Y3LDiqISBWtkmdQzC0wdMrgs46no?= =?us-ascii?Q?EGRjdIsJEdF/PCaxinWbDkcpQKxXlNun95ZfL2OGp7cUu237b6mpo3WG23wj?= =?us-ascii?Q?eo8MARtBohrn80ubuI4bKUEjj1JXsSjGfoDN3NWTLRakZN+Po0KdDUxjBHSJ?= =?us-ascii?Q?O292LvlGQG3BCRulyCvasVsRBatfoedrcXUd0UrHnnDUZmtGKfq7A5njJrh0?= =?us-ascii?Q?vlTYy28mTORvquv4QYqQOeTu6uIp+ilRuzmgzEvaRzTziH3kdVrfvBZFHMH8?= =?us-ascii?Q?TwN2bz9LuQbgFVQN7QzCLJFF9rfCNipJDVEf85NTST9uBzdxSgCbCEfMvk54?= =?us-ascii?Q?vtSCfBHyNyotei2aGvljqhhAAwI3cN7GyhNefgv4Jxkdbg91eviWAZNRXjOv?= =?us-ascii?Q?TClgkipKyYcWDdN72JJOoYkQ6eU6RI9FaHQOde0zgSPEz?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB0603; 6:ebgFvPE4sTkWUfQpK8bIbZ44QoM4CF0P2CfNg3+n?= =?us-ascii?Q?8ETnJSFLFGkusVtS3z6q10WTDHqjXyQJ+RBiGm6BNbFfRXjtW5OGETfY4Jzx?= =?us-ascii?Q?oT+M4iHTTH+YXCNJbIlksyP7AgIHxilQw218OXfFiPM5srqBbrPAEcUkTRBp?= =?us-ascii?Q?SYhKpnuHYK0+AMH2f6a92HPzQwNhAbHUvHYFje/9zQMGPzTgFr06jG2XHZ+0?= =?us-ascii?Q?2fv7OhYkNMIvPHH95DlDJRXINN0gnQvTGEkdfAGGrVAnkCXOKNiQKwBdveJE?= =?us-ascii?Q?qTymz6LbiOpppjPaOlLRwrRo9YB7JU6OhBcpsEK1upn2V0fruzfWLz6ek514?= =?us-ascii?Q?EzQTH+01c9DU+8hp7XBYRgx1v1U7yV74FUNt/mX1YxcdU5u91WklFF3ZTUpL?= =?us-ascii?Q?/+IvSMpq+qIt1UEycNEwxeVempvtruWcRJ4UH8oa+2ivw9Y1hxiTwyHSatOY?= =?us-ascii?Q?/tEYEIs+PcpbfYv6O7sUJc1yZTBPlSaVbGdV//2uX391uiz2PJMlC3tyi2av?= =?us-ascii?Q?b2J6jYi830M5udjsneLggXDzEW2lFv+4bcBkb6EsPrseXvdFPj3RmIgRILu9?= =?us-ascii?Q?uaYmFG5bpfwWvL6lbxDkTM33zUBW9khhfj5EVU+6aCXZtOvP+RvoDFVGf78K?= =?us-ascii?Q?saVdxXcX/Jh4YHPCA/osISscE/9B/6uQATTSvxJLkmA9d9P7V/BeRRE6mf1S?= =?us-ascii?Q?8xCMzvYtF0N7RYhcn35NBIvwe1yj7An3uyl1v/yXMUAHy3BfnqP3AW/Dta6a?= =?us-ascii?Q?wDDq5cGfrN8kRo/QJBdBqp/kfTPali79CGNA/uMVN+zJBdDZv4ZbQsa+eoJo?= =?us-ascii?Q?zuwtbUobvCxMikvIR7z5CPKPX0nDrnr30o1zTPyPOannu0iexBIMXKO0ldrC?= =?us-ascii?Q?dQ9gg8mBfMjJxY+hc+RiXUM9rudeL6/78gJOJ+rsy4DOzWpJHapQecsM7+Y+?= =?us-ascii?Q?T2m3aucihEf2e/ps111XjEI2MLbdoyJeHGDV5iMyHw=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY1P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IsFPFyIwhsozpIhIxUyoVuO7/SCzFxQGpkDEh3s14vA1o+PBTqltKXkfmodlY1jZzp2o9HOHaTYfC12Jc4ed+azIm/SmZS1MVsNnBJ/MkuYn0uULm+haiulJqU+ZfHKLjIAIpvfsQUHlA6XRZBjyn4mX3fohmXPf8nLezTDfRNlWTyuTQfLZtNZzXmKD5PQXknWy6PxUh2v81+JjqL/42DXSCpggm8dFeqe17PWCr7O2w7qcqhIgNYYvF/oWMDBgmsgB0HSy1oVzi1DIIK5fQgeDmNm5e0XRODCFgSRmnKQB6eybhzPgg6oVLZ0RcWBFAbkRZCQZLokGainqADqEkrxFAI9LGL25MEHDDn69SxaB/39kO9NhrtdBoIbhL0IS+oR2uuQf9JBBlhfZEZe5Im3bBoVpIfpbAYOL2GWsTaYk3vHWMwIHHaGUuoq/Jkvo80TCTrGMEjBX0ocgdGc7lw= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jun 2017 13:37:07.7704 (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: CY1PR0301MB0603 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170622_063731_384089_A825799E X-CRM114-Status: UNSURE ( 8.99 ) 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-cmd.h contains some low level functions used to encode and decode commands to the MC. They are used by the drivers so move them to the public headers and get rid of the mc-cmd.h header. Signed-off-by: Laurentiu Tudor --- drivers/staging/fsl-dpaa2/ethernet/dpni.c | 1 - drivers/staging/fsl-mc/bus/dpbp.c | 1 - drivers/staging/fsl-mc/bus/dpcon.c | 1 - drivers/staging/fsl-mc/bus/dpio/dpio.c | 1 - drivers/staging/fsl-mc/bus/dpmcp.c | 1 - drivers/staging/fsl-mc/bus/dprc.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/mc-sys.c | 1 - drivers/staging/fsl-mc/include/mc-cmd.h | 130 ------------------------------ drivers/staging/fsl-mc/include/mc.h | 95 +++++++++++++++++++++- 11 files changed, 94 insertions(+), 140 deletions(-) delete mode 100644 drivers/staging/fsl-mc/include/mc-cmd.h diff --git a/drivers/staging/fsl-dpaa2/ethernet/dpni.c b/drivers/staging/fsl-dpaa2/ethernet/dpni.c index 160eaf8..5b9d442 100644 --- a/drivers/staging/fsl-dpaa2/ethernet/dpni.c +++ b/drivers/staging/fsl-dpaa2/ethernet/dpni.c @@ -33,7 +33,6 @@ #include #include #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 b714673..363730a 100644 --- a/drivers/staging/fsl-mc/bus/dpbp.c +++ b/drivers/staging/fsl-mc/bus/dpbp.c @@ -31,7 +31,6 @@ */ #include #include "../include/mc.h" -#include "../include/mc-cmd.h" #include "../include/dpbp.h" #include "dpbp-cmd.h" diff --git a/drivers/staging/fsl-mc/bus/dpcon.c b/drivers/staging/fsl-mc/bus/dpcon.c index 2272a9c..ca1da85 100644 --- a/drivers/staging/fsl-mc/bus/dpcon.c +++ b/drivers/staging/fsl-mc/bus/dpcon.c @@ -31,7 +31,6 @@ */ #include #include "../include/mc.h" -#include "../include/mc-cmd.h" #include "../include/dpcon.h" #include "dpcon-cmd.h" diff --git a/drivers/staging/fsl-mc/bus/dpio/dpio.c b/drivers/staging/fsl-mc/bus/dpio/dpio.c index 48dce4a..00eb221 100644 --- a/drivers/staging/fsl-mc/bus/dpio/dpio.c +++ b/drivers/staging/fsl-mc/bus/dpio/dpio.c @@ -32,7 +32,6 @@ */ #include #include "../../include/mc.h" -#include "../../include/mc-cmd.h" #include "dpio.h" #include "dpio-cmd.h" diff --git a/drivers/staging/fsl-mc/bus/dpmcp.c b/drivers/staging/fsl-mc/bus/dpmcp.c index 7b3dd19..eea42f6 100644 --- a/drivers/staging/fsl-mc/bus/dpmcp.c +++ b/drivers/staging/fsl-mc/bus/dpmcp.c @@ -31,7 +31,6 @@ */ #include #include "../include/mc.h" -#include "../include/mc-cmd.h" #include "dpmcp.h" #include "dpmcp-cmd.h" diff --git a/drivers/staging/fsl-mc/bus/dprc.c b/drivers/staging/fsl-mc/bus/dprc.c index f93fe00..138fe80 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-cmd.h" #include "../include/dprc.h" #include "dprc-cmd.h" diff --git a/drivers/staging/fsl-mc/bus/fsl-mc-bus.c b/drivers/staging/fsl-mc/bus/fsl-mc-bus.c index 166604e..19606e8 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-cmd.h" #include "fsl-mc-private.h" #include "dprc-cmd.h" diff --git a/drivers/staging/fsl-mc/bus/fsl-mc-msi.c b/drivers/staging/fsl-mc/bus/fsl-mc-msi.c index 81dca7a..2b64651 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-cmd.h" #include "fsl-mc-private.h" /* diff --git a/drivers/staging/fsl-mc/bus/mc-sys.c b/drivers/staging/fsl-mc/bus/mc-sys.c index c537bf8..a1704c3 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-cmd.h" #include "../include/mc.h" #include "dpmcp.h" diff --git a/drivers/staging/fsl-mc/include/mc-cmd.h b/drivers/staging/fsl-mc/include/mc-cmd.h deleted file mode 100644 index 2e08aa3..0000000 --- a/drivers/staging/fsl-mc/include/mc-cmd.h +++ /dev/null @@ -1,130 +0,0 @@ -/* - * Copyright 2013-2016 Freescale Semiconductor Inc. - * - * 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_CMD_H -#define __FSL_MC_CMD_H - -#define MC_CMD_NUM_OF_PARAMS 7 - -struct mc_cmd_header { - u8 src_id; - u8 flags_hw; - u8 status; - u8 flags_sw; - __le16 token; - __le16 cmd_id; -}; - -struct mc_command { - u64 header; - u64 params[MC_CMD_NUM_OF_PARAMS]; -}; - -struct mc_rsp_create { - __le32 object_id; -}; - -struct mc_rsp_api_ver { - __le16 major_ver; - __le16 minor_ver; -}; - -enum mc_cmd_status { - MC_CMD_STATUS_OK = 0x0, /* Completed successfully */ - MC_CMD_STATUS_READY = 0x1, /* Ready to be processed */ - MC_CMD_STATUS_AUTH_ERR = 0x3, /* Authentication error */ - MC_CMD_STATUS_NO_PRIVILEGE = 0x4, /* No privilege */ - MC_CMD_STATUS_DMA_ERR = 0x5, /* DMA or I/O error */ - MC_CMD_STATUS_CONFIG_ERR = 0x6, /* Configuration error */ - MC_CMD_STATUS_TIMEOUT = 0x7, /* Operation timed out */ - MC_CMD_STATUS_NO_RESOURCE = 0x8, /* No resources */ - MC_CMD_STATUS_NO_MEMORY = 0x9, /* No memory available */ - MC_CMD_STATUS_BUSY = 0xA, /* Device is busy */ - MC_CMD_STATUS_UNSUPPORTED_OP = 0xB, /* Unsupported operation */ - MC_CMD_STATUS_INVALID_STATE = 0xC /* Invalid state */ -}; - -/* - * MC command flags - */ - -/* High priority flag */ -#define MC_CMD_FLAG_PRI 0x80 -/* Command completion flag */ -#define MC_CMD_FLAG_INTR_DIS 0x01 - -static inline u64 mc_encode_cmd_header(u16 cmd_id, - u32 cmd_flags, - u16 token) -{ - u64 header = 0; - struct mc_cmd_header *hdr = (struct mc_cmd_header *)&header; - - hdr->cmd_id = cpu_to_le16(cmd_id); - hdr->token = cpu_to_le16(token); - hdr->status = MC_CMD_STATUS_READY; - if (cmd_flags & MC_CMD_FLAG_PRI) - hdr->flags_hw = MC_CMD_FLAG_PRI; - if (cmd_flags & MC_CMD_FLAG_INTR_DIS) - hdr->flags_sw = MC_CMD_FLAG_INTR_DIS; - - return header; -} - -static inline u16 mc_cmd_hdr_read_token(struct mc_command *cmd) -{ - struct mc_cmd_header *hdr = (struct mc_cmd_header *)&cmd->header; - u16 token = le16_to_cpu(hdr->token); - - return token; -} - -static inline u32 mc_cmd_read_object_id(struct mc_command *cmd) -{ - struct mc_rsp_create *rsp_params; - - rsp_params = (struct mc_rsp_create *)cmd->params; - return le32_to_cpu(rsp_params->object_id); -} - -static inline void mc_cmd_read_api_version(struct mc_command *cmd, - u16 *major_ver, - u16 *minor_ver) -{ - struct mc_rsp_api_ver *rsp_params; - - rsp_params = (struct mc_rsp_api_ver *)cmd->params; - *major_ver = le16_to_cpu(rsp_params->major_ver); - *minor_ver = le16_to_cpu(rsp_params->minor_ver); -} - -#endif /* __FSL_MC_CMD_H */ diff --git a/drivers/staging/fsl-mc/include/mc.h b/drivers/staging/fsl-mc/include/mc.h index 33bb3b8..38f8714 100644 --- a/drivers/staging/fsl-mc/include/mc.h +++ b/drivers/staging/fsl-mc/include/mc.h @@ -23,7 +23,6 @@ struct msi_domain_info; struct fsl_mc_device; struct fsl_mc_io; -struct mc_command; /** * struct fsl_mc_driver - MC object device driver object @@ -202,6 +201,100 @@ struct fsl_mc_device { #define to_fsl_mc_device(_dev) \ container_of(_dev, struct fsl_mc_device, dev) +#define MC_CMD_NUM_OF_PARAMS 7 + +struct mc_cmd_header { + u8 src_id; + u8 flags_hw; + u8 status; + u8 flags_sw; + __le16 token; + __le16 cmd_id; +}; + +struct mc_command { + u64 header; + u64 params[MC_CMD_NUM_OF_PARAMS]; +}; + +enum mc_cmd_status { + MC_CMD_STATUS_OK = 0x0, /* Completed successfully */ + MC_CMD_STATUS_READY = 0x1, /* Ready to be processed */ + MC_CMD_STATUS_AUTH_ERR = 0x3, /* Authentication error */ + MC_CMD_STATUS_NO_PRIVILEGE = 0x4, /* No privilege */ + MC_CMD_STATUS_DMA_ERR = 0x5, /* DMA or I/O error */ + MC_CMD_STATUS_CONFIG_ERR = 0x6, /* Configuration error */ + MC_CMD_STATUS_TIMEOUT = 0x7, /* Operation timed out */ + MC_CMD_STATUS_NO_RESOURCE = 0x8, /* No resources */ + MC_CMD_STATUS_NO_MEMORY = 0x9, /* No memory available */ + MC_CMD_STATUS_BUSY = 0xA, /* Device is busy */ + MC_CMD_STATUS_UNSUPPORTED_OP = 0xB, /* Unsupported operation */ + MC_CMD_STATUS_INVALID_STATE = 0xC /* Invalid state */ +}; + +/* + * MC command flags + */ + +/* High priority flag */ +#define MC_CMD_FLAG_PRI 0x80 +/* Command completion flag */ +#define MC_CMD_FLAG_INTR_DIS 0x01 + +static inline u64 mc_encode_cmd_header(u16 cmd_id, + u32 cmd_flags, + u16 token) +{ + u64 header = 0; + struct mc_cmd_header *hdr = (struct mc_cmd_header *)&header; + + hdr->cmd_id = cpu_to_le16(cmd_id); + hdr->token = cpu_to_le16(token); + hdr->status = MC_CMD_STATUS_READY; + if (cmd_flags & MC_CMD_FLAG_PRI) + hdr->flags_hw = MC_CMD_FLAG_PRI; + if (cmd_flags & MC_CMD_FLAG_INTR_DIS) + hdr->flags_sw = MC_CMD_FLAG_INTR_DIS; + + return header; +} + +static inline u16 mc_cmd_hdr_read_token(struct mc_command *cmd) +{ + struct mc_cmd_header *hdr = (struct mc_cmd_header *)&cmd->header; + u16 token = le16_to_cpu(hdr->token); + + return token; +} + +struct mc_rsp_create { + __le32 object_id; +}; + +struct mc_rsp_api_ver { + __le16 major_ver; + __le16 minor_ver; +}; + +static inline u32 mc_cmd_read_object_id(struct mc_command *cmd) +{ + struct mc_rsp_create *rsp_params; + + rsp_params = (struct mc_rsp_create *)cmd->params; + return le32_to_cpu(rsp_params->object_id); +} + +static inline void mc_cmd_read_api_version(struct mc_command *cmd, + u16 *major_ver, + u16 *minor_ver) +{ + struct mc_rsp_api_ver *rsp_params; + + rsp_params = (struct mc_rsp_api_ver *)cmd->params; + *major_ver = le16_to_cpu(rsp_params->major_ver); + *minor_ver = le16_to_cpu(rsp_params->minor_ver); +} + /** * Bit masks for a MC I/O object (struct fsl_mc_io) flags */