Received: by 2002:ab2:68c1:0:b0:1fd:9a81:d0e4 with SMTP id e1csp420959lqp; Sun, 9 Jun 2024 02:13:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVicB3hT0+Cx6Y4XjdXesw/0K9b42+0JhbYEFbMqjWm1zzKrMvgGM1XS20Zwf5aYzDI0TzJNNMJhLK2/63Dkz5TIl2nac5SMCuj6Jjb5g== X-Google-Smtp-Source: AGHT+IFV5lHbllmUGsTlmHnKeKBCLsJDGJgb8LsN+ANZxXmhO+VEAFjtr00oX8jLInDsecj+hMsX X-Received: by 2002:a05:6a20:8417:b0:1b2:b60a:a42d with SMTP id adf61e73a8af0-1b2f968d9f8mr7555449637.4.1717924421711; Sun, 09 Jun 2024 02:13:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717924421; cv=pass; d=google.com; s=arc-20160816; b=N6NQnmlEI5DG7b0/FPiqVrA8PZdiS781+wti4S5pJHUqrQ4BKdQ2BuK0d5jdWZv+F4 P7y19y0HYfcor68+l/OX0wE4EvY1jbHPQeGAY0UUKThk7KopyY/zK3I7qG6U5czY5foL hgpmHMRS3oGkhi6jEdZVTaYp4mMnO02fsZNSJ2fT6/vHTuJs+zLDxOgVUw4PWhWR7xU6 Qfua6oAtx3qRfEU9Z9G7WLfgAnCEtpHJWo418fTnV6tsw1qg8Ka4q+qip7yWrp99vAuM 0nWWFgp2JmDPPoY7B5M1dcpVqfrfD0rHSOPSEqg1Y4yksunMlJuDbF860FRTuTDEpcV9 7Aaw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=ilpWDjO9w23U3vKRUuDb5Z594w4bQBStvLSHdo8vAP0=; fh=JCh8YG+m0ZxkX07nMC0WpFd6UYCF2CPP4s/3aPnnzIk=; b=ZODVdtOa9E78zqlj6lUzC/TTdl8vnVBAVZkjXUXI5jtMKXWasFCChL6qB0s+djeoiV K2TqUVSvWPneZB/VkVRhvbyYnmFRCeWUseSqL3+RLTd6rlKyJ6bVn7mmKCef+RRwIjbU qw8JYSitDRzRJA4Jp7DeIefRg6J6l9uWF0wnpintGqbzxzIdZcRNwFGr1zRyZLAAXK3N PqN680GmO49EWtgX3OjZeTTrcuhQyt98zlB+HHu+IyVoPfz2tVOWQE2Fp5TElM5DN95A 5xj2XSMsIJmI9FvN9kpGCxnIItyjj5e8j/sYCErh/hKspMwUYmpToHs6Z93IGNTUE0u1 qQ7g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tt+XLVqJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-207300-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207300-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6e7b93e865asi2313053a12.208.2024.06.09.02.13.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Jun 2024 02:13:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-207300-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tt+XLVqJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-207300-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207300-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 95C9EB211BE for ; Sun, 9 Jun 2024 09:12:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4FB561CF9B; Sun, 9 Jun 2024 09:11:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tt+XLVqJ" 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 698CA18EB0; Sun, 9 Jun 2024 09:11:52 +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=1717924313; cv=none; b=CfNAGLr4save370DSoAgWOknjTSUnE2pNWPMlaBecENfGX3VkmkRs94ZkFpwtm4f7IaGqmCQdNzzosC2fmqKkRhgFEpHIddNJHqIhe6Ex527LJ6DMYYJ6iDmtJuraH6dZzsW4EMdvlq4DeEEyco9Nja5KankpQp06+BdYuj9xsg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717924313; c=relaxed/simple; bh=kgjku6FATuzmd3oTbhIWmgpMoIOW7gl+iFeGQByFuzU=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=VKRa6+uqjisUALCqVoOEiZ8tEeHNR4I1Ku4+//VyUVbyPjHPkezBsAR+Vw3IqeWiij1DGTFcKoNqckulUlzcBDBUcAWjX/NVtKde66hGy5ObMNaocaBdWyWyKfXzWplOeGnGQKEw/Pp6MuFNm9Ujq0/rPVVM4c/HybxjnM92jfI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tt+XLVqJ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5C81FC2BD10; Sun, 9 Jun 2024 09:11:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717924312; bh=kgjku6FATuzmd3oTbhIWmgpMoIOW7gl+iFeGQByFuzU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=tt+XLVqJiFVsfk9un8EZJaCsZWR9sMh8ermfFn7LCgW8utyGlk16NkSB90Z2CEl3s bprIZVenZs1hc61Tx2EqIMfe33emJ2X61HRX+CEAGeRREnDUoMEpnR5HMSdzGEU68p Mu30yVoOmJAcKq9UrFNY3y4AcOO03lRoEbx8CERCItK/zFNp9RwMMM4R5BDUAkdovs 0dswEiHb+vofy/lw0maz2e9+R4oD8t8lv8WdnAVEnwOVx6fG82ESh84LTqZI8rTmNO pce4JPEcqZjyX3/3xKZL4h6wH0cCEIK/zFLSNdXQ068czwu+0VkqfbIC4vr7rYuQrh Tb3oc9cOtnBZw== Date: Sun, 9 Jun 2024 10:11:28 +0100 From: Jonathan Cameron To: Marcelo Schmitt Cc: Nuno =?UTF-8?B?U8Oh?= , David Lechner , Marcelo Schmitt , broonie@kernel.org, lars@metafoo.de, Michael.Hennerich@analog.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, nuno.sa@analog.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 4/6] spi: spi-axi-spi-engine: Add support for MOSI idle configuration Message-ID: <20240609101128.4a003446@jic23-huawei> In-Reply-To: References: <0e18b3aa83a62103b0f06ee516193c03f80abae9.camel@gmail.com> <04b1296ff98a0accbf962a4a4bafc2e85a9869ae.camel@gmail.com> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.42; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Fri, 7 Jun 2024 11:40:23 -0300 Marcelo Schmitt wrote: > On 06/07, Nuno S=C3=A1 wrote: > > On Thu, 2024-06-06 at 18:31 -0300, Marcelo Schmitt wrote: > >=20 > > ... > > =20 > > >=20 > > >=20 > > >=20 > > > When is a driver version check needed? > > > Yes, older versions of SPI-Engine won't support this, but the patch s= et should > > > cause no regression. Even if loading the current ad4000 driver with > > > older SPI-Engine HDL and driver, the ADC driver would get a warn (or = error?) > > > and do what's possible without MOSI idle feature (probably only be ab= le to do > > > reg access) or fail probing. > > > =20 > >=20 > > Maybe I'm missing something but with the patchset we unconditionally set > > SPI_MOSI_IDLE_HIGH. So if we load an hdl which does not support it thin= gs will > > apparently be ok but it won't actually work, right? If I'm right we sho= uld have =20 > Yes, that's correct. >=20 > > a bit in a RO config_register telling us that the feature is being supp= orted or > > not. That way we only set the mode bit if we do support it... =20 >=20 > Ok, understood. Will do it for v4. If you don't have such a mode bit, you will need to add a property to the dt-binding. Or a suitable compatible. Nasty, so fingers crossed you do have a capability flag to check! Jonathan >=20 > Thanks, > Marcelo >=20 > >=20 > > - Nuno S=C3=A1 > >=20 > > =20