Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1646258rdd; Thu, 11 Jan 2024 05:33:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IHiJD1ManQEi2qnKhF0o4zIME1uCoXur/yBFhuuDtn1VCdOoUEF5O6wAQpUsedgQyk2MkUt X-Received: by 2002:a0c:f443:0:b0:680:caa7:7f6a with SMTP id h3-20020a0cf443000000b00680caa77f6amr987887qvm.55.1704980004999; Thu, 11 Jan 2024 05:33:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704980004; cv=none; d=google.com; s=arc-20160816; b=NmuvzpaxcpwuE5+fsCGVdFtviMaXUxtvY9SFNfsqJnTVcUz3WT2SB8UoVFPPY7xWn9 vwH917xn3fRsxiYumyofOE+AvhcUzkRevsyyCCdSTSJOT7aY75CDUgqPzeKpcT1Vjhxn qBKCy/ayImev2uUCGPz+mXbaTH/kaLBC88UQxsLmcnt1M8PHbQjHD5exoGybZp9NcWj2 uc6W9Z1a5al57hRLK5rPlb8W9VeQYxTns8Ooz6N+KO874aOxvIMg2aaILo6P5TR3Gu7t 8KFp6sjcBNOIaECHKc27TajBUaW9TTi+8j2NJ5WGc/12jEzkjnrYQfXsYmi9P2XOVUVB 75OA== ARC-Message-Signature: i=1; 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=0PsVlcJOpm94BibrRZUJv35B4n+fnZK+nkIRa5YTPIU=; fh=jDNO+ppVDdsQd73lMGk50eGmU+iHcr7/XpcaNx7RM9U=; b=lnZ7rnVqOVnO3eKPS7ymnwCUyAIoeWzPWiwGfep15Ycz8qSLXo47BNo3eRdonN7lhF gQxU4CRfEvrjSv7YO4nMr2PaUsN3f2Ezsj59mZ6N/+NEP+YvJHprYmzBHofm+NmVwQhe 63Y/1WeR8JQL7GDskHmAFSs/+/2HyWqaOzz3nZfYVLtJaZ/uBJvZMklNc/oz0Cjtyitx nFmlAKbA0l4oQFqnpKMSdSuFQkjOtPLebDuWp1zhnxD2syDORAMbwEkepr/Ta0cxYdgB +6Ooo9FlZ7r3qjdjGueXsVZD/MbpvqHtl/ZHa5naHA8m54VAIrthzvZOSnkTzfQvQl3o nTyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=vAKS2I68; spf=pass (google.com: domain of linux-kernel+bounces-23657-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23657-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id m17-20020a0cf191000000b00680642bcdb3si776130qvl.590.2024.01.11.05.33.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 05:33:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23657-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=vAKS2I68; spf=pass (google.com: domain of linux-kernel+bounces-23657-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23657-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id BDC471C23CB3 for ; Thu, 11 Jan 2024 13:33:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 49237182DC; Thu, 11 Jan 2024 13:33:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="vAKS2I68" 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 60BB01775B; Thu, 11 Jan 2024 13:33:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DAD1FC433F1; Thu, 11 Jan 2024 13:33:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704979990; bh=EmGMiLyuF8McNaUk0A0meCoizVF29JUoSFDudOh+384=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=vAKS2I68D2Sywf9Up0nX2OS+frd2mQKF+NZhSTyYbSAkeUsHJgC1v2Z3O9LRnA5rP NywmcrehgOdG56cF6YvStXcz6b2UMebmcH9qy3Peq8QFtDdEAUgHTGZVlC4YjA+xnp y+X1Yo8GDpm946G9D2hWbAYqLHlE3EIn/QsnFuCnL0OLnGIUuer/ch2UG5eMpXwcbI ZwwEVQrO9/v13SyXP6iqgEQN6WqHDYxt1iwybwqHBnw3Dhi1Mlh33ZLTJozOzFNaJI jGFY0pG3k947J9c1Kma4Q30dc5DQ2/HAnmTp5fIGJEn4Vezd06/Z1TOlqFeujbpeMk XU2XiElvVSvtw== Date: Thu, 11 Jan 2024 13:33:03 +0000 From: Mark Brown To: Nuno =?iso-8859-1?Q?S=E1?= Cc: David Lechner , Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Hennerich , Nuno =?iso-8859-1?Q?S=E1?= , Frank Rowand , Thierry Reding , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Jonathan Corbet , linux-spi@vger.kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 01/13] spi: add core support for controllers with offload capabilities Message-ID: References: <20240109-axi-spi-engine-series-3-v1-0-e42c6a986580@baylibre.com> <20240109-axi-spi-engine-series-3-v1-1-e42c6a986580@baylibre.com> <0c0b1954825dc174cab48060e96ddadadc18aefd.camel@gmail.com> 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="F30ei0E0aX6bxcQF" Content-Disposition: inline In-Reply-To: <0c0b1954825dc174cab48060e96ddadadc18aefd.camel@gmail.com> X-Cookie: Does the name Pavlov ring a bell? --F30ei0E0aX6bxcQF Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 11, 2024 at 09:49:08AM +0100, Nuno S=E1 wrote: > On Wed, 2024-01-10 at 13:49 -0600, David Lechner wrote: > > =A0=A0=A0 /* in probe() */ > > =A0=A0=A0 offload =3D spi_offload_get(spi, 0); > On top of what Mark already stated, and as we already discussed offline, I > personally don't like this provider - consumer interface for the offload.= The > first thing is that this is taking into account the possibility of having > multiple offload cores. While the FGPA core was designed with that in min= d, we > don't really have any design using multiple offloads in one spi engine (a= lways > one). Hence this is all pretty much untested. I tend to agree that we shouldn't be exposing this to SPI device drivers however we will want to keep track of if the unit is busy, and designing it to cope with multiple offloads does seem like sensible future proofing. There's also the possibility that one engine might be able to cope with multiple scripts being active at once (eg, triggering a different action depending on the trigger). --F30ei0E0aX6bxcQF Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmWf7g4ACgkQJNaLcl1U h9CpZAf/Tlp3sl12nfPE/B+KPrvvSbOwgr6rp8IbKgLqDiflBuVfRC7hUNK8eeVk O8hS/4cYUSZzi/UKEIS1n36hrWz8pVFsmMGnaY1oceEISrS6pQNl7KKxhtHzbv6I xAWftKist6PFor7KiWJk8XRn7ClDn4OWOl9KRzsQuov9tWC1iEthAfXtzsF8vwjO LHfGOfe0d4RGXW/UJqZ89NYlLv4ndfhmXpVt6+KI6L99xNDfqu7+zmhRuxiCZDIA t9jbE9gQoPPQAZqr3rPyF3Lgry+a3M/yJksJCzMmbwg6RV7oTw2suHFy3euOjMKx 4qZHFLGZYXHnsO6k3idEnYTN2EAEFA== =qyXJ -----END PGP SIGNATURE----- --F30ei0E0aX6bxcQF--