Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2147072rwb; Fri, 11 Nov 2022 05:48:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf5z0pc9AuCoYjC/uhxcIG9GxIUtMJfEp9vw5aCu50iSnkU8XPZC7rmG+MLy729qpeQzN//o X-Received: by 2002:a65:6e96:0:b0:470:18d5:b683 with SMTP id bm22-20020a656e96000000b0047018d5b683mr1716102pgb.367.1668174495696; Fri, 11 Nov 2022 05:48:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668174495; cv=none; d=google.com; s=arc-20160816; b=qwejJC5iJ689mFeXhagoJJXp1qtM1f6d4Y7oH5cOjxWS/+w/jCOp8q1A0w1IYgN5RX dSH4A4QRdIpDUuey9Kk96Z+3ofRFbNH0XDtRzBjDuMehn9XkzOTh+jj0GviI071uZJAX HtUSWiQb00XG/qf1bPOTLAxcN4XaOICOSoeMb2E5QLekjUb5UklPSyZYnMOykUmndLZX j4A3lLdqP2EJ2w6DY1ACGYRHETJNPPWV/dEM02ddsqpZgGnk+ul5gYKwRFJVAKdmXNjU jYbe2tSPpvtMYE+bNj1dNivV2ly5VEOYAge5h+ET8mWvqUNCcOae/O4YFS3TQYQlLtdM 5iQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=UGId/xbBvvbV09vLsI6ZjJlsM6NHPh4oFHruzL5CqcQ=; b=sn8l4xKQfWoiEsoCEOzg5akwhrLoBwmV3J4kUfEPoodOPmmYeuls2bVbz7JPOal1s5 bOZAouZpl76BrfnjmItmA6+kA9UfKzovAp6cOEsCl9RAs6tYIWZKYSrYyCVhdDmZD37g 4x2BR0g6fH5A25nY/9p58AWEc3Gw2Qd7f2Ta4OtP85YbGmpQuUCJBa991e4YMhdbW8D0 PN9hjeO5TjJlXdWub3J7FxvrbwCCVnZSceddYgjau45ESKJ76UdmY9Ju+aRq8jw/y1Ao 4VXpxxVPIdwGxMdoaI4fZZcVlB9RACTjFYAczCPB32ORZ9zwArYpqgRO0FoA1COil4o+ 8r4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=YLd5gjWM; 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=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d3-20020a637343000000b004700983430esi2411990pgn.794.2022.11.11.05.48.02; Fri, 11 Nov 2022 05:48:15 -0800 (PST) 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=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=YLd5gjWM; 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=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233889AbiKKNQr (ORCPT + 91 others); Fri, 11 Nov 2022 08:16:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233919AbiKKNQp (ORCPT ); Fri, 11 Nov 2022 08:16:45 -0500 Received: from smtp1.axis.com (smtp1.axis.com [195.60.68.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5504D7298A for ; Fri, 11 Nov 2022 05:16:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1668172603; x=1699708603; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=UGId/xbBvvbV09vLsI6ZjJlsM6NHPh4oFHruzL5CqcQ=; b=YLd5gjWMitBvHSvOnulYw4T6gKNEhKM68iMGgkOYmZZ+hVoZMsXt+qoQ VAluEkSxehHZXeWINXNGWQNxFGGck800CWULLJmUrN0aIqZ9No0Cw5bsx AUxQjgYjSphmWLm6cb+a6ZWSENbQhnSOGTk+oSdG5CQzOfqjB9jUc0Hju Q1Bf1PJrOvcGWC8DwuibfDYSpINR03+vXu9nPwCbQ55DIGGLD2DT3FjFJ DCEoz6/Y9koGUi+a9i+usBn97UMpnbqYx5v5StKHUqYvVpO3xMFC/dDjo lMu+6I5oQ2TlNKqUS5NuwB3l/Xg/aFYB08KWcmtID1qA2LDyW+tyPmPft w==; From: =?utf-8?B?THVkdmlnIFDDpHJzc29u?= To: "sumit.garg@linaro.org" , =?utf-8?B?THVkdmlnIFDDpHJzc29u?= CC: "jens.wiklander@linaro.org" , "linux-kernel@vger.kernel.org" , kernel , "op-tee@lists.trustedfirmware.org" Subject: Re: [PATCH] tee: optee: Populate child nodes in probe function Thread-Topic: [PATCH] tee: optee: Populate child nodes in probe function Thread-Index: AQHY9FVbeqfP3YVtpkqNWltUYufXla437AcAgAAVOICAAW1fAIAAN58A Date: Fri, 11 Nov 2022 13:16:41 +0000 Message-ID: <02a899a1807274e2d0fa20e0d6059db00839d9ec.camel@axis.com> References: <20221109160708.507481-1-ludvig.parsson@axis.com> In-Reply-To: Accept-Language: en-US, sv-SE Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.5.60] Content-Type: text/plain; charset="utf-8" Content-ID: <8830FE8A3134B44C933524261BB7C127@exhub.se.axis.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_PASS autolearn=ham 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 T24gRnJpLCAyMDIyLTExLTExIGF0IDE1OjI3ICswNTMwLCBTdW1pdCBHYXJnIHdyb3RlOg0KPiBP biBUaHUsIDEwIE5vdiAyMDIyIGF0IDE3OjM5LCBMdWR2aWcgUMOkcnNzb24NCj4gPEx1ZHZpZy5Q YXJzc29uQGF4aXMuY29tPiB3cm90ZToNCj4gPiANCj4gPiBPbiBUaHUsIDIwMjItMTEtMTAgYXQg MTY6MjMgKzA1MzAsIFN1bWl0IEdhcmcgd3JvdGU6DQo+ID4gPiBPbiBXZWQsIDkgTm92IDIwMjIg YXQgMjE6MzcsIEx1ZHZpZyBQw6Ryc3NvbiA8IA0KPiA+ID4gbHVkdmlnLnBhcnNzb25AYXhpcy5j b20+DQo+ID4gPiB3cm90ZToNCj4gPiA+ID4gDQo+ID4gPiA+IEN1cnJlbnRseSB0aGVyZSBpcyBu byBkZXBlbmRlbmN5IGJldHdlZW4gdGhlICJsaW5hcm8sc2NtaS0NCj4gPiA+ID4gb3B0ZWUiDQo+ ID4gPiA+IGRyaXZlcg0KPiA+ID4gPiBhbmQgdGhlIHRlZV9jb3JlLiBJZiB0aGUgc2NtaS1vcHRl ZSBkcml2ZXIgZ2V0cyBwcm9iZWQgYmVmb3JlDQo+ID4gPiA+IHRoZQ0KPiA+ID4gPiB0ZWVfYnVz X3R5cGUgaXMgaW5pdGlhbGl6ZWQsIHRoZW4gd2Ugd2lsbCBnZXQgYW4gdW53YW50ZWQgZXJyb3IN Cj4gPiA+ID4gcHJpbnQuDQo+ID4gPiA+IA0KPiA+ID4gDQo+ID4gPiBXaGF0IGVycm9yIHByaW50 IGRvIHlvdSBvYnNl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