Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp1054135lqt; Fri, 7 Jun 2024 06:58:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU7EcE0NSkBXnpL5tZrWdZv1F9zdzlK8q7fzWEcNssF0KUO61Wa996TGidspdAIDDBlC4Rk/5+TofNm5/z7BI4rdq/+oLZefygzvnx4vw== X-Google-Smtp-Source: AGHT+IH3QMES5YYfRgZTv9YeXyOQ0pyeiHyj04hswCxpF2JfCuljqOXKF0msb1UW6r/r4+ybVaVB X-Received: by 2002:a05:6a21:32a7:b0:1b4:68a2:908b with SMTP id adf61e73a8af0-1b468b1d6b1mr907361637.14.1717768731298; Fri, 07 Jun 2024 06:58:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717768731; cv=pass; d=google.com; s=arc-20160816; b=e5Wf5g2L/kgdnbQK/H3ZxVnu//z8lLYRFNzh8tPfHsrufiUazJVhzad2Qf9gxnGcMk 551Z7pvIBmZCdx1l0iWUQyEHIyP7v5LauG8kWUe9deXT2gT7F652t0tTzyhjVQ68f29E EhSc/l/6HAIFqTSMFmMcqFAiWfdpIq+gESNzHX9Gt8CorPQsvN6bkiYvfN4NqzS8MzV8 OsLzVc4KUMseHxyGQktudRl8tcizulR06APeLxX8TbN6csHaZjqqWpSKCRipJhMSlrX3 Qb8KBW5ywkuDuUxm1AI5j1k6EjREunuxThS7SCgsdfUw3EOAFxv9puATmehXtGC6uUSo /VOQ== 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=J3Q2NHWabKrL51VoOEHdO3g83jYnFH97tx0Ovxxu7GI=; fh=z1hs6onLveBtdnEH4IFh9TCU6JIiH3qe6PIKhtXsQfw=; b=FeEPEfIri8Ns698ExCDtBpVFpWxWbWczJrxYMEDz4mI9gA6Hbt58udySL23QwHB4Dy GkimssPIIbzeU71uG0fYvo38aThXyQRpCO4YyihSxk603FymAhLdSlOcXYrzoUZDyQIg 8HlAYi6T1jUxZ1SwSmktfZlBBCEUpcorLG8rpCSlR+BfQGszhjxsN1M/JrqdLnsN/PBZ d465GshJFUCH4iNeMH9SrqIRWFfFWFQW2VUPilQDesgOcgjartVWJiF7pO/g++JNJB0K CG2IcG0eBnR05eBqsYdAAUvDMDU2J3+qMHn6MPQVZWmCcf83H3KF8rExh0PtMqGcBEif ik4A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CMb3bxd7; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-206195-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206195-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6e553e3adc5si343226a12.615.2024.06.07.06.58.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 06:58:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-206195-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CMb3bxd7; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-206195-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206195-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 477EA28F9A9 for ; Fri, 7 Jun 2024 13:50:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 06A02195389; Fri, 7 Jun 2024 13:50:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CMb3bxd7" 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 25C1C192B89; Fri, 7 Jun 2024 13:50:08 +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=1717768209; cv=none; b=DDejizQtjqs8R/cCD7B5HWz3eUxJ3Scv1TeaLFalAM/gPbem9axnFupKFLRHJ49YgUe3rUNm3HLADqy12bREN5c2S3YBAXwWiIQWj8HZ3QROfKwANkdVGBRB+V6FqZOCkSKhl0a/iSqDCzDaMy8XTd++fqixaV+9RBXFVm3SbWg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717768209; c=relaxed/simple; bh=J3Q2NHWabKrL51VoOEHdO3g83jYnFH97tx0Ovxxu7GI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=oUzT9sNG36DQBaxsquua8ufMsN+znpxjyn3UKVIBEQPvbOoE/XFJ5AExgIk7sUjEXltsZcFwOsv9UlZcwVOqaw7tRtzPvVfnDgyoH9UCKHHyypKE59NXofDMvhqv7UIjrHITErlBPVbtEMIK9R8JfpNmSgpXq1Z+75vhNw5ZwPs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CMb3bxd7; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9C694C32782; Fri, 7 Jun 2024 13:50:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717768208; bh=J3Q2NHWabKrL51VoOEHdO3g83jYnFH97tx0Ovxxu7GI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CMb3bxd7bDkhsePcksW5TwgcfxMFBEhFom1G4L8II8kiDHynqRja3h3+no2W9jneu 6KqsOoUt0hnn7ejSwBjuY/U525zM/eI1bfGD2lzsaRLWGbQgnUetNWpglVAHCD9XJO nvNS93ZO3lyRfTig/7gCzOfVgPf0ybkU+lEEYiony5F1zp3hcDrV4+T0L7UK3SlLmw md2FzNK+gjyRHUfixO01066MqqMwvEJSJGVS679KleQf4khYw6ozQPeyQtrPvgSTzB WQgYLS8EN8hMLluw5n1gEWEtM6NzsyQItvc0mx0QJraWMbfywRQQ1S7TeTA7Ic+hSD hvuL/zD+Xp5RA== Date: Fri, 7 Jun 2024 14:50:00 +0100 From: Mark Brown To: Marcelo Schmitt Cc: Marcelo Schmitt , lars@metafoo.de, Michael.Hennerich@analog.com, jic23@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, nuno.sa@analog.com, dlechner@baylibre.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 1/6] spi: Add SPI mode bit for MOSI idle state configuration Message-ID: References: <0a716b10-0ae0-425f-919a-ea5d8b7975b6@sirena.org.uk> 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="qI6iHgwpg0f9g5j0" Content-Disposition: inline In-Reply-To: X-Cookie: Your love life will be... interesting. --qI6iHgwpg0f9g5j0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jun 06, 2024 at 04:57:52PM -0300, Marcelo Schmitt wrote: > As far as I searched, the definitions for SPI protocol usually don't spec= ify any > behavior for the MOSI line when the controller is not clocking out data. > So, I think SPI controllers that are not capable of implementing any type > of MOSI idle configuration are anyway compliant to what is usual SPI. > For those that can implement such feature, I thought peripherals could re= quest > it by setting SPI mode bits. The issue here is the one that Richard highlighted with it not being clear exactly what the intended behaviour is. > But yeah, it's not that evident what this patch set is all about and why = this is > wanted so I made a wiki page to explain the reasoning for this set. > https://wiki.analog.com/software/linux/docs/spi/spi_copi_idle?rev=3D17176= 99755 > Hopefully the figures with timing diagrams and transfer captures there wi= ll=20 > provide quicker understanding of this rather than I try to explain it with > only text. It needs to be apparent to someone looking at the kernel what the code is intended to do. > If you still think we need feature detection for MOSI idle capability jus= t let > me know, I'll implement what be needed. If the devices actually require this mode then we can't just randomly ignore them when they request it. --qI6iHgwpg0f9g5j0 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmZjEAgACgkQJNaLcl1U h9AqnQf/Sw3+3u1jlifM436XxwiJrI915dgJkJtO8XgDa7yq3BbchNaCXyysgWcw F+1obK5dbZTYucs9pQTRZH8nEBaSp9L0gig10FOl7yCn/9lU38OsTdoSaLdpIRrR 3R8I7+cvb/MSuXtEr//60B/FdwqJWIr6MrcGUthcfaLmqCKG0hAhnS6xApTMe7Vm nIr34BLwguhZV4XLYrwDQyHykrUb3AXE4ZjeRl1KoLkBLFnIClA9xtERhChfBV6w cVigAm+47zM9rFDMMEVpNSJrvxKVsiBHLCPQeb2s1PV6W6zFNo92DvbWJ25JHorg 1DTAfQye0KFPWH3791yHviAmyx2biA== =oZkx -----END PGP SIGNATURE----- --qI6iHgwpg0f9g5j0--