Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5862939pxv; Wed, 28 Jul 2021 23:45:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdgaPD6LWPekmKLyPpaGpZEAIRNAmWqF68BLzxGPhirdazuQavOaZW71wsyvjQCGr8OG6V X-Received: by 2002:a17:906:3193:: with SMTP id 19mr3307957ejy.433.1627541150764; Wed, 28 Jul 2021 23:45:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627541150; cv=none; d=google.com; s=arc-20160816; b=rcRpSFvQ4z/dN8EWdKniMbV/VyaeIoPF3uC2w53bEIepTuDlRQ+thaHkKf5po+HklC 57zNQ7RTUPAKQFf6STy7lrP+LO4IQ+421JoyVqolkzpotR3HrUm73KZnBlx162ODqw6/ BQdzHEPasfPLJCyPROqsJCAPhaVFERf03BVEjxybSt5Ik5N8H801GMvu6m0yGy5FozRn rj2Sj3UETa0lyTlRkigBbaVNsDSdEEO/W7LD8I3tuoAxtfNvpbFEXH+hd5SbkW5YgzXX URPf7LFnC6Uei/2H7Yf2mDs5Uoz1/180LqHimM7Kb7PswvJN6FeqgCTbExbtIPN5+xNn fwNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=aNHAvKzLnDE0l22szBAplJPRIyO7Fjn7sOyBfjv9ftM=; b=ZnZ+0XLk1YwgzPawRr6+tT6x8g0JbEBWAuqJKLhW9dRbsTowkLgy7QcKc1XvsUJDgM JyAU3sE+l3fMwOpybph1KX8bJNar+oJmKttnYY/dt2OxKG0MkadhVdjJ4/sjAzjYWi5K ZOZjGXteGgbxNbadQUGskLW3DPhuHQF8geRBQh644Oakhe2YDvihntGc4HfWJwQpLA/V 23UxOb1N8NiKum6GCCFsMyZIl62sKf/MbZK0qyA3fpwX+hue4Dvd5lN6tqwI++3qn5mR 2eiX8hAR35P5fBug4dE/CLp+87uGn23AP+T61WoMVF6ZomhvWpSkwn5Ff9OZfy6VzGrJ Y2Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TzevBp24; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j14si2005716edq.89.2021.07.28.23.45.25; Wed, 28 Jul 2021 23:45:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TzevBp24; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234161AbhG2GoH (ORCPT + 99 others); Thu, 29 Jul 2021 02:44:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234079AbhG2GoG (ORCPT ); Thu, 29 Jul 2021 02:44:06 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C16EAC061757 for ; Wed, 28 Jul 2021 23:44:02 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id r17so8983463lfe.2 for ; Wed, 28 Jul 2021 23:44:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=aNHAvKzLnDE0l22szBAplJPRIyO7Fjn7sOyBfjv9ftM=; b=TzevBp24AUTpOKpCI+D8uvXeWR8ycXDOEPiiRHRAu2eZQWaaQ01ysFXZNwT8ggjIPk C3SCJXwd6aYveLIThgf85/uMLZ5F/nUnhMaL/l1ZprzFvh2V4Tm7non1BxmQS3LCZIJr OTdgxDIsijzxmTfNendVfIpRhAbNYLdOZg9x/T0+VbTlPHseCBx6Vdi8t9BMaLY7B8cZ cjCoYXxofDgvt/jM1GLxHvGHQAy9YLc+2hDbqyvlexV2HrL4k3njHJT44enyC0LSQYOp q4WSzXombeCZFc8oo36OQ2MoFQz53cmbQXnBBhm9tjmEzYPDmAnCzoQHZjwcWQfF9leb UyRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=aNHAvKzLnDE0l22szBAplJPRIyO7Fjn7sOyBfjv9ftM=; b=F1o5jUsUfW+BoBHFdPLW22+RQ+R7Qrp9kHDWuohpNrdJ9LBiTUhVfcHSwRFtjvwTcK Fdrff5Sn/T4P7CI+9OSlSljMgjHTfnE4YGWIXRyCow+W1QOvV73XiffafjcRDAx5J5Gm yx2E/Q5wQw/nJPEiFJcn+M7lDk2pjnTtHQWZ6xGdIAWpKCkuVKtJfq6qHBLcu4RKSi3S 11fRrHwFuuuhKoN5lWwoVhP34vypPRpVWZq+HDAZJc30JTJJcJg5nS2Mei61Dl41Pd6o Aybhs3UaNRDnjYhENeB9ImjS6jDhcC794YTSbJiDHFcrEgE3mSIJRo5P3zQcCnGT3TGT 5n2g== X-Gm-Message-State: AOAM531jpWz9rTWiWpfikCdXMSujF0O3sjSmf9U7r4z9XnXhiHl8yvJ9 0HXkoeVpWRbdXHKJoSi7PkKyQg== X-Received: by 2002:a19:c707:: with SMTP id x7mr2679322lff.38.1627541041147; Wed, 28 Jul 2021 23:44:01 -0700 (PDT) Received: from jade (h-94-254-48-165.A175.priv.bahnhof.se. [94.254.48.165]) by smtp.gmail.com with ESMTPSA id i3sm90427ljd.57.2021.07.28.23.44.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Jul 2021 23:44:00 -0700 (PDT) Date: Thu, 29 Jul 2021 08:43:59 +0200 From: Jens Wiklander To: Sumit Garg Cc: Linux Kernel Mailing List , linux-arm-kernel , OP-TEE TrustedFirmware , Sudeep Holla , Marc Bonnici , Jerome Forissier , Sughosh Ganu Subject: Re: [PATCH v3 2/5] optee: simplify optee_release() Message-ID: <20210729064359.GA3316601@jade> References: <20210722121757.1944658-1-jens.wiklander@linaro.org> <20210722121757.1944658-3-jens.wiklander@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 28, 2021 at 02:15:47PM +0530, Sumit Garg wrote: > On Thu, 22 Jul 2021 at 17:48, Jens Wiklander wrote: > > > > Simplifies optee_release() with a new helper function, > > optee_close_session_helper() which has been factored out from > > optee_close_session(). > > > > Simplification looks good to me. > > > A separate optee_release_supp() is added for the supplicant device. > > > > On similar terms, can we have separate optee_open_supp() for better > understanding? I'm not so keen on that. It wouldn't be much of a simplification since we'd end up adding quite a few functions. optee_smc_open_supp(), optee_ffa_open_supp(), optee_open_common(), and finally optee_open_supp(). Thanks, Jens