Received: by 2002:ac0:c50a:0:0:0:0:0 with SMTP id y10csp1352719imi; Fri, 1 Jul 2022 08:04:47 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s2Yi+az5fuY5DpczdOn9YUtqvTKswOf+hZgtQaMWxF4pHljEJQYkfuzaFj/FrS/PMFOPtD X-Received: by 2002:a17:902:6b0b:b0:16a:5c43:9aa6 with SMTP id o11-20020a1709026b0b00b0016a5c439aa6mr20452274plk.91.1656687887083; Fri, 01 Jul 2022 08:04:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656687887; cv=none; d=google.com; s=arc-20160816; b=HwErqJXuO80yV/3IrxXtnursm7gsQMiuYhkM2W3xHc/4hIC67TYkRkQA3mygOk0GW2 /AMTQbkopVKuysTT+gedCVMbBZd4N5+B++WoBumF0od6hIogVzRhhxmWs81bvDfgXdIn 98q4X/svDTTmY2nO67L2/b3sMaD4yLvt1GOYO8r03Iz4KywRE4SRPu0ul1o+oXdWOpnw oeKDk1lT7FYSwydHCvt8Fa3byNODXR6GLzu/3hxRrCVP9gXD5bKGkgDmaq0JqFasOnUE sYChcDwzfXFe6J8Yc6rWbBXYG7sWog3C604Y2jABzhs18Zlyb65U2+Vddcll2bXike3b pfdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:mime-version :content-transfer-encoding:references:in-reply-to:subject:cc:to:from :date:dkim-signature; bh=4BopmsP1o1YlV2GgCyduU3Rho4YCn0fL9u5Y3L7kXXc=; b=IU4rdAuniB0EdT/QQ8y1axVw2n0x5QNABBs+jm8nd55Z8sBUlPimhASDPEXzckHk12 3KuCDxyB7wvA7Zyw19WPfaTFXEOXlOmSrrjzPsOCp1ZnPv0pXMTsUmerxIZWt1lKOpch 2n3lB0EqYREm+vpuKwiD9JAgku9/r/aphOC1vtWuEgPjTgfgOWwldfWT07/i1T4RH/FL S01BhAJai/jhhHNqQ2Jr18YaYApMXwhmjAnKbBUCu4P4ixVU6QqqdNeoMxCI0bFqJJpn ALhK2rYk7kddjvg8qQE4BBHYbWDYYB2/UiXCCVxAMtf3QNKFpA4izbcQEZMh0IvALXAN eiCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@163.com header.s=s110527 header.b=KmFHPN7p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=163.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b7-20020a631b07000000b0040d27a77a2dsi176953pgb.47.2022.07.01.08.04.28; Fri, 01 Jul 2022 08:04:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@163.com header.s=s110527 header.b=KmFHPN7p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=163.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233150AbiGAOkg (ORCPT + 99 others); Fri, 1 Jul 2022 10:40:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233554AbiGAOj6 (ORCPT ); Fri, 1 Jul 2022 10:39:58 -0400 Received: from m13133.mail.163.com (m13133.mail.163.com [220.181.13.133]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 144842F666 for ; Fri, 1 Jul 2022 07:39:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Date:From:Subject:MIME-Version:Message-ID; bh=swt7X SD1Pj95zYnGQ3uFn16uL8o+veS+G0r+lLy2ZmQ=; b=KmFHPN7pvnWE1J/gK/O7P ys4A4VU3/s8nmcbOOUNsXY83r++eushVPL1NYPL4rWQvdvC8s1ZGp5nfOtpnGx17 uejRxZZ/vEe/9M35Sro96gt6AosC5XGjoF4fO8Zv/DNz/E8SM4HV0bHXrcbxh3he o8tpr+htAbJ1VI9OgTXR/Y= Received: from 15815827059$163.com ( [175.0.208.135] ) by ajax-webmail-wmsvr133 (Coremail) ; Fri, 1 Jul 2022 22:38:09 +0800 (CST) X-Originating-IP: [175.0.208.135] Date: Fri, 1 Jul 2022 22:38:09 +0800 (CST) From: huhai <15815827059@163.com> To: "Sudeep Holla" Cc: cristian.marussi@arm.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, luriwen@kylinos.cn, liuyun01@kylinos.cn, huhai Subject: Re:Re: [PATCH] firmware: arm_scpi: Fix error handle when scpi probe failed X-Priority: 3 X-Mailer: Coremail Webmail Server Version XT5.0.13 build 20220113(9671e152) Copyright (c) 2002-2022 www.mailtech.cn 163com In-Reply-To: <20220701123450.rdqffbyubuu63iph@bogus> References: <20220701061606.151366-1-15815827059@163.com> <20220701094212.snsnbdjc7hia5oti@bogus> <1752bac0.5d05.181b93873da.Coremail.15815827059@163.com> <20220701123450.rdqffbyubuu63iph@bogus> Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=GBK MIME-Version: 1.0 Message-ID: <2f760d99.6a22.181ba32a108.Coremail.15815827059@163.com> X-Coremail-Locale: zh_CN X-CM-TRANSID: hcGowAC3ivLSBr9ic+8cAA--.33665W X-CM-SenderInfo: rprvmiivyslimvzbiqqrwthudrp/xtbBERgxhVaEJc70XQABss X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,FROM_LOCAL_DIGITS, FROM_LOCAL_HEX,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, 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 Cj5PbiBGcmksIEp1bCAwMSwgMjAyMiBhdCAwNjowNDo1M1BNICswODAwLCBodWhhaSB3cm90ZToK Pj4gCj4+IHNjcGlfaW5mbyBpcyBhIGdsb2JhbCB2YXJpYWJsZaOsIHdlIG11c3Qgc2V0IGl0IHRv IE5VTEwgd2hlbiBpdCBpcyBub3QgdmFsaWQKPgo+SG93IGFib3V0IG5vdCBhc3NpZ25pbmcgdGhl IGdsb2JhbCB2YXJpYWJsZSB1bnRpbCB0aGUgZW5kIG9mIHRoZSBwcm9iZSA/Cgo+U29tZXRoaW5n IGxpa2UgYmVsb3c6Pgo+UmVnYXJkcywKPlN1ZGVlcAo+Cj4tLT44Cj4KPmRpZmYgLS1naXQgaS9k cml2ZXJzL2Zpcm13YXJlL2FybV9zY3BpLmMgdy9kcml2ZXJzL2Zpcm13YXJlL2FybV9zY3BpLmMK PmluZGV4IGRkZjBiOWZmOWUxNS4uNTQ2MzUwMTczNWZmIDEwMDY0NAo+LS0tIGkvZHJpdmVycy9m aXJtd2FyZS9hcm1fc2NwaS5jCj4rKysgdy9kcml2ZXJzL2Zpcm13YXJlL2FybV9zY3BpLmMKPkBA IC05MTMsMTMgKzkxMywxNCBAQCBzdGF0aWMgaW50IHNjcGlfcHJvYmUoc3RydWN0IHBsYXRmb3Jt X2RldmljZSAqcGRldikKPiAgICAgICAgc3RydWN0IHJlc291cmNlIHJlczsKPiAgICAgICAgc3Ry dWN0IGRldmljZSAqZGV2ID0gJnBkZXYtPmRldjsKPiAgICAgICAgc3RydWN0IGRldmljZV9ub2Rl ICpucCA9I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tICAgICAgIGlmICghc2NwaV9pbmZvLT5jaGFu bmVscykKPisgICAgICAgc2NwaV9kcnZpbmZvLT5jaGFubmVscyA9Cj4rICAgICAgICAgICAgICAg ZGV2bV9rY2FsbG9jKGRldiwgY291bnQsIHNpemVvZihzdHJ1Y3Qgc2NwaV9jaGFuKSwgR0ZQX0tF Uk5FTCk7Cj4rICAgICAgIGlmICghc2NwaV9kcnZpbmZvLT5jaGFubmVscykKPiAgICAgICAgICAg ICAgICByZXR1cm4gLUVOT01FTTsKPgo+LSAgICAgICByZXQgPSBkZXZtX2FkZF9hY3Rpb24oZGV2 LCBzY3BpX2ZyZWVfY2hhbm5lbHMsIHNjcGlfaW5mbyk7Cj4rICAgICAgIHJldCA9IGRldm1fYWRk X2FjdGlvbihkZXYsIHNjcGlfZnJlZV9jaGFubmVscywgc2NwaV9kcnZpbmZvKTsKPiAgICAgICAg aWYgKHJldCkKPiAgICAgICAgICAgICAgICByZXR1cm4gcmV0Owo+Cj4tICAgICAgIGZvciAoOyBz Y3BpX2luZm8tPm51bV9jaGFucyA8IGNvdW50OyBzY3BpX2luZm8tPm51bV9jaGFucysrKSB7Cj4r ICAgICAgIGZvciAoOyBzY3BpX2RydmluZm8tPm51bV9jaGFucyA8IGNvdW50OyBzY3BpX2Rydmlu Zm8tPm51bV9jaGFucysrKSB7Cj4gICAgICAgICAgICAgICAgcmVzb3VyY2Vfc2l6ZV90IHNpemU7 Cj4tICAgICAgICAgICAgICAgaW50IGlkeCA9IHNjcGlfaW5mby0+bnVtX2NoYW5zOwo+LSAgICAg ICAgICAgICAgIHN0cnVjdCBzY3BpX2NoYW4gKnBjaGFuID0gc2NwaV9pbmZvLT5jaGFubmVscyAr IGlkeDsKPisgICAgICAgICAgICAgICBpbnQgaWR4ID0gc2NwaV9kcnZpbmZvLT5udW1fY2hhbnM7 Cj4rICAgICAgICAgICAgICAgc3RydWN0IHNjcGlfY2hhbiAqcGNoYW4gPSBzY3BpX2RydmluZm8t PmNoYW5uZWx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gICAgIGVsc2UKPiAgICAgICAgICAgICAgICBkZXZfaW5mbyhkZXYsICJTQ1AgUHJvdG9jb2wg JWx1LiVsdSBGaXJtd2FyZSAlbHUuJWx1LiVsdSB2ZXJzaW9uXG4iLAo+ICAgICAgICAgICAgICAg ICAgICAgICAgIEZJRUxEX0dFVChQUk9UT19SRVZfTUFKT1JfTUFTSywKPi0gICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgc2NwaV9pbmZvLT5wcm90b2NvbF92ZXJzaW9uKSwKPisgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2NwaV9kcnZpbmZvLT5wcm90b2NvbF92ZXJz aW9uKSwKPiAgICAgICAgICAgICAgICAgICAgICAgICBGSUVMRF9HRVQoUFJPVE9fUkVWX01JTk9S X01BU0ssCj4tICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNjcGlfaW5mby0+cHJv dG9jb2xfdmVyc2lvbiksCj4rICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNjcGlf ZHJ2aW5mby0+cHJvdG9jb2xfdmVyc2lvbiksCj4gICAgICAgICAgICAgICAgICAgICAgICAgRklF TERfR0VUKEZXX1JFVl9NQUpPUl9NQVNLLAo+LSAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICBzY3BpX2luZm8tPmZpcm13YXJlX3ZlcnNpb24pLAo+KyAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICBzY3BpX2RydmluZm8tPmZpcm13YXJlX3ZlcnNpb24pLAo+ICAgICAgICAg ICAgICAgICAgICAgICAgIEZJRUxEX0dFVChGV19SRVZfTUlOT1JfTUFTSywKPi0gICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgc2NwaV9pbmZvLT5maXJtd2FyZV92ZXJzaW9uKSwKPisg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2NwaV9kcnZpbmZvLT5maXJtd2FyZV92 ZXJzaW9uKSwKPiAgICAgICAgICAgICAgICAgICAgICAgICBGSUVMRF9HRVQoRldfUkVWX1BBVENI X01BU0ssCj4tICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNjcGlfaW5mby0+Zmly bXdhcmVfdmVyc2lvbikpOwo+LSAgICAgICBzY3BpX2luZm8tPnNjcGlfb3BzID0gJnNjcGlfb3Bz Owo+KyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzY3BpX2RydmluZm8tPmZpcm13 YXJlX3ZlcnNpb24pKTsKPisgICAgICAgc2NwaV9kcnZpbmZvLT5zY3BpX29wcyA9ICZzY3BpX29w czsKCj4rICAgICAgIHNjcGlfaW5mbyA9IHNjcGlfZHJ2aW5mbzsKClllcywgSSB0aGluayB0aGlz IHBhdGNoIHdpbGwgd29yayB3ZWxsIHVudGlsIGl0IHJ1bnMgaGVyZS4KCj4KCj4gICAgICAgIHJl dHVybiBkZXZtX29mX3BsYXRmb3JtX3BvcHVsYXRlKGRldik7Cgp3ZSBzaG91bGQgbm90IHJldHVy biBkZXZtX29mX3BsYXRmb3JtX3BvcHVsYXRlKCkgZGlyZWN0bHksIGJlY2F1c2UgZGV2bV9vZl9w bGF0Zm9ybV9wb3B1bGF0ZSgpCm1heSBmYWlscywgIGlmIGl0IGZhaWxzLCAgdGhlIHNjcGlfaW5m byB3aWxsIHBvaW50aW5nIHRvIGZyZWUtZWQgbWVtb3J5LgoKYXMgeW91IHNhaWQgYmVmb3JlOgot ICAgICAgIHJldHVybiBkZXZtX29mX3BsYXRmb3JtX3BvcHVsYXRlKGRldik7CisgICAgICAgZGV2 bV9vZl9wbGF0Zm9ybV9wb3B1bGF0ZShkZXYpOworCisgICAgICAgcmV0dXJuIHJldDsKd2lsbCB3 b3JrIHdlbGwuCgp0aGFua3MKCj4gfQo=