From patchwork Fri Mar 24 19:22:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiaying Liang X-Patchwork-Id: 9643931 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 3A1B0601E9 for ; Fri, 24 Mar 2017 19:32:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2640D27D16 for ; Fri, 24 Mar 2017 19:32:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1AF0D27E5A; Fri, 24 Mar 2017 19:32:01 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AD3E527D16 for ; Fri, 24 Mar 2017 19:32:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967189AbdCXTb6 (ORCPT ); Fri, 24 Mar 2017 15:31:58 -0400 Received: from mail-dm3nam03on0078.outbound.protection.outlook.com ([104.47.41.78]:60864 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S967056AbdCXTaA (ORCPT ); Fri, 24 Mar 2017 15:30:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector1-xilinx-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=44IOCxVYvH2p3Cv0929BjG5cNliGhzJvyPOe/+nStIw=; b=uhBEwpS3E/Dk9xJYI1DMrZULSZC4REL1YTkOgb8YB7PTxZPs/M/QP2pVKWbNBj0vM1YO0bZHhE5Oo+gf2nx25rutfLmVDaz5CxwvQkjjSUnjviOZ6oJWYRhM87mGhNCr+w3nU4o7nop7wtt4ch2QBrEPKizXOjaz9alMghEu0Yc= Received: from CY4PR02CA0011.namprd02.prod.outlook.com (10.169.188.21) by DM2PR02MB1386.namprd02.prod.outlook.com (10.161.143.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.977.11; Fri, 24 Mar 2017 19:29:48 +0000 Received: from CY1NAM02FT034.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e45::209) by CY4PR02CA0011.outlook.office365.com (2603:10b6:903:18::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.991.14 via Frontend Transport; Fri, 24 Mar 2017 19:29:48 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.83 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.83; helo=xsj-pvapsmtpgw01; Received: from xsj-pvapsmtpgw01 (149.199.60.83) by CY1NAM02FT034.mail.protection.outlook.com (10.152.75.190) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.977.7 via Frontend Transport; Fri, 24 Mar 2017 19:29:47 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from ) id 1crUuB-0006IX-6w; Fri, 24 Mar 2017 12:29:47 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1crUuB-0002kt-2v; Fri, 24 Mar 2017 12:29:47 -0700 Received: from xsj-pvapsmtp01 (smtp.xilinx.com [149.199.38.66]) by xsj-smtp-dlp2.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id v2OJTf3H022933; Fri, 24 Mar 2017 12:29:41 -0700 Received: from [172.19.2.167] (helo=xsjjliang50.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1crUu5-0002jg-CO; Fri, 24 Mar 2017 12:29:41 -0700 From: Wendy Liang To: CC: , , "Wendy Liang" , Wendy Liang , Michal Simek Subject: [RFC LINUX PATCH 03/19] remoteproc: Add a running independent state Date: Fri, 24 Mar 2017 12:22:19 -0700 Message-ID: <1490383355-23176-4-git-send-email-jliang@xilinx.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1490383355-23176-1-git-send-email-jliang@xilinx.com> References: <1490383355-23176-1-git-send-email-jliang@xilinx.com> X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.1.0.1062-22962.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.83; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(39860400002)(39850400002)(39840400002)(39450400003)(39410400002)(2980300002)(438002)(199003)(189002)(9170700003)(81166006)(50226002)(8676002)(8936002)(38730400002)(36756003)(76176999)(189998001)(36386004)(107886003)(4326008)(5660300001)(110136004)(50986999)(50466002)(5003940100001)(305945005)(106466001)(33646002)(9786002)(54906002)(48376002)(356003)(77096006)(2906002)(6916009)(6666003)(2351001)(2950100002)(47776003)(107986001)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR02MB1386; H:xsj-pvapsmtpgw01; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CY1NAM02FT034; 1:lJNJejXukvSvcLZiI9P+xYBrzXn4B35wJB4kBBP+ACT3sAQ8MFl4HOADTvH093pbL/Z6hhJDkJFdV2P7lPm5chSXMEISb6WKSGN1qsCRO54V+5+XgPeLgiUnkKwnE15shv982R1bXxpESAFU1F9fqn8EMy8VS7iAxHRgHMvi4bII7ctFav5cNwMLEXPQBmbFhJTxn3zUPb76abCUkZ1u0JjVm04GwaRQc2tYab7waRWv10Wc5XRb19QggxV1PhsHVS7atFCy34NqZQy5LZjC9XOI56vuTmKY29A3GeGTfJe8ipqwNNenLfYaujMYFtkjuQQGKw43K0eJIIyv0phVakrnOdEoY246K/8xU6TWU+KEo/f4eXltlRY/erS9ATOFEnf3kkLqsdVq+ot1H+QN0DRLAGrttoryqNUY4yafS3OsVnc1EsmAL2cdzLnGgJRI6nLBtUFr+Zk3GqzdPmoSCTQv/GnBG1qfObRK2ie5MT8t1x+Ptehvx0FGPU6hWpZfglxryBO+ASHYwAuQrwpIreq4XhdLRIYaJzJkPtC8nIEccbSIs1e/Vsp+NrabDZoAy63kQ2+ZaCPNz3Iqr/J5iQ== MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 676499eb-9f4f-41da-1705-08d472ec226f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075); SRVR:DM2PR02MB1386; X-Microsoft-Exchange-Diagnostics: 1; DM2PR02MB1386; 3:ZaqdAZ/IlO6gIlbKdqPQ+ZS2vsDCTFOBNM8cEKraffBvy/wafRO/w6PRk5aMHj6MVLoa7REhpiF0/zbtltP+E+qRH4egR/QUru6VBfR/6cS34um+OQ44C0Wwma9nh6c8oa0kUVLHc9vtkJRv53WIMjhwFRxErZHaUn62Ute6Yw4/KyM6uQqhdzX/7BO1QrQnd9GB0uZp396I5H/me6iO64gEfdLv8eXJp7Fie6iqTUaz8q66jCLeFfgczadCDEsOW5x49hWjND0NAJmSF40atHVO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xeSnQ2qSbVLx17vF7nzfVQz+YxgpemmIxcoYsIqjWG+1BaWWzgVAsvpD8aP6+K/P8byNSRodT7pp+t3r8puFkkH33dm79RnpMaI1J37hChaGUJCVscqlFjRUpUN+j37JqXsaT8sEKiPXv/Aydlax/xaE5y7pWdW9booL8wG/XEz54EzudpaFDgDXG/4amvTSb2nndmM9awmt+BrV7EiCiI/WfkgPBbG3XFBPE9/b2L1x13oE9J/XxJtilZkL2UduJIG2+dfLfBVKKWveJQlt0AzzxbnizTYPeZqMx/mHwJzsCKCE3Hr9++cbd5aMjXLPydSH77FrDKiun97FSN5Ek6CP2LeOszd0O9cXtx3XS6Nz6 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192813158149592); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(13024025)(13015025)(13023025)(13018025)(13017025)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6041248)(20161123562025)(20161123558025)(20161123555025)(20161123564025)(20161123560025)(6072148); SRVR:DM2PR02MB1386; BCL:0; PCL:0; RULEID:; SRVR:DM2PR02MB1386; X-Microsoft-Exchange-Diagnostics: 1; DM2PR02MB1386; 4:I5C1tU47bxLCFF/uMZOIiALs8nClaQc048cG8quVMgOYx/SgydynJJu4sRrg/h64jlBLRUf1J1CiAO93vYI3tVHO+gWhIvJg+DtnHahUEPPxvR/D53q73qicAk2B8cDTDKZJL2yXlAaNBlmHvo+KY0UXIp5aS9DHg+1ek5Z7xRcCoEC7K6mfURPVknMZ1VSA8Yfv4IUj1H5ECTHoUidjvKIQnNJ1eBjCBfkgcLm1IKLfj1vO01sds2by9fOwNIVVQhGwwsjvM+sL5aT1t63RSv01uWjNJ870MewTbCvgc7FrVB6eTOmYWrZL+m7TW3mpcsCZS6wDXLq+FjwAJncG1pXhttK7+NkgDp2yMrBIQV93sS4iR2KVYdvjQWYIK5P8melshUFpyF/KFGXpaKp4SIJR7wDi3UafVPV1Blot8wF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PZ/qGEAcBz5oezUNg3LkU35eQfiuz4Xx6HJwazLq9LLMM?= =?us-ascii?Q?7jtMN38GHG5/HXsFHqyDYCdEdXvtIbCAnA8rin/k7x9rIZikEY0FeMUz24Zl?= =?us-ascii?Q?kpfNusveEQk03OFqdEldHH6igsEAYy0p9iryRTXERcJ1Ce2U48TbfDz+RKEt?= =?us-ascii?Q?O2XDiPuT/FK9dMZj4mi6D+H9PLBQuSONynqq9WTvCAcK6mgpe27jRlKL7dAp?= =?us-ascii?Q?JHbVivTGIL5gA9108eztn//D3GA5EwOMBoRhYTA/363W3nzHquSbHvcFN0qr?= =?us-ascii?Q?GG9qhxBT/leXYZIzh8MJRraHcl5JKuMaFwQI31Af8o1K5eNLrb4f1ozzqJv0?= =?us-ascii?Q?ImWBX7aBP8jHhaOIX6LqLCgIkwgetTscXL85i1ReTO7p6i8UpyD4lK/FjYNi?= =?us-ascii?Q?KC3DN9UIm78G8xk6yIf8vxddjL/DAfMUBz8RVgbYuuBlVTej4px6kyvLTTMU?= =?us-ascii?Q?VmBPv9E6aIMuhFatTDUKgS78DaEZooYAZCd8+7be8WpxgHNLrhdDNsqwloX4?= =?us-ascii?Q?UKWjI0ZrWcGgKl9YISbyU6KzV2P?= X-Microsoft-Exchange-Diagnostics: 1; DM2PR02MB1386; 6:KpfKzWt2d6vqp2FT+Byyw8zjD5vywnNF/FTB+9jQwNfblbupvrfFE7OkaA9a8+kfz6j8REg6e1HIPshfkxtwXXNhPBio5ayr36c4CyFQXUhPfa8qv9jQs0yMkAkjLJ5wjkRthqbIJs5kkqddSQJIrrzpGSE4P6FvbGL17RwFOlD0sSxn3iuFHdK3HTXFfA+KXUaBadiW2reS+lU92G7/n46+RP7XEdH41guyYra49UxkyK72HkiYSogpe8k1pH5fRSUGLuXQihkYrdDR3sZ8pSf3Tirl2B/yqTo7tIXbDM0ctph+Cr6g6ln0ix81io8nFqf6Dv5OvPeXS+SSyR5Up14epWgicZ3xwqlUQE6imzzcb0nsD8RVDLt/Kx3JMGco9sZqpT2nqUZrxIS5K8EXPRr3R6WnXMHeJTBsHWQIhrM=; 5:If8GmzoRwLoOtjohCR6DLo0TACb7NHn3ppRN88pfkW6WtD1TpP/YOBrJ+kDkzTnKj4XWQrlBO9tEzprOEcoEPBU85HPWWzAAjM69Jb90nSSOP98t2QWhGlbSqCa0eZ8Q48Dqy2YoFiliCNL/d6meKA==; 24:Pi467MxOhuqHXzEalU1eIKO9Rpa6Py/5sGcSIdb4SIbOeyDi7b6wNF8rlox/KHOfURAacuxvKCRaZSEfsJ+NC1+AWLgmabi10ckFJrHeN44= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR02MB1386; 7:b+Y8AM106GUoOa4SO+hkEOUpuNCSPsSKsJ33p2Yvt4qsl3D3YCr5rUyToCNazNR63O/nrjvZDOBlLbcgIs2NiPzlfoTvY96vPitG+mJM2BmbGSV31fAavQxas2KtzMYQuyJWhOtutU1Qd6QtpJO5rmb/D+RrEk+2H3tmtXkafMf8S5M6AMgCHjZlpb130VyUzA8w4eJ08YXjATtL6qmMMwiN8Nr2ouZK750uLRtx1NWQx1mULViFYWdas/mzq+tQ10TzmlKa9pxbLm6OIVbLJcOXuRfpZRoCrfQNBYuccNvUZajSdTksV9oeJ+I+7a7Xwxz2C/ayWK6nThhNwdj48A== X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Mar 2017 19:29:47.9292 (UTC) X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.60.83]; Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR02MB1386 Sender: linux-remoteproc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Wendy Liang Add a new RPROC_RUNNING_INDEPENDENT state to indicate the remote already runs and it is started by the remoteproc driver. Signed-off-by: Wendy Liang Signed-off-by: Michal Simek --- include/linux/remoteproc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/remoteproc.h b/include/linux/remoteproc.h index 5eec892..b740b93 100644 --- a/include/linux/remoteproc.h +++ b/include/linux/remoteproc.h @@ -384,7 +384,8 @@ enum rproc_state { RPROC_RUNNING = 2, RPROC_CRASHED = 3, RPROC_DELETED = 4, - RPROC_LAST = 5, + RPROC_RUNNING_INDEPENDENT = 5, + RPROC_LAST = 6, }; /**