From mboxrd@z Thu Jan 1 00:00:00 1970 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 3A9395CBC; Sat, 30 Sep 2023 14:35:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EBCD9C433C7; Sat, 30 Sep 2023 14:35:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696084546; bh=wrTl3YZsfTQZ6DL5MDfDMrDyvXvAClp5jEIT1WDYOoc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=TivNxhRtxz9tV+llal+tEV44Uhb+Wla9YXA3W166fDeXLFWpedWQMTab/IL54D2HX gzE8HZA8H60t5PWO+Zx8EcfvsWOcqDfqv7+e5D6GsfQIcsT2ed/8YD2XeH/T7Y9tSc UPqsVX+8dJuFN7C8Qrt63vQddUIlbUR3nuBORnIrFvsGpZXLWZaisVbb1r0EJashrf rhOgVZSuMtROlaDh7ByTTdUjPNiz/asv+MA9jBGhIS+kGIGPEogt3tPkymX8Ow5miF ATpALcG0L8iPs++khJYTGQsZ+wyhn0wwEV6oMSN3/nJjjCCMOxDRfEEukFf2xx71Pg mUe0wRI4e97HQ== Date: Sat, 30 Sep 2023 15:35:44 +0100 From: Jonathan Cameron To: David Lechner Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-staging@lists.linux.dev, David Lechner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Hennerich , Nuno =?UTF-8?B?U8Oh?= , Axel Haslam , Philip Molloy , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 03/27] staging: iio: resolver: ad2s1210: remove call to spi_setup() Message-ID: <20230930153544.711e4bce@jic23-huawei> In-Reply-To: <20230929-ad2s1210-mainline-v3-3-fa4364281745@baylibre.com> References: <20230929-ad2s1210-mainline-v3-0-fa4364281745@baylibre.com> <20230929-ad2s1210-mainline-v3-3-fa4364281745@baylibre.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Fri, 29 Sep 2023 12:23:08 -0500 David Lechner wrote: > From: David Lechner > > From: David Lechner > > This removes the call to spi_setup() in the ad2s1210 driver. > > Setting MODE_3 was incorrect. It should be MODE_1 but we can let the > device tree select this and avoid the need to call spi_setup(). > > Signed-off-by: David Lechner Applied and pushed out as testing for all the normal reasons. Thanks, Jonathan > --- > > v3 changes: > * This is a new patch split out from "staging: iio: resolver: ad2s1210: > fix probe" > > drivers/staging/iio/resolver/ad2s1210.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/staging/iio/resolver/ad2s1210.c b/drivers/staging/iio/resolver/ad2s1210.c > index 3f08b59f4e19..8fde08887f7f 100644 > --- a/drivers/staging/iio/resolver/ad2s1210.c > +++ b/drivers/staging/iio/resolver/ad2s1210.c > @@ -683,8 +683,6 @@ static int ad2s1210_probe(struct spi_device *spi) > return ret; > > st->fclkin = spi->max_speed_hz; > - spi->mode = SPI_MODE_3; > - spi_setup(spi); > ad2s1210_initial(st); > > return 0; >