Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp921368rwd; Sat, 20 May 2023 09:02:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6K/lolP9Mfqs8wh/HX96+D+wkOUx90WBOz8BIXvtyutfRCDG39XM9+I48PknGWCmHGtCno X-Received: by 2002:a05:6a00:2d90:b0:646:1f13:7fce with SMTP id fb16-20020a056a002d9000b006461f137fcemr8563205pfb.2.1684598537963; Sat, 20 May 2023 09:02:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684598537; cv=none; d=google.com; s=arc-20160816; b=KohpdEqzM45/qgPSR/VuqbiT8KFaSWdvaYsYC5VhJyzvtn4SBfK5DvsjP/kPegLXXf PrDG/ZGuYem5tO0ImUVV3G92/ik/i1K8VLg6VLBhv66Qh9guRfpleoN5CUgnrlxrT+7i geOlPL1jGzQ4hlSzAd3ZbbegJsnclMfk6Yn3yIRq9J12G9wvMYq2If0Rr5CWsJf4FG2h 2f/9kXbn7ugkvt209wZisg+gHyjjn077oJ5f6gss0+rRZOyi8r3tqz00ItWHFyyLRBOs +JLhHxU+iPrm3zbheAzcIPHrCs3yEuh6YacOuCFjjj5Q83P1VBl8YMjuS4icu4BgZsrL gVqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=bDmvfkEdPIzasVL+KiU+gUtvqsYTCUT5W0X3WOcVSxo=; b=omp22/DWZYjjMWxSjW0iyjBLBy9E+UAysJnLBumRdcSBkfyQniOg0jnTwkfosds/Iy CeHjz/rhDNfvfUANLv05qFm6+aBjaoA213HceMWCo9KIR54avhmCJobO5ze+rNFpxbQC ++nwQQfA48HhGyqH+UaONI+BbQP7ChVMGehRU9+HAXRzspyp3i93KiK7ST8nIzyCnAVe ViqM/RqtNe4VxLIKP2NI1knNjVINjtJBCuBNntSYTUPzrDWc0gbLvD4aWLtSigIxF5s4 HobWVKT8tt/2qed855SE5jLYj615j1RIt7gGmA2CyDU9VQrC8157+/i4Bb+NTHKXwBhY /kvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oA1jURKO; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v4-20020aa799c4000000b0064d4f77ddbfsi926907pfi.349.2023.05.20.09.02.03; Sat, 20 May 2023 09:02:17 -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 header.i=@kernel.org header.s=k20201202 header.b=oA1jURKO; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231605AbjETPlD (ORCPT + 99 others); Sat, 20 May 2023 11:41:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230422AbjETPlB (ORCPT ); Sat, 20 May 2023 11:41:01 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C888E102; Sat, 20 May 2023 08:41:00 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 54B5D60ADC; Sat, 20 May 2023 15:41:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E5CF6C433D2; Sat, 20 May 2023 15:40:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684597259; bh=9Ps1xvHyEdQpdoqJaEeCbsAna43Ebewm5CkBpwanu2U=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=oA1jURKODqVIMIR07QZUqj8P0EAwJYmfUC43ursKlC6SK3C3hlntNXzXTsh7MoDLE S4v38CrFsXmdYUg7WmsQFI+Mj11qBUdxNH3voE0X9zGRE+dA4k17WewdGBofvBOfjy FJjuHnp/WR6zIj/8XX/qNEsfSdGNVmQOewgZ/dEcaWI46Bj7mFXhksYykFVDObxS3A f/cdIdfOeA2AfTdliPQq+RzX0AIpsaQ1laI/45Ny8Lbh2STxYzUxyGHN+QwYKUGbnS 06ehIM6DmkW4aqDYhZ+4XZSkKMpdWLNT2Iq6bGg6kWSk1YhucU+WPEW9bvPWpJCLk4 cSMi10hTLRyrg== Date: Sat, 20 May 2023 16:57:07 +0100 From: Jonathan Cameron To: Shreeya Patel Cc: lars@metafoo.de, heiko@sntech.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, sebastian.reichel@collabora.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@collabora.com, gustavo.padovan@collabora.com, serge.broslavsky@collabora.com, Simon Xue Subject: Re: [PATCH 1/7] iio: adc: rockchip_saradc: Add support for RK3588 Message-ID: <20230520165707.695de520@jic23-huawei> In-Reply-To: <20230516230051.14846-2-shreeya.patel@collabora.com> References: <20230516230051.14846-1-shreeya.patel@collabora.com> <20230516230051.14846-2-shreeya.patel@collabora.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.37; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,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 Wed, 17 May 2023 04:30:45 +0530 Shreeya Patel wrote: > Refactor conversion operation to support rk3588 saradc and > add separate start, read, powerdown in respective hooks. > > Signed-off-by: Simon Xue > Signed-off-by: Shreeya Patel Hi Shreeya, This particular chain of tags has unclear authorship. If Simon wrote the driver, then the author (from address) of the patch should be Simon's. If it is a codeveloped situation look at how to use the co-developed-by tag Generally the nicest way to add new callbacks is to do them in their own patch. Then introduce new devices with different callbacks in a follow on patch. That means the first one can be reviewed to ensure there is no functional change separate from the new code in the following patch. > +static const struct rockchip_saradc_data rk3588_saradc_data = { > + .channels = rockchip_rk3588_saradc_iio_channels, > + .num_channels = ARRAY_SIZE(rockchip_rk3588_saradc_iio_channels), > + .clk_rate = 1000000, > + .start = rockchip_saradc_start_v2, As mentioned above, I'd like to see the changes for old devices done in patch 1 and the support for new device in a new patch. > + .read = rockchip_saradc_read_v2, > };