Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2112034pxb; Fri, 25 Mar 2022 11:17:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzaAPl/C3Mw7A4tEy4+vOKCUmly2roTBXq98bDr5V4shPwIhggOgWZeEWZUtKAiurzEdW4G X-Received: by 2002:a05:6a00:22d2:b0:4fa:9d26:bc5d with SMTP id f18-20020a056a0022d200b004fa9d26bc5dmr11331950pfj.79.1648232258585; Fri, 25 Mar 2022 11:17:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1648232258; cv=pass; d=google.com; s=arc-20160816; b=J+ujv+t3w2x4K0GMr0yzIr86AantMlxREpq2V6RIHyTn7MdDBrr3s/Z1K8Hfmdtf2i o2lZfuGg/MMatA1fwnUpCW/qoiP/L6FpesZBbgEgE3ewERflMIoN6OGUqikgRarvdjfx XrN8sWjKP9Bs8EM0HTYIkBILfZgJmFfvMRHXP9OTNeBIWEOZWKvFvXTG9S7I/f3FyDd1 hB/cFTAa0j9z7x5tX0HWmDvJcXhBu1znZdlqh9/2KIKCKokyfat32azENzZrBK9trMY7 Eh9ar2U5k+MdA3917J+52sAXoTMm1BiQDouVKzGCtdZiuw/2AaqMomaeLOnu3iBAVE/s 5d/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=/sgmUXvI+7jNK7SiCZILcAaYJROJUQrMADPDxmMojLg=; b=TBPQByqSU5PQMClh+VSni/PxAQfB7THR773T8ltYDdjcyVvXMTCNZkW2diQHc8eQMI PqvWzp5NGxCwC9nz0EypBuevoIJcnRAQn2Lia4pIYaclxH9n6/q/FZ5R8lg4P3k+uEVz Ng5q7IUw8Y6ytRFNzeDuLdttC1NCYciwzxtFno9bw+svtRvM/pxF1HBrUmudRE0Qa9e5 DpvL+QtihllgXMLykIkT+U0nL0vF0+HZUqc+a6PT688jF15QHzjHsZcuB2w+VxQf+abH ya1mhgj/XJmUpWyLS3WU2lL9Xj7KCDuMAPadaFSFEEurWVvxaXH83gGRJJAUZd/Ok0Na hZdw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Z7Je+JuF; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id b29-20020a62a11d000000b004fa3a8dff7asi3156582pff.49.2022.03.25.11.17.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 11:17:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Z7Je+JuF; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BDD05158787; Fri, 25 Mar 2022 10:46:06 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354697AbiCYDp6 (ORCPT + 99 others); Thu, 24 Mar 2022 23:45:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236762AbiCYDp4 (ORCPT ); Thu, 24 Mar 2022 23:45:56 -0400 Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50089.outbound.protection.outlook.com [40.107.5.89]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D779BA315; Thu, 24 Mar 2022 20:44:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WBum1JfGkInAVgqzlTJn63s1nb9pMRISJEkhmRvpQThGemFSum+pNpPH6qG9WLCle45biGOxtr/mkNda5sTSU6/GqVvNqTWIvUTmAGTxdYc/Grj0ejzBgGeNE44rY5y4pwzq1LeauoXoBtRcUtfinmg5j4n03nBtMXMyLrb7oUC5DKBlIuhfqV3JiYKEOBW6iWcLP/IoXtL3l9nv7VaK8KKAETJLbFPFbVrhrwJeSuTZc8JxlRmDcNFc4Gd+OYaqFpzCDhAhYYnNNLLKTvsmEkKckJRZhTycBwNRJyGtdo2lAksc9ox0P0NMnJO73BKyMqRWrhGokgVqRyJyHCM9WA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/sgmUXvI+7jNK7SiCZILcAaYJROJUQrMADPDxmMojLg=; b=MTxcd24otoPfv8nQCIK5Jfqvivk5b+fensSfYuJLw7/c/nlqeu31YkLX3od3gMBfpw/FsATE7JX2cKJmEUEgUJ7w2fwjSM4NesCUMzUSkZPP3IZB3xdHksIu7Di6aASkxD3Fzrp0/KbAbSZ1XIpM0UjKnslqo8mCdT51wO8kkoVdwxL/JlGKhWCme8Ekd/0GfXCpnH2Jdj5JVR0Mv/FMo8uHzjFHomEzthK39M71trjR/139+wQ1q7BZblFiIUu1OEtxIP3BPh5CXw97PgMvnPtmnatXhzeF3itIarMU0fUbuvxRzp87B78VDcDp8Tajg/trGFOV+UJA10g3vA1COA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/sgmUXvI+7jNK7SiCZILcAaYJROJUQrMADPDxmMojLg=; b=Z7Je+JuF2bndEmyRphSpRSJSexlJ82Bupv8fEUTPL+pKsW+omySqrYpEMiZuoxjqP8XFCBaaQP8kmLiVrIT0O+Fwv9qcIBH4xVeCvknH9Y6ZFszjZJzp+72COd1ZtyGKH6e9Zp1DiJO6odrauM/Y531/rb7i6qFHbpYfSRns5h8= Received: from PAXPR04MB9089.eurprd04.prod.outlook.com (2603:10a6:102:225::22) by DBBPR04MB7802.eurprd04.prod.outlook.com (2603:10a6:10:1f0::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5102.19; Fri, 25 Mar 2022 03:44:20 +0000 Received: from PAXPR04MB9089.eurprd04.prod.outlook.com ([fe80::bc25:a82e:ab71:84fb]) by PAXPR04MB9089.eurprd04.prod.outlook.com ([fe80::bc25:a82e:ab71:84fb%8]) with mapi id 15.20.5081.022; Fri, 25 Mar 2022 03:44:20 +0000 From: "S.J. Wang" To: Mathieu Poirier CC: "bjorn.andersson@linaro.org" , "linux-remoteproc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "shengjiu.wang@gmail.com" Subject: Re: [PATCH] remoteproc: core: Remove state checking before changing state Thread-Topic: [PATCH] remoteproc: core: Remove state checking before changing state Thread-Index: Adg/9+1VyA/rREj7SVeAZwyzAHGzHg== Date: Fri, 25 Mar 2022 03:44:20 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 3d77783c-0417-4145-77e4-08da0e11bef5 x-ms-traffictypediagnostic: DBBPR04MB7802:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: OUdixkWg+pd+SXsyoa0JiRDJARNuBxJjyeIs2wFJEzQJeVm2k0KkgigCKsNZ3rehmWgoSf7TRklz2EEDTVl/3SIg+mL5ynvoAFU2Egzy1ZGMy25VT6iSUyxQS/u/ntP672AEsTJItI/ZeGF0x0xlSeImrbB98vtz6T4iZnwafHPkjG3VjKz1+yf7925AqAHqhQAP9ks/+sdQDS22abpmIR1Z55c4eWm8oTbT9f21+oRgiqFisLXZyBsidIENenmt5QiR7vakGZX+S0tWqdiSvivl/KCv17mT0z9bqWfqyjqQcb6DxauxGpAT+XrvA/o4Tv8CxFSm+jNmTYGC7U0Hmw3vnD+PDzsZmPEeTOpR2kqEt3RRrF1uY8+bYBHT6fxaoBFvJgNBljznsbzHZJUkEkp9KC5aPD6yPns6XuINDDJYHGacd7Wxk9bDV2vN/OAWcD81URXME+LZu5jHsCEGE9b9ywEO8SFLYK8k5n9ZrqUr1cj6pJzJLTFeXWISiNrk4w5szpXaG8wLbkadR407aGm5X5PPyvyk7O58zT2fK4O8Q50ARkuY7OnsAfrIn2sYo1StATZwyLMIkiFf4bo9y3JPgyzewUlukciskMDnZGSY48EAC5dyiX9lxl8du9K9hk/xgVMZ/OCkVM7LKtMydFlnatZqVzestSTF0PQHm1Lq7/tBdBl+IGHbA1Yo/V6VKAkkpsnHz4GT9NjNM9aJhA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9089.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(4326008)(508600001)(66556008)(33656002)(66476007)(8676002)(66446008)(64756008)(83380400001)(76116006)(7696005)(66946007)(6916009)(54906003)(316002)(186003)(26005)(71200400001)(38070700005)(55016003)(86362001)(8936002)(38100700002)(2906002)(9686003)(52536014)(122000001)(6506007)(5660300002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?Y0JFNnJlNTJiT3pnWlU4QVZJMzhEQ2cwRlM4Rnd4a2hQQ3dMNlNBOWROZkxm?= =?utf-8?B?S3RtdzZjQUhkbEEyeVg4UlNyWmRSOVRFd1pqS3ZFL0JlUXBYbFZFZlAwN0R1?= =?utf-8?B?WEx6MXA3cCt4dTJnUzA3NlNkTUR6V0lUMFV2ZXh1eTJiSDhnRGVaZkRYcWFK?= =?utf-8?B?OVVIS0ZmYmxubW1uaHNVbXNUUExrcmxrUE02VTAvYmFFUFFNdjBoT3g1NUdB?= =?utf-8?B?bnVMMzlNQWQ0bHBMTGJpZHl5V1lHODNTOXFxbWJxMytaTWxIZTRjQmp6WE1O?= =?utf-8?B?UG0rMTBrd0t3Ujl4QVp6VjBQbFVnYVAvYUlrclQva3BEQnhFd2xENUVxeW5K?= =?utf-8?B?cGdibGxyU3Z4NDV3dGJOUzZTMDVCRlFQdm5GYWE1alpueHJsUnJHNUFIVlRS?= =?utf-8?B?R1BqaHRVUDNNZmN5SVczaGovS2lENmR5UWRrQjY5WDU3V3B2elM5SElQbzkx?= =?utf-8?B?b3ZtSzRjbmJicmFwZzlkSjNtUmM5bkd0dktjYkhxZGdWN1BYRkVKOExOYWdK?= =?utf-8?B?Q3hyY0dOM2RkTXFXdlVRcTRLaDNtQzI5ZUN6RDh2L253em5XbFZTZ1VWK2Rt?= =?utf-8?B?QlNkSGRp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g: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9089.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3d77783c-0417-4145-77e4-08da0e11bef5 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Mar 2022 03:44:20.6556 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: KsT2pA9OeXalNhtQfq7W2ZkUy+4NbQ4TUJvixVbFQ1ExFBqODNA6qMQg5miYFQmtZj6hW9dCHHlxHjIwbA/q5Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7802 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkNCg0KPiA+DQo+ID4gVGhlcmUgaXMgbm8gbXV0ZXggcHJvdGVjdGluZyBvZiB0aGVzZSBzdGF0 ZSBjaGVja2luZywgd2hpY2ggY2FuJ3QNCj4gPiBnYXJhbnRlZSB0aGVyZSBpcyBubyBhbm90aGVy IGluc3RhbmNlIGlzIHRyeWluZyB0byBkbyBzYW1lIG9wZXJhdGlvbi4NCj4gPg0KPiA+IFRoZSBy ZWZlcmVuY2UgY291bnRlciBycHJvYy0+cG93ZXIgaXMgdXNlZCB0byBtYW5hZ2Ugc3RhdGUgY2hh bmdpbmcNCj4gPiBhbmQgdGhlcmUgaXMgbXV0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YXIgX191c2VyICpidWYsIHNpemVfDQo+ID4gICAgICAgICAgICAgICAg IHJldHVybiAtRUZBVUxUOw0KPiA+DQo+ID4gICAgICAgICBpZiAoIXN0cm5jbXAoY21kLCAic3Rh cnQiLCBsZW4pKSB7DQo+ID4gLSAgICAgICAgICAgICAgIGlmIChycHJvYy0+c3RhdGUgPT0gUlBS T0NfUlVOTklORyB8fA0KPiA+IC0gICAgICAgICAgICAgICAgICAgcnByb2MtPnN0YXRlID09IFJQ Uk9DX0FUVEFDSEVEKQ0KPiA+IC0gICAgICAgICAgICAgICAgICAgICAgIHJldHVybiAtRUJVU1k7 DQo+ID4gLQ0KPiA+ICAgICAgICAgICAgICAgICByZXQgPSBycHJvY19ib290KHJwcm9jKTsNCj4g PiAgICAgICAgIH0gZWxzZSBpZiAoIXN0cm5jbXAoY21kLCAic3RvcCIsIGxlbikpIHsNCj4gPiAt ICAgICAgICAgICAgICAgaWYgKHJwcm9jLT5zdGF0ZSAhPSBSUFJPQ19SVU5OSU5HICYmDQo+ID4g LSAgICAgICAgICAgICAgICAgICBycHJvYy0+c3RhdGUgIT0gUlBST0NfQVRUQUNIRUQpDQo+ID4g LSAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIC1FSU5WQUw7DQo+ID4gLQ0KPiA+ICAgICAg ICAgICAgICAgICByZXQgPSBycHJvY19zaHV0ZG93bihycHJvYyk7DQo+ID4gICAgICAgICB9IGVs c2UgaWYgKCFzdHJuY21wKGNtZCwgImRldGFjaCIsIGxlbikpIHsNCj4gPiAtICAgICAgICAgICAg ICAgaWYgKHJwcm9jLT5zdGF0ZSAhPSBSUFJPQ19BVFRBQ0hFRCkNCj4gPiAtICAgICAgICAgICAg ICAgICAgICAgICByZXR1cm4gLUVJTlZBTDsNCj4gPiAtDQo+ID4gICAgICAgICAgICAgICAgIHJl dCA9IHJwcm9jX2RldGFjaChycHJvYyk7DQo+ID4gICAgICAgICB9IGVsc2Ugew0KPiA+ICAgICAg ICAgICAgICAgICB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