Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp2841194rwb; Mon, 5 Sep 2022 02:19:01 -0700 (PDT) X-Google-Smtp-Source: AA6agR53CJipowBMiLmJ9XAVwuMJmwlIvNJ642+SVToXPbBUPKyAu7Wt1W6kyh5TkopTqivlNzH6 X-Received: by 2002:a17:902:7886:b0:176:a038:8a2b with SMTP id q6-20020a170902788600b00176a0388a2bmr6431921pll.59.1662369540687; Mon, 05 Sep 2022 02:19:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662369540; cv=none; d=google.com; s=arc-20160816; b=Qbr/JaFt0edBoIin0tvIKvVNg804UxvH9dNXF4I+jhkbAN0u934vwnZCLxMifMbEy8 CCHopBb58Y9gBCpeaIH0OG1CjrcSfRIgW8gGdbva7yAcq9qhDvBSaT0R4SRScZ83vu6x P9IwZ68j24TNnw9enRLw7hrRHW5NeTdnevBVPsGqjd2PCZbQ6P6qv7wAwMp7IosxvBUd pqnSQnfCUbOSefDZyJEn2zFwvyXV4csgm/Vg3nKC5sknJ70fSsLnF/MnXfj6H8A825Ef mvATLE9Bos1qCS3ggOl5xToyvpStllYJNxAfz/okpsoZ2oiGfQJiPn6cMDZ53xygPsta mbqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=tRFYGv84M2LaryAxLO+4jpAXwsqd1ialVQ9dqVpUd64=; b=nU2/8q9jA2O6gmjxcZpiRJPeoDFCHfFSuJW1H8ZGXIewi/LjC1LkV+z4dt2JIwvbsa X3okRyAggQ83ESVCzV5/2+SMCoMiM3cogY3FumU6JhGDUKxjp/Z2viNv4x1tyABKAH6Y 7o5V1xzP1a4mZMNzL9vIYKUBPQ8HprSZNbvSCZF7GymqfqK5BkQoVGrgn/9bWn16OWfP 84c0CL9kxxWnMX3kXSCp5WjEoyH+DJwhOQidvhgsYJViwG305Lpq5JJ2hYuAO1nwB1TH dycDXUbzH1x3rSGO5bzhklkZ9BGjrs32ooeW9b4W+7Ugj+gCpj9W+fT2b7vkYOyETSUJ 6pQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=CvZLYj8X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ij3-20020a170902ab4300b00175039cb0ccsi9450710plb.135.2022.09.05.02.18.49; Mon, 05 Sep 2022 02:19:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=CvZLYj8X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237727AbiIEIaV (ORCPT + 99 others); Mon, 5 Sep 2022 04:30:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237838AbiIEI3w (ORCPT ); Mon, 5 Sep 2022 04:29:52 -0400 Received: from smtp1.axis.com (smtp1.axis.com [195.60.68.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2E5D4E864; Mon, 5 Sep 2022 01:27:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1662366477; x=1693902477; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=tRFYGv84M2LaryAxLO+4jpAXwsqd1ialVQ9dqVpUd64=; b=CvZLYj8XOiPcjtvbgFgaVsr2sG4JxTIlPlDCniQR4i4dZz91QlG2VW/6 Cme95nKkOkLlhGtu6zqjXE/6WQxl2CZlOwyYUrmY1OGBQlauRdV+6bOtj U+Tubl0eu6xR8Mm1LTlbkCzgh5M2B9OZXozkrRz4fM6cqQPBVaSEG+Kwc jMdcTF16H9JpVE+XtBdyTQA0oN4CoomH8ZPhraKulFHxn3M9c37RrGaLF 4oViz2HZsFrJQkXamV54uFzuPJ7rFSEdvWSmoTjq84MnCfXS2UEDODyKv yC3rqY5EKsR7JuCWnGZqviiPS71I8rL1i1w8d9Zj0ErW6GagltDSUrzWg Q==; Date: Mon, 5 Sep 2022 10:27:51 +0200 From: Vincent Whitchurch To: Jonathan Cameron CC: Andy Shevchenko , kernel , Lars-Peter Clausen , linux-iio , Linux Kernel Mailing List Subject: Re: [PATCH v2 1/5] iio: adc: mcp320x: use callbacks for RX conversion Message-ID: References: <20220831100506.3368103-1-vincent.whitchurch@axis.com> <20220831100506.3368103-2-vincent.whitchurch@axis.com> <20220904171559.1bf77d42@jic23-huawei> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20220904171559.1bf77d42@jic23-huawei> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Sep 04, 2022 at 06:15:59PM +0200, Jonathan Cameron wrote: > I'm not keen to push unrelated work onto someone doing good stuff > on a driver, but in this particular case it does seem reasonable to > tidy all this up given you are moving the code anyway. Well, even the moving of the code is unrelated to the original goal of adding triggered buffered support and isn't necessary for that. The moving of the code was only to eliminate the use of the "device_index", which was already used in the existing code. I'm of course happy to fix problems with the code I'm actually adding, but it seems to me that it would really be simpler for everyone if the trivial comments (especially the purely cosmetic ones) on the existing, unrelated code would be fixed by the people with the opinions about how the existing code should look like. I don't have any special ability to test the dozen different chips this driver supports, so having me do it by proxy seems rather suboptimal. I can only run it in roadtest, which anyone can do with the following commands (against v5.19 due to the regressions in mainline I mentioned in my other email), without special hardware: git checkout v5.19 git remote add vwax https://github.com/vwax/linux.git git fetch vwax git archive vwax/roadtest/mcp320x tools/testing/roadtest | tar xf - make -C tools/testing/roadtest/ -j24 OPTS="-v -k 'mcp and not trigger'"