Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp263867lqr; Wed, 5 Jun 2024 05:37:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWXWZxYtu6BTMXv4nVpgV1FTMS1fYdMFbQhJBq8K4xxY6tVK5OUlWC3STjw4sK8LQwzQlC56QRf809DuAx6YF24al5q4g5tdSCGWLAXGQ== X-Google-Smtp-Source: AGHT+IGHFkcty6gEYGKBsBzlOY625M+Aavcl46NtQFCifoKuhdjxPo0hLrD42Alr/FFx71t5+U84 X-Received: by 2002:a05:6a00:1acb:b0:701:e698:7c12 with SMTP id d2e1a72fcca58-703e593d245mr2744420b3a.5.1717591041853; Wed, 05 Jun 2024 05:37:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717591041; cv=pass; d=google.com; s=arc-20160816; b=PMqWuEUJ9tBapHJn58YhyNjPxoE7Rxzwg2mad9NDJ65kVBmcfbjETzralNC08z79XV 4qctCluItI03ns06kIH7TPc+gjy+p405CCeSsHSR1tNIjY42XmlGhmRwcaEQZ/8Gahr3 GkFOIojCaIOiX5amhavqjbMpM/JFSebG3GfR6gLtIGUPFJh4nI9T9EHC+H8Ve0wHrHLY 7CecKANp/voLerCvMXNyaAJjXJInvPF8562PIE5jlqkalVNYCsQXJN9ql0xMU0+u+iUJ 8EoSJJG5CY0t6z6lvzpggN/bwBYGvg7rGprva9P0nT9Z5qlDdI9XPdVR9xbTa7ozAO+W 0wAg== 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=MCVCZnMal43RJ60wSIoWs9w1n6FSTpBajz2jqZM8gq0=; fh=Bm2atRzMZ3RvsbNqJx2qkRy6EfWY9t1PX0h6eRa12/s=; b=OE0HEX566tN8gOxjeaLZKpVcFbCUi8Tvi6LMGcYpAEviP/QLYSw/WqTC9f72ID7LI7 6ZcOn7YBiEeqNz2kvU2a8cBJSc/MPCRI6LTLXFKJ1XAhIEclx7sK1fySnc/nw8EyrKtQ /wZJYsvEgUyVKcJXEjYCi/DFv4N3M0wYl4qWQgdvlr6q0pz3a1hETBQxutzlV1OXEGzJ QL9QkX25LdAvfxDvKZe8Fgaxc1hVokZWi0IWyLrB7eiJevKVqWCxZGWAO/+5R4YpY+Y3 kUZ1vP3ZOYjikFGPzlZJH+FhPPL4qWTyC4ZLxZMgRYtNRMRiZ/vnrD4HVZ/exuDsmdPZ eQyA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gk4Guu8K; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202450-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202450-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 d2e1a72fcca58-702425e2bf4si10155937b3a.27.2024.06.05.05.37.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 05:37:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202450-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=gk4Guu8K; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202450-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202450-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 18B1428CF8C for ; Wed, 5 Jun 2024 12:28:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9B8B61953B3; Wed, 5 Jun 2024 12:02:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="gk4Guu8K" 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 B6FD51922EF; Wed, 5 Jun 2024 12:02:11 +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=1717588931; cv=none; b=qy/TT8SZ0L6H35Tx+ufKvt6pU0rXqrV20/8DNtHxYBHkXUbeWU7/FxXIQMPHwHma0vx8OcTBxa8chv7snwoUgD1FDxFiu2QO1GqPS7KWBrgHDTK/6LJKRZ1lm5vUT/JD0CJwQ+C+alatMnP5w7wgYnrXeIoXPNTf3lZmSg37n9k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717588931; c=relaxed/simple; bh=/JnJk3u3YJWebePHGZA49ncRq+3Mnp8aSYns2ZppWUM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=TfAuU1aG4/BZ3hmw/ZswQBoWNT3XTh+1lpOV3TjjjPsDjsUZXzXZsEICRxLZCjtVuFFakD5SeEL4f8+qzpMLLmC/Tr9DZ+aIV//E814kGEKi8bdsVerAhV+SoTBAwX2lchrN6PgJZrNTNc3Yd1k/yk/+eQ4wzPe27T6IlvPVxj4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=gk4Guu8K; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 17BA8C3277B; Wed, 5 Jun 2024 12:02:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717588931; bh=/JnJk3u3YJWebePHGZA49ncRq+3Mnp8aSYns2ZppWUM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gk4Guu8K+DqS+cUPtAVn0hZwmjBBtmWB4X8YB5gJ42F8B2oEr1dTG2IzPg5oY25uT YqEYVs5Fn3dJkCMhGU/1cPVkGL06iLW//ylGxxZhy/BLApk4SJrPS77naHX3eCfe1Q lV6nXmOcl3xcRE26+vcXqlfJ7MCb+EAVpaqeAtABFMVJO0SvbS7GIXGiGQlV8GeVr0 5lDycKUi68A0QaG1AnwyAqKruPW+eaiMrj/bHN0QNZvb6c3Z4z4WloxwearRbEH2Gx JH3pXxBUiLj4MaA8dJ0ghoS34R3r95XQ59sMsoUVxndKyhLzH8mTIWiiJkxGy8aDlM KvjriudQXlYyA== Date: Wed, 5 Jun 2024 13:02:05 +0100 From: Mark Brown To: Nuno =?iso-8859-1?Q?S=E1?= 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, marcelo.schmitt1@gmail.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: <67f94cfb-6a33-4390-8032-a942f5f7b944@sirena.org.uk> References: <21d3314355b43ecd6acc42f9dfedec501418332d.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="mHnYXajvsMh4YQv8" Content-Disposition: inline In-Reply-To: <21d3314355b43ecd6acc42f9dfedec501418332d.camel@gmail.com> X-Cookie: Simulated picture. --mHnYXajvsMh4YQv8 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 05, 2024 at 11:14:33AM +0200, Nuno S=E1 wrote: > On Tue, 2024-06-04 at 19:41 -0300, Marcelo Schmitt wrote: > > + /* Check against conflicting MOSI idle configuration */ > > + if ((spi->mode & SPI_MOSI_IDLE_LOW) && (spi->mode & > > SPI_MOSI_IDLE_HIGH)) { > > + dev_warn(&spi->dev, > > + "setup: erratic MOSI idle configuration. Set to idle > > low\n"); > > + spi->mode &=3D ~SPI_MOSI_IDLE_HIGH; > > + } > Should we assume such a thing? IOW, should this be treated as a warning o= r a > real error? I would assume this should be a configuration error and retur= n - > EINVAL but... Right, and the error message isn't very clear. --mHnYXajvsMh4YQv8 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmZgU7wACgkQJNaLcl1U h9A0/ggAgTnq3tUcFs/WHjsTmKen81FYend6Evg4EOrYaNr+oZYdmcjeA66KPgrD vYwFJb8WGJFeUKw0f5BKIUMhaKfrPaQWbnNWcgd/PijcnpVPUpeSmcZhFrqyrBh6 t55SxVxckcatxKdiNFg4jkAA8VrVQe+kSMcldyEfoj57VBURiL/KDMDHZX8Dibe6 aqfyos5JxZgkSoQtKxPBNCLglqNAxDn2EXSkUFYychLsWu3YiDJt9DegA8ueq4XF vO5kCGFX+koWdOF8YS0a1NmDs/Stt86OzpJNTfwoFrnJtsbOtim71pkAM/aZsBgO 7Jqoa4uiUvDtAWt0aOGNJw7jHvKPag== =Y7mf -----END PGP SIGNATURE----- --mHnYXajvsMh4YQv8--