Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3780650pxb; Sun, 7 Feb 2021 23:06:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJz4l8R8RM4gvii9TVS5HrqJ+xVGfBY6jHHw23q6qeS1kvvActF3vHwHtOd7L8f/wyaQ2SZr X-Received: by 2002:aa7:c94c:: with SMTP id h12mr16179613edt.40.1612767966173; Sun, 07 Feb 2021 23:06:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612767966; cv=none; d=google.com; s=arc-20160816; b=NpdAn2kVxN/P2usUTBoOlfVKIfiBPM9KR12H0z1vAM59azMTgusjuPqNVNMoJKbQZi CK3PgUxqzuynDMeoUeVY+exHw4ybvr3o3MnV4hOHmNOsmocyTv0p/2RE5YvWDCYGzP9A 1lE6kpiGHwmdXBnXTZNIecva031DgRogHcdwFekm+h6wvpiBzHfyLyxr5Y8xmb5+yUL8 oN+l/xeEGn4tcY6D03xo+4l/1Bz5FJnXl2ER6NCDR+mgSMEYfXbcIFDi3UsHnrynJGpU d0SLvKGOcJ28tm6lLta8K4PF87B1A447A5GnwXQ+yORd8eus5x9hXfpV40shErrVJ1a9 Beng== 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=cGWZhw5FD17JgQu/vypm5kA3S3RNt2GOM+1bM/iHts8=; b=UyfKcSGKt3oQyPspR/eWm0O7+PDKrxjGhGGVrDfQFYFN80wrY/zi6H1R/urzzqZBn4 9ikWIUMkUbNSB/tbVqQj1rMdkHzHT0DSO9BxZpteacbeyP0PVLmuV+cPKHbr0am/Z389 UOF+YE99Ez6WwVeGTiFC6OJA3sk0s6fzyIMmIdC+CohZtM9kfrRCdg9HqGlxudthTe3c Fu326XWIyiHDVenFhZw1AiMIKJws/UD0ORysL7XSy+S8rNJuCOfoc91SI6G05u923pi5 6jSMbW/21F2nSx/Cif6JEZTp3t0EzZB3YQU7NfNcWik5H4iRFkg2Z1OwKmVb+Dfkllbj Hxdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=luPuRfru; 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 g5si10582794ejw.275.2021.02.07.23.05.32; Sun, 07 Feb 2021 23:06:06 -0800 (PST) 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=luPuRfru; 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 S229850AbhBHHB5 (ORCPT + 99 others); Mon, 8 Feb 2021 02:01:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229719AbhBHHBq (ORCPT ); Mon, 8 Feb 2021 02:01:46 -0500 Received: from mail-oo1-xc2d.google.com (mail-oo1-xc2d.google.com [IPv6:2607:f8b0:4864:20::c2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AABDFC06174A for ; Sun, 7 Feb 2021 23:01:06 -0800 (PST) Received: by mail-oo1-xc2d.google.com with SMTP id x19so3203268ooj.10 for ; Sun, 07 Feb 2021 23:01:06 -0800 (PST) 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=cGWZhw5FD17JgQu/vypm5kA3S3RNt2GOM+1bM/iHts8=; b=luPuRfruVI3C9Z4Bz6nnFNZ8XtpUHKXi2PydPjgRMvjXKetMiZ15BTduD1Wkcwwm80 4bF2IvptIODZWGctNU8CJmAlbI0C2tUV4nGlNmWs5U9KkIUmoxxgXSeCXMov/JEMXOsz ypa4dlVOKj37nWoIMr9UShY6ZzoJ5BAZ5SJRqyoJ+XGCuRCQyTtx1fYbJ9h3nGf794Ec ExKcjquCK1cft66zu+e23xiDKKL9XvNdjpsnBjp9ZaFtWPnewFFuwSVGg3NuUjEWEoR1 ZubRJ+3rBRxKZeLAR7U0E68HYdeTI9HkwcetxHTBspqWQk+N2QWNhAKEHKoiQ/AGg8SL ui/w== 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=cGWZhw5FD17JgQu/vypm5kA3S3RNt2GOM+1bM/iHts8=; b=Tg2N4f91UVuMe419xr9tJN/t4g/UV94Uex/0iZU1ycxEewt4abqNEsQu6HUENLrFbJ G13ava/ByLc5cYUklbx4CDp2lTg32MAOkBrzx9wK8zijrwBuxktHItLYRlltecrgybn/ /hIJUJqD88Ase1CFiu/lI5KZuSgKTMTcMV6fa6Abxs4LbiDz9ugEzAcXynvWEhi1VeK3 aiq0Qm62Tpo45jwaerygJ3CcwzcCYiFrkpizqxargwBozaA96d+bSoLrcpiHwN7kpx4D CHNLew/Rjw2OS8l5H0pAsYg8m/nslDr4wcLs3LfHK0wQchpHNa8auKQK/Ts9Nt4rC3XW 9jog== X-Gm-Message-State: AOAM533grev6Ubip7dgvoI1fM0HBK72wZEVZvxhqOwPYdKfpVzDRJ18o NihYf7w9PokAP8Ka6+2I1CgUGXI0xIRHL/sS2Y2n2uXb6DA= X-Received: by 2002:a4a:c489:: with SMTP id f9mr11552941ooq.49.1612767665936; Sun, 07 Feb 2021 23:01:05 -0800 (PST) MIME-Version: 1.0 References: <20210125113758.2430680-1-arnd@kernel.org> In-Reply-To: From: Jens Wiklander Date: Mon, 8 Feb 2021 08:00:55 +0100 Message-ID: Subject: Re: [PATCH] optee: simplify i2c access To: Jorge Ramirez-Ortiz Cc: Arnd Bergmann , Arnd Bergmann , op-tee@lists.trustedfirmware.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jorge, On Wed, Jan 27, 2021 at 11:41 AM Jens Wiklander wrote: > > Hi Arnd, > > On Mon, Jan 25, 2021 at 12:38 PM Arnd Bergmann wrote: > > > > From: Arnd Bergmann > > > > Storing a bogus i2c_client structure on the stack adds overhead and > > causes a compile-time warning: > > > > drivers/tee/optee/rpc.c:493:6: error: stack frame size of 1056 bytes in function 'optee_handle_rpc' [-Werror,-Wframe-larger-than=] > > void optee_handle_rpc(struct tee_context *ctx, struct optee_rpc_param *param, > > > > Change the implementation of handle_rpc_func_cmd_i2c_transfer() to > > open-code the i2c_transfer() call, which makes it easier to read > > and avoids the warning. > > > > Fixes: c05210ab9757 ("drivers: optee: allow op-tee to access devices on the i2c bus") > > Signed-off-by: Arnd Bergmann > > --- > > drivers/tee/optee/rpc.c | 31 ++++++++++++++++--------------- > > 1 file changed, 16 insertions(+), 15 deletions(-) > > Looks good to me. > Reviewed-by: Jens Wiklander Would you mind testing this? Thanks, Jens