From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5D6CDCDB46E for ; Thu, 12 Oct 2023 07:57:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235326AbjJLH5z (ORCPT ); Thu, 12 Oct 2023 03:57:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235233AbjJLH5y (ORCPT ); Thu, 12 Oct 2023 03:57:54 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFB48B7; Thu, 12 Oct 2023 00:57:53 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2379FC433C7; Thu, 12 Oct 2023 07:57:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697097473; bh=YKBR3xSz6UA4cpabndWQc3mJoH82OaQw8/MCmfrz3sk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=fp2KOnFzDs+K+eAXWK2HmxcXX1IErO5lkvnqDqOkbpdHsf7FbecYGleBVXTtphuQn bxS6wdSqKZyYT5Fl08sk07lGZuCuhQjJ+Kc3YfF1L8BUE40AkMglO5dkD1NKTaiFj4 WH2f3QmmSYCv/P7CLPRxdERUySwb9dgIRIDkhPY25oFa+8kIyQEn9EDDZkmgge1suT 5UfN9MlViEVAcXgibLEVkMfGUaL9xDAxHyetYg/B0pMYLQFp0M3DunfFCgWyjLCHJt yX6EByUDDrOMjqhlYMk8pE34fROt0LEb19dwK4Ka6wo+vq+XaiEfN2215tEBXSyg6p XAeqUotK0sEgQ== Date: Thu, 12 Oct 2023 08:58:04 +0100 From: Jonathan Cameron To: David Lechner Cc: linux-iio@vger.kernel.org, linux-staging@lists.linux.dev, Michael Hennerich , Nuno =?UTF-8?B?U8Oh?= , Axel Haslam , Philip Molloy , linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 1/4] staging: iio: resolver: ad2s1210: refactor sample toggle Message-ID: <20231012085804.3890242e@jic23-huawei> In-Reply-To: <20231010-ad2s1210-mainline-v5-1-35a0f6ffa04a@baylibre.com> References: <20231010-ad2s1210-mainline-v5-0-35a0f6ffa04a@baylibre.com> <20231010-ad2s1210-mainline-v5-1-35a0f6ffa04a@baylibre.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org On Tue, 10 Oct 2023 16:12:33 -0500 David Lechner wrote: > This refactors the sample line toggle in the ad2s1210 resolver driver > to a separate function. The sample has some timing requirements, so > this ensures that it is always done the same way, both in the existing > call sites and any future usage. > > Previously, the sample line was kept on for the duration of the read, > but this is not necessary. Data is latched in on the rising edge and > after the specified delay the state of the sample line does not matter. > > Signed-off-by: David Lechner Applied.