Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3257839pxj; Mon, 10 May 2021 23:47:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNK+7DbdzRRsVljlOBxyDd7Zj2o7G4aJxGE8ZW/u6mXM2uIDn6v4XtEx6NOKU7wobXjM4q X-Received: by 2002:a17:907:990f:: with SMTP id ka15mr22688661ejc.132.1620715662782; Mon, 10 May 2021 23:47:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620715662; cv=none; d=google.com; s=arc-20160816; b=EIx30ai2u9BOOd7fc2YEdR085XMUdVlMUERwSTG7R535GAabIt5aWrfRjzteXn/KTX Jz+UbXL+D5rlLOAfcOiY8fc4IhELv2nMGcXUd/tUNTvX0zE94iDpmHI7a6yr5DiDOXzw m/sZ0tnXjQc9YCeEZRk1meozFf+hOLjtOzzAwAwi5uau+HJjdJsWB/xVQqueVVVzS2MR 65jU9HCMvUigo+tsYAD6qAX9CmqNmgHH36sadfS2CFxltlOhODKAjYcHQdR5Sv5uZp9n I6Ji+L8DL44/Mhw5/b5s+SdssMx39CqaGbIuvd+YHtpm5gYPq7vJ8kkchrcg0126CGyc 6B0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=R8EwDQcP5dXlqw1ZUG9G8NrXJImpox+QEmMv1x2YmLw=; b=M/j48rkuwyhVJ1alNiaJBZ5kiv0e6QDjAdeonixX2aLkCYqFON9qITv7VZGoDTENZM RY9DGK3ANH1lpATYz0deC//EgMDmuTDs0d5Dq12b1FoknAAMmfHv2vtuuVyklz+ctroE 8qYq82SKSHnLyCbaTjmghf7wIYRODdMM+U5tTpMs88FfpqxX+dSfQKWc8r+es3BDLV6e crh8FiH4rPAVS9CcfhAXJZsZjHEfupYlq0htfl/sjHTtZuFHqTMWCt6HsUfVGS8hCW1L CA++A/4DHUyXhCMg+sj5dv714z91RCHAl0PuLP8D7Rt1xx3O2udV5PjjHhgfU+QQX4wS OOTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mryw+plk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u12si15015581ejj.721.2021.05.10.23.47.18; Mon, 10 May 2021 23:47:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mryw+plk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230271AbhEKGra (ORCPT + 99 others); Tue, 11 May 2021 02:47:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229807AbhEKGr3 (ORCPT ); Tue, 11 May 2021 02:47:29 -0400 Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A66DC061574; Mon, 10 May 2021 23:46:23 -0700 (PDT) Received: by mail-pg1-x52b.google.com with SMTP id q15so10828303pgg.12; Mon, 10 May 2021 23:46:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=R8EwDQcP5dXlqw1ZUG9G8NrXJImpox+QEmMv1x2YmLw=; b=mryw+plkFx+G8e4zTqB+dXbCQ5BV5naDf2dQTtuzgrSZhSIhFJFuqX+S7ikJu8PAUF U1Ofu46wB1goCdFiaEecWS6NcjiMM86BJ2H1LjA3JAxT+jHJg8rJ1ufHwzAlAm6MlXaT LWMoAp7XOo8DMJeWLSzsXwWmV33OO7gamDElnUROkK25MHs5aiPgM+EEw9zFTEKLRPq4 G31dLb+Vtd0hEehwnHAJ7CGazlGMHeJjTrbfaJFXgPDPs/5WPt+SXIXn5zmoA1c5mTRK jvwVhHZj/OwTA/NY5u7YE1GmCosHowSUJeJ9Urt4ZFD74VSKIuudQnjtwNLAdVzELwlM +RYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=R8EwDQcP5dXlqw1ZUG9G8NrXJImpox+QEmMv1x2YmLw=; b=s5sf6RcovKJIW7DnOWJPQL4JnL6Hgv/IT3wv70MOa+6ChWbt4B+dffi6capruwn4hu mM9z+xvglO88MI/AvbUppj3vGcL0qWqp7QaPaUbx9gEOE8/037DXKVpfTi8B9FNcRogX n8XR5p+uBT1nfqpH2BA6NFe1d+kpKXz8Ze7MJUBau584KjWaC7xNxbLoQDaRoLUxRA78 Vb24+YDdyelbkZAKoAuH8GKPft2LklC3PZiumPtOl2CoGcS34cCEVVMb7QAYKQgfLJ5i QqHWqrVIYKbGbJcxjwcNOB0NWHt9LFpoDu4zkEXpyZ0NjZ9ndFz+LKOvZt3KZIYAxetn f3DQ== X-Gm-Message-State: AOAM5327FuUFwg4cDlqj7jbA7nzBKlW8QNNgGaykKQAP/3ZzbGkP9NGt gBvYTaHyYPWJToC9TFws4U8xQnd3iHDImemHSjM= X-Received: by 2002:a63:b243:: with SMTP id t3mr20241621pgo.253.1620715582970; Mon, 10 May 2021 23:46:22 -0700 (PDT) MIME-Version: 1.0 References: <20210510125523.1271237-1-aardelean@deviqon.com> <20210510184927.00000e6d@Huawei.com> In-Reply-To: <20210510184927.00000e6d@Huawei.com> From: Alexandru Ardelean Date: Tue, 11 May 2021 09:46:11 +0300 Message-ID: Subject: Re: [PATCH 00/11] ad_sigma_delta: convert all drivers to device-managed To: Jonathan Cameron Cc: Alexandru Ardelean , linux-iio , LKML , Jonathan Cameron , Alexandru Tachici , linux@deviqon.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 10, 2021 at 8:52 PM Jonathan Cameron wrote: > > On Mon, 10 May 2021 15:55:12 +0300 > Alexandru Ardelean wrote: > > > Well, for lack of a better title that's what this series does. > > It merges Jonathan's patches from: > > * https://lore.kernel.org/linux-iio/20210508182319.488551-1-jic23@kernel.org/ > > Patch 3/3 was a polished a bit with my comments from that review and also > > to use the devm_ad_sd_setup_buffer_and_trigger() function. > > * https://lore.kernel.org/linux-iio/20210509114118.660422-1-jic23@kernel.org/ > > Added only to base the conversion to devm_ > > > > The AD Sigma Delta family of ADC drivers share a lot of the logic in the > > ad_sigma_delta lib-driver. > > > > This set introduces a devm_ad_sd_setup_buffer_and_trigger() call, which > > aims to replace the 'ad_sd_{setup,cleanup}_buffer_and_trigger()' pair. > > > > This helps with converting the AD7780, AD7791, AD7793 and AD7192 > > drivers use be fully converted to device-managed functions. > > Almost perfect code wise (just the one bug that predates this series I think). > > Couple of notes on series from process point of view. > > 1) Fixes at the front. Makes for uglier series but nicer backporting. ack > 2) Sign-off on everything - even the ones from me that you didn't change. From DCO > point of view you handled them (passed them back to me ;) so need your > sign off. I have occasionally wondered if I should sign off again when this > happens :) ack; will do it; > > If you don't do a v2, just reply to say you are fine with me fixing the sign offs > and I can do it whilst applying. i'll send a V2 > > Thanks, > > Jonathan > > > > > Alexandru Ardelean (7): > > iio: adc: ad_sigma_delta: introduct > > devm_ad_sd_setup_buffer_and_trigger() > > iio: adc: ad7793: convert to device-managed functions > > iio: adc: ad7791: convert to device-managed functions > > iio: adc: ad7780: convert to device-managed functions > > iio: adc: ad7192: use devm_clk_get_optional() for mclk > > iio: adc: ad7192: convert to device-managed functions > > iio: adc: ad_sigma_delta: remove > > ad_sd_{setup,cleanup}_buffer_and_trigger() > > > > Jonathan Cameron (4): > > iio: adc: ad7192: Avoid disabling a clock that was never enabled. > > iio: adc: ad7124: Fix missbalanced regulator enable / disable on > > error. > > iio: adc: ad7124: Fix potential overflow due to non sequential channel > > numbers > > iio: adc: ad7124: Use devm_ managed calls for all of probe() + drop > > remove() > > > > drivers/iio/adc/ad7124.c | 84 ++++++++++-------------- > > drivers/iio/adc/ad7192.c | 90 +++++++++++--------------- > > drivers/iio/adc/ad7780.c | 38 +++-------- > > drivers/iio/adc/ad7791.c | 44 ++++--------- > > drivers/iio/adc/ad7793.c | 53 +++++---------- > > drivers/iio/adc/ad_sigma_delta.c | 82 ++++++++--------------- > > include/linux/iio/adc/ad_sigma_delta.h | 4 +- > > 7 files changed, 141 insertions(+), 254 deletions(-) > > >