Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2455874rdb; Mon, 12 Feb 2024 05:42:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IGkXsXj2MldREkOIvTqK65CbWRPerWSeZc1s60S6k6MON0mH62KYiXne/Jy9zPQXIzonUvn X-Received: by 2002:a17:906:4c53:b0:a3c:9f58:9b3d with SMTP id d19-20020a1709064c5300b00a3c9f589b3dmr1813273ejw.10.1707745363931; Mon, 12 Feb 2024 05:42:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707745363; cv=pass; d=google.com; s=arc-20160816; b=CqRnMh5DxvU3UgRBEHuGjd7gyJFk7JfGOdLzOR8Bcz7wLsxIobBQxvnJ06P+oUlZeJ EDwm8wzSLi76Y4ub/8d6PPdEj11hAo+obcGEoVc3gSdSLfDULlE0ksh36ycN4LaHXjwS TY06gSAsEv40UR2PXHhWh23xEOkBOmpfoeg2rIyy5zfOCmmcCkJqAStKKqk3yGV68Qxu D1szLgnH2fbOq4zRRkKN+QHlBZVB/lkypZgb1FcE9BQ0lmQeMXmutAeVuC0Y0xCOCeU5 gkh07lKwXeI/okdNk+qC82PTJ84k61nyZ1Yv7Ie77yrEp2mbjSmfubiPHaGWxmsNieTS N3vg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=u6FDDbhlX7exToeNxM+aKUn0KChUDlkrcMsMbCRGj5o=; fh=M9hPignIEXJTrZsQVyMHgNHrjtRH5ui/SA9Be+yn6u8=; b=X0DqHevS49ROVvViW09qmn2pLb42WZV7yL/jkOBtKbM6MnGWGrbyjV7mALKfC9Yair md3dvj7jsplZoptrp9EgWbG/tXCOb1cLXjYOomcRXOSR3Dunz5F3gmFQzd3EDrWDMDWc hk0Z44lq3hlW5rxD+694x4VlfcmKyu7R96KPYCwDJpK3oDGfGLKI3Y2gw55zS1z0JJXd hzS5SJVKgMAhXDZBmlcj8T6fwNhW1dSRcvGE00dchzGPlNnmv6nP2ZEGzd+9VnShjUN8 wGWfuGnOoy5H+93qjbX0ALeMB0MNmkxr0JWSR0CXM3M3c/7pFec8ByxHAVaQvavq7SDi emgQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dhnWrfMp; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-61703-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61703-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCUEWI5isy3i0MW3JPasrVoXKlFrjBv/N3e0iFTV1dnO9XD6FxzG5dVs3AfiDMehXHPkigRP+bGqVIFxSi+AHXtAWaSDi39FvGTyYrzbrQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id z9-20020a170906074900b00a3c95ae7259si201302ejb.829.2024.02.12.05.42.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 05:42:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61703-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dhnWrfMp; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-61703-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61703-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 4926D1F21C31 for ; Mon, 12 Feb 2024 13:42:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 25B0E3D55F; Mon, 12 Feb 2024 13:35:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dhnWrfMp" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 42B633B785; Mon, 12 Feb 2024 13:35:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707744918; cv=none; b=tR28Nrc9mUfAtCePdG4rFQDnn6nnPycehXPWoAJHSjUO4hBVQiyu246E5+NJ3dqiq1avKaZ/tORXN79mfCNCEl1NAkY6GyKywl0ZEEU0o15vYWVLYL5+cKKvtB7xXzNPLX9+/DZ9OLVGJWeMGtthpOnSGW02LfRNJjxJBR+XHXU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707744918; c=relaxed/simple; bh=V4lbPJZ3qP0qBipIkWFbBDXjWwgPyX2OPgDSAvz12/Y=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OwL85kQYDg6t50VMTlvv2tI0zZAbpu8HqRxASgc8/Ny2JkpQqBNoBmUiW8nsFRpgz2wU8wAk0D1GE0ehou7EzzXlMTfbfEz6Fn/e6znCRSRVFHC2yn5bLUVRmYFBMCvvMUCOfAvsWW0kgomu3fQPB7/ACqRMXiEpNOU3dxgSrJk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dhnWrfMp; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 17E22C433C7; Mon, 12 Feb 2024 13:35:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707744917; bh=V4lbPJZ3qP0qBipIkWFbBDXjWwgPyX2OPgDSAvz12/Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dhnWrfMpMCmDrMWf2D4F9lCiaqP6X+Wd2c7l2eHXy/MNx5wfjHWyiIBwYJkuhv/rw 1rVEwfiWcv7wKvtTpPgr0RRPnqD8dPQ/3kiySaVEXpE9ZE6zD36zFebZqIrwC+g58Z kpzSif0ra2iOHVyEfoO0JC5E8abFcHENAIuFYyyU2iEmhyrCyb7yPss1LFOTmIumUV NeN8X4eGzfjU6fZK1jwaj53kCpUFRYTxkkDtSC64S0BWjHvrY6jHTpukBirFzgE5Nd C/GOdPI95ahA/+aVDK8ILPXauFmeVWYU9SCVqy/Ep2bpkxEJMnTLcoBEwPorB4sk6y YQ2n5RQwPqwCw== Date: Mon, 12 Feb 2024 13:35:12 +0000 From: Mark Brown To: Dhruva Gole Cc: =?iso-8859-1?Q?Th=E9o?= Lebrun , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, Gregory CLEMENT , Vladimir Kondratiev , Thomas Petazzoni , Tawfik Bayouk Subject: Re: [PATCH] spi: spi-mem: add statistics support to ->exec_op() calls Message-ID: <5c1a5edd-adfd-44f2-a993-bc3f43222a3a@sirena.org.uk> References: <20240209-spi-mem-stats-v1-1-dd1a422fc015@bootlin.com> <20240212111355.gle4titwolqtzwpi@dhruva> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="qfEan8YTTsWnxYla" Content-Disposition: inline In-Reply-To: <20240212111355.gle4titwolqtzwpi@dhruva> X-Cookie: Will stain. --qfEan8YTTsWnxYla Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 12, 2024 at 04:43:55PM +0530, Dhruva Gole wrote: > On Feb 09, 2024 at 14:51:23 +0100, Th=E9o Lebrun wrote: > > + /* > > + * We do not have the concept of messages or transfers. Let's consider > > + * that one operation is equivalent to one message and one transfer. > Why 1 message _and_ 1 xfer and not simply 1 xfer? > Even in the example of testing that you showed above the values for > message and xfer are anyway going to be same, then why have these 2 > members in the first place? Can we not do away with one of these? If the device supports regular SPI operations as well as spi-mem operations then this will ensure that the spi-mem stats fit in with the other operations. If it only supports spi-mem operations it would not matter so much. --qfEan8YTTsWnxYla Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmXKHpAACgkQJNaLcl1U h9ApIAf8CFpmSqm+vuO7RrlK573k/K80dAGpyOYDvb4SkGCshATMJ3VLM50ZvVR5 BXdev13tBegdvN5gg+i9FeFLYGyBVJDpCsNedg/1aXvSrofa4n97zB4p3E/s+ndv egC/u9kawfrOJ5k7PEr7pVmlP2ZaajCvuSTq/huoD8zePvEWUOgaqTehpmxqhNVa g/oxTEBTv0biZHC6z8PMrffb6ugnVf2ppSlfYL8GF8ceoONUMHvmL+yPq0H83u+a 3bXyC65cZOs+Xa5GextzRqeTHt0uk1V0tXisJSNkIxU+gRsZDvI1e6ZfBlTTWE5+ 5hFP8z4lVCFXvdaNAjcryp1E7xKOgw== =nLML -----END PGP SIGNATURE----- --qfEan8YTTsWnxYla--