Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1730603rdd; Thu, 11 Jan 2024 07:41:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IFrQwdP1TSDR6u6ydjXaX4yXF+CJg7cVNXJWYO5vNZct8lmzvzJTU7d0bbHLFNnFxrJWNFl X-Received: by 2002:a05:6a21:1a8:b0:19a:4e80:2152 with SMTP id le40-20020a056a2101a800b0019a4e802152mr6350pzb.83.1704987689129; Thu, 11 Jan 2024 07:41:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704987689; cv=none; d=google.com; s=arc-20160816; b=G8yGschkVqyhyB540GG2lWUlnPpLFqjN6+51beb+Xd4gwl6o4IdlvG+u74D3s1yDG5 wHwX58dvXzCSryZ/wqimOjQGRLGQLycVa7f/2eMefG4zKR9lUhw68uIwQm/GP3Xmw1G7 B+DPW6hoXt+3ehNxZwaax04wErDb0ftxoLTnh7xiMEsZDgyHN7N4RZJqZAsSycBBdnIB hF6vHtb823b4dlDmuz0KIRDAh79S9oNifOc8CJYe9+yE/CZ5+Alb5GJmJpnDqzsGFtuq LRCOjb/kB2oBg+gkWOpxvWW5o5EOFsI9y07nZkpHMU8QfAXn09EH9yeOV6xYxJG+XpXs 8gog== 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=ec2MWNR95rQrBx7ChqqY0NN4ZsZmpqqTnoX9MBjREsM=; fh=jDNO+ppVDdsQd73lMGk50eGmU+iHcr7/XpcaNx7RM9U=; b=mk0PHwSW5iEjgpkmpJraeFtL7+lwkHrzedlvfE6+XkTEz4xrmiGjqhI+tfl9kzm1Ha iwEON5jKhBNFnHyJ6kyn4iXW2nab0Zy1h5uk6HYKXgsn/5v9R4+otAThEvFW9xenJeLS yqmIz4giSVJj8nTedix8V0zW8BMnvksR+OpQ3/WrpgjjnwNupqLNLukfpagFyKmQbjkn GTDjUdqeTojI2sktIMIEjl5BKrlZEHG1q9O5yTXExg76bRutHvUnkwGra5UegJBdBXBw gWLy6JWX1Z+6f16t1lKmNLf19SHiulqYhHIB2ZMk+pJkt/YasOmAhmIBwCU3dBGf8wr5 6I9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=h7XPIjZS; spf=pass (google.com: domain of linux-kernel+bounces-23805-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23805-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id f7-20020a056a00238700b006d9ab8c2a93si1331049pfc.56.2024.01.11.07.41.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 07:41:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23805-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=h7XPIjZS; spf=pass (google.com: domain of linux-kernel+bounces-23805-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23805-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 47F9128552C for ; Thu, 11 Jan 2024 15:41:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B40964E1A3; Thu, 11 Jan 2024 15:41:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="h7XPIjZS" 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 D0C294D127; Thu, 11 Jan 2024 15:41:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC6B0C433F1; Thu, 11 Jan 2024 15:41:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704987677; bh=ec2MWNR95rQrBx7ChqqY0NN4ZsZmpqqTnoX9MBjREsM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=h7XPIjZSKqSBL24Lqm1sxksD7sbgJUHj0zdYTdKP+A8dtMoUGOVY0DJQu2C+KXZZt Clrv4pUaATGXam4fXMuVYD2DyQdsqiy1lRXVa6qb9ba+UlNgOZNz/Ov0FWIQILIsY7 eQ0QmR+OspwwivEyPQFKbJxHfrUX+guQDvnsnrWc2R5VUhIoCdaJQuNZley+WKurMa yOlhlmLmf6KoMDOK9kv+TV5exUGqWnHjU2xxdqKj6JsX7qNGz/XFMvlbCYogDV3uJd e/lUJ181P5eAWUOq37ofn5iSjY1zUNlD+BIVjjePOdQvkkDFv7uDQDnaLUkKx8g5Re zHKQDdO+aZFoQ== Date: Thu, 11 Jan 2024 15:41:09 +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> <5b62d742fa789e9860781b6f5f1fda4f583b0e5b.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="5fy9KoLsuSv9gV8C" Content-Disposition: inline In-Reply-To: <5b62d742fa789e9860781b6f5f1fda4f583b0e5b.camel@gmail.com> X-Cookie: Does the name Pavlov ring a bell? --5fy9KoLsuSv9gV8C Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 11, 2024 at 03:11:32PM +0100, Nuno S=E1 wrote: > On Thu, 2024-01-11 at 13:33 +0000, Mark Brown wrote: > > 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.=A0 There's also the possibility that one engine might be able= to > Fair enough. But wouldn't a simple DT integer property (handled by the sp= i core) > to identify the offload index be easier for SPI device drivers? We could = still > have dedicated interfaces for checking if the unit is busy or not... The = point > is that we would not need an explicit get() from SPI drivers. It feels like we'd need a get/release operation of some kind for mutual exclusion, it's not just the discovery it's also figuring out if the hardware is in use at a given moment. > I'm of course assuming that one spi device can only be connected to one e= ngine > which seems reasonable to me. I can see someone implementing this with for example the microcontroller cores a lot of SoCs have in which case all bets are off. --5fy9KoLsuSv9gV8C Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmWgDBUACgkQJNaLcl1U h9Cg3gf+NhvfHRGy0X1W6CWSGPIFhafoskakda+cHtUJRILWspChnBvvbTC/LIDg zJTlReSwlIUo4jgarKzB/9ly9DI72xoojbI6CTabmAP/ALZVN+oGg9y9N2wuO6Fb 9Y5t2BPK6Inlb5DV1rhhqTmQBiYaFku6IcNAOO2dMKCTQ3ZSE+xpxNjC9RcAF4DZ Lad9xm6xr2kZ7wRVIzkBJm1dWE+HXWK8EYbp8IgM9nqAhTAx6Qu4mL8WtQD3u3d1 FWvQmmjnlX9Kqcm6AX7sLTWVX/vdjRKiHsDZOMw7zpVXjUl+NReshASo76HiP3RY z/mLbFwPQlW2omxzDC+0oThIFe8gEQ== =32pw -----END PGP SIGNATURE----- --5fy9KoLsuSv9gV8C--