Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2365956rwl; Sat, 1 Apr 2023 06:40:10 -0700 (PDT) X-Google-Smtp-Source: AKy350aotcnQIaVvpXYffsNFdhMkSjxvROeevG0qp02BJ2eFXURKqfKtXv3vo4IbNCZVEDY6CGYO X-Received: by 2002:a17:907:1628:b0:931:af6a:ad0f with SMTP id hb40-20020a170907162800b00931af6aad0fmr38339385ejc.76.1680356409811; Sat, 01 Apr 2023 06:40:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680356409; cv=none; d=google.com; s=arc-20160816; b=OXrP8QfDq0GpOMjuk9WN9IBh6w7YiZW0pioSttUCtPJ0LnQ5BXcDDdQwUccYzw98NA 3gsYqeXYlXVbcQUhawivhv0Iap3j/L+cSlLMEFG6tVf3KaQ7V/vxwR4SvVoAHFbvevHw 5QZbqE7GbXlr2TiDPuu3+CM/ptdUd/6se/J+H3zsxrFqrKY2tOnEHGgPJRx4qpC38ymu mMt1xUALWFPTA1frWA58ncCFlC+QZiIBMHkPx8rJr7aSczp48ukSXuzIXgdr8jAL6SpA W+KhPFsKkk81WeqrFViN644b7g8YhFWozxrd/dYz79mUKkKhGguEhQ1zfvjLFtmbTJhq 6gPQ== 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=iyWZXV8sQ/NsMr38K2R7lN/HHVF8bR3OZg/Y7XZa3C8=; b=qM1qWg8SqeY/ck8ruIp3OnaPadKz4PM6aihhPwtx22oaDE+8ru/CK1S5rGICCrgvEB GSKAeO00rKps31oXOf18gSs8jC6IDtVGyvJe7A5mipT2XrQrhBlWn7Tydob3+KUVMOWU 4mfzFUe7WfRkuMjS2mkZjBOcP8FHP6MOh89VD7HeKoFSzjV7xJSdrP0QBBRdsIY+3LK4 CdSnqqhkdIYVkxNK8RNDNc7UNH82ZKLhw/ENqmoeoI9IF+uJC/i9cpcMuSQOlxCMerrs F+sbDdQDmkA7EEJAJsvg4ocJNq8d79N60sx03pbCkLFR7Ea+6QkO32Lu4fiKobT6BApL Gf0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IPTrFPR4; 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 w1-20020aa7dcc1000000b004acc137fdd5si4158221edu.48.2023.04.01.06.39.43; Sat, 01 Apr 2023 06:40:09 -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=IPTrFPR4; 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 S229923AbjDANaN (ORCPT + 99 others); Sat, 1 Apr 2023 09:30:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229461AbjDANaL (ORCPT ); Sat, 1 Apr 2023 09:30:11 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A62D03AB5; Sat, 1 Apr 2023 06:30:09 -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 28E2C60909; Sat, 1 Apr 2023 13:30:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C2FFC433D2; Sat, 1 Apr 2023 13:30:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680355808; bh=r3oFw2s2cuB7y9FHYeEVs9HnftQHY2aRB2DbWbl2xEc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=IPTrFPR4Zjc3mzHt1Bpq0/poqXX6FFL2z3BCXAI2/2t3kdI2KTjen44Ch0kIt5Ih5 2zN9+KQLucA4Sl7LuKPZFT272RDi6343FWJ/jlkP6zhlAEocb73Jco+kiDYI3mRVoo FtYbshnSNLmXPMywFYx5FYVJPv2fcqEB8rmm8Sa/RgQOAdcNibuz1l5zfvt03tEX29 deKCOJw/6smCr60LbIeobauxqQpvLQCyZzs1YYo9OITjqvAEQ41M4Ty2PWjmTuBwyq ROiDkvHt8099DK3dCeZavXJNzdDxU3cHlXSZYo0fQjTHaYyzryTtgIfQAyr5jwnGR4 34lXRV10N+4Vg== Date: Sat, 1 Apr 2023 14:45:17 +0100 From: Jonathan Cameron To: William Breathitt Gray Cc: Lars-Peter Clausen , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Shevchenko Subject: Re: [PATCH v2] iio: addac: stx104: Migrate to the regmap API Message-ID: <20230401144517.4ad446e1@jic23-huawei> In-Reply-To: References: <20230324030916.396569-1-william.gray@linaro.org> <20230326164920.1e4575f9@jic23-huawei> 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=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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, 26 Mar 2023 17:13:18 -0400 William Breathitt Gray wrote: > On Sun, Mar 26, 2023 at 04:49:20PM +0100, Jonathan Cameron wrote: > > On Thu, 23 Mar 2023 23:09:16 -0400 > > William Breathitt Gray wrote: > > > > > The regmap API supports IO port accessors so we can take advantage of > > > regmap abstractions rather than handling access to the device registers > > > directly in the driver. > > > > > > Suggested-by: Andy Shevchenko > > > Signed-off-by: William Breathitt Gray > > > > I would have preferred slightly if you had avoided reording the probe > > (previously gpio chip was registered before iio device and now it is after) > > but it make no real difference so I'm not that bothered. > > > > A few other minor comments. Biggest one being that the defines should be > > prefixed. > > > > Thanks, > > > > Jonathan > > Hi Jonathan, > > I'll be submitting a v3 soon addressing your comments as well as some > minor fixes to v2; I'll make the regmap_read_poll_timeout() change as a > follow-up patch as suggested. > > Regarding the GPIO code reordering in the probe, I decided to move it > after the iio device registration so that all the IIO-related code is > grouped together and finished before we deal with GPIO-related stuff. > Given that all the original gpio chip code is removed anyway in this > patch, I figure this is a minor enough cleanup to perform here. If you > aren't too strongly opposed to this change I'll keep it in v3 as it > avoids the hassle of creating a separate patch for such a trivial > change. That's fine, just call it out in the patch description as a "While making these changes, also ..." or similar. Jonathan > > William Breathitt Gray