Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5877781pxv; Thu, 29 Jul 2021 00:14:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwL/M1vIUxaG3BgP7sq563nsKxB9hp8Z0PpZnkk+XbEs7Xpo5z/JT4YHH7ZJM6aoorvZtiM X-Received: by 2002:a05:6402:cab:: with SMTP id cn11mr4223939edb.369.1627542861767; Thu, 29 Jul 2021 00:14:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627542861; cv=none; d=google.com; s=arc-20160816; b=ysIJXkwD6vMDkARoKpW/rIpmRBtFW5L38SXQq7SioByBDPfnuoRPgR14pq+z6vnNBT d41y00WAdaBJTYvV+ihQCaezxOvg7pxpiZBdbmHpdMWUoFeDXzOClD4xJTLNZqiDH18G bKYvNtcOOlIXFQ/RtEfCL40DAZOHtqE+83hRmgK4n9relM2n1d9BG/zjYnE+vovAr+GK GVArxoKH2KFaWdo04VGQJCh+0phOoWTyEoOqG/5tI8L8O1rhXEk18siVE1yOV4C64PNx Xtrhj0JkYL3xiRsXUlNx0S3ICIbVaYhOfhdXyeSia4v9PF4wXWf3IgDARXQBY6YTI642 JeAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=MoFw2S044+a87aIj+7FPIutyeW+kh1qZwjiCXtSKMLE=; b=r5ehy+IekI66gpW5dYm2b+5PcE8m3f3Jo9arGTvvoXHEaDISxYxk3Y87aZFPXS+DSr /mfwHPvYBfYARclqf+immAcAisO22nUBIM8wj8Ys0fcY8YrcEr/AEaOrZElL6MZ1FBbH llT/VVSIHSiQ6rdf+BzhV6NDYVpzQNDu47pjd+MiISo4dIo//iGUFvp8Oegmp5ohdAMV SyKtMzwfavnCL1nDTCTF/lh4Zr1TxK7CDE3MJysYRrSpCJ6W1VJrb3uM6TLt0sHiEQWz yYk07uZvk99WIpFDGSP6HYKf2ww+i9KPdFK7SS4xxNp3VZB6jqs69UECPcB2tIbrv7ET LhaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=e7KXs8ys; 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 e10si2390464edj.183.2021.07.29.00.13.58; Thu, 29 Jul 2021 00:14:21 -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=e7KXs8ys; 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 S234471AbhG2HKt (ORCPT + 99 others); Thu, 29 Jul 2021 03:10:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234448AbhG2HKs (ORCPT ); Thu, 29 Jul 2021 03:10:48 -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 998B2C061757 for ; Thu, 29 Jul 2021 00:10:45 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id f18so9058873lfu.10 for ; Thu, 29 Jul 2021 00:10:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=MoFw2S044+a87aIj+7FPIutyeW+kh1qZwjiCXtSKMLE=; b=e7KXs8ysXeshruLJUbQ2J+1tDH0JsuB/m95qY8LS9996gmbNKFNcX8L5dS9QsbTQQU ztxFZoyWEzTP6DkEQO3pcnbQqg17LB3CBuUMGWu+Hvwe6D7XdUJd0yiQvUuPXaCvYysW P9ciOF2WV1M7iuGUcUyzODsOKBoSHWv2ZeLgaoAd8BIx0cWgpS5ypwsWv44Cc6TrA17m wu9E+WHxwUCTRYc+23FQvvrL+zEWAANddxP3te427ncMlAF6S/H0oeDhBYUtn+E2Uu98 SNU62XTt9CBYkQCxjWuUQyz0Ld5s2a0WZa2cLHkXlNWuHisB/lInD9JzIi5oQxdEfFcS l3+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=MoFw2S044+a87aIj+7FPIutyeW+kh1qZwjiCXtSKMLE=; b=kk3rYLTNIWGGM8F7Vb/uShs1RrbHU0oH0WRUjEq/qD05E2FNP0YlctUc2B98U3vXq5 VTkq5567v4vvz55yJmtipoeq9rS9AF2CQGey5qq1iLbaFRxS50Oe+OrOVzxVqeyYouw5 KtUt/63Zsoic3P3uavdEyfveAsDOMD4dwINO7xzFks48IYYrXycgHJejEV0SCipI+avO jps6t0iUl7BFYZTXbQMCZZzsjqF7H1qBgA5Ia0lJAFg/oI5UolIo7/6A+i7KS3lCAMu1 /g0ltd27hZPU93adgMOs9uLslzxJJNmN3amzK5dUZ7PJvRJGoQyvekGyKfumuPZwqO5x Os+A== X-Gm-Message-State: AOAM531sD4SdF8wFeRKhM+F2pEEKXkjm5QqO6T25e9tP3HhGOLo2jdjp ma6PRN2s57nYL+LTAz6qwh45oriWfJRwbmF/zFLvHg== X-Received: by 2002:a05:6512:511:: with SMTP id o17mr2695176lfb.396.1627542644007; Thu, 29 Jul 2021 00:10:44 -0700 (PDT) MIME-Version: 1.0 References: <20210722121757.1944658-1-jens.wiklander@linaro.org> <20210722121757.1944658-3-jens.wiklander@linaro.org> <20210729064359.GA3316601@jade> In-Reply-To: <20210729064359.GA3316601@jade> From: Sumit Garg Date: Thu, 29 Jul 2021 12:40:32 +0530 Message-ID: Subject: Re: [PATCH v3 2/5] optee: simplify optee_release() To: Jens Wiklander Cc: Linux Kernel Mailing List , linux-arm-kernel , OP-TEE TrustedFirmware , Sudeep Holla , Marc Bonnici , Jerome Forissier , Sughosh Ganu Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 29 Jul 2021 at 12:14, Jens Wiklander wrote: > > 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(). > Fair enough, FWIW: Reviewed-by: Sumit Garg -Sumit > Thanks, > Jens