Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp5036267rwe; Tue, 18 Apr 2023 00:46:58 -0700 (PDT) X-Google-Smtp-Source: AKy350YxvZmKl29Iq/q56KbgfLqufkQSnjiB3B002G8KLVnPNaRtA3K2xlxdQ2n+GI48aOOZd/Yk X-Received: by 2002:a17:90b:8cb:b0:247:78c0:125e with SMTP id ds11-20020a17090b08cb00b0024778c0125emr1385201pjb.15.1681804017731; Tue, 18 Apr 2023 00:46:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681804017; cv=none; d=google.com; s=arc-20160816; b=01m7pmkK60P/B1aAJxnt5ehLHSKTCPLnds1hL/NpTuvew1Ovffv3J538hLsrgd31Cn u0sq4/Zyt4UAylEAgtsm35zT1ogpbD8sEwr0aPDqsCVm8aaIRxzwQeucTQvVcjsbN9tD 9RYATN0FeyKTD1sN/vYEvbEgO0NWRdqn+cU48TgdDdUs3B7enBEaw2JdBqoi5nGuh1pR rAYsqYxmC8uCmsMAt4MvO2tkxx+Oz3AMXslWYvFd9zVAphdtyL3p2YUkMiCKR/31QCu4 zok0Sf1KMkOwpFMoN0hlVhJ0GeiNs8h9ZQ5SWEG02BCNECpO+LoD5fEHSmwSY05O5FAg jTHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=h253wu5vVHt/7CgIwRxDogt8H7tGi8jU9wdEXv6FkwE=; b=wj5sI43K41AXdaS4wHVF+B+8QoI/q8vAiHx2t7trBgnK+k/O/GyPccGOwu+MZjfyCQ 9VSemfdKw3Hk3za19W1JoiMUaiDIGIsMkuXQ8qcM5gby8BzqtfAcf3GEy8UpLTSDHzg/ 2vr/Jo0LqIHjJEYdY6nfVHU1lj9hcUbc+DLedYwrmYnVEhWEVKMt1iN/Ssz2Oy+9ljpt g9C1aABAlxmd2yZg4WpFHInSxH6UCDqQxB5hTkl5bCqTnRNsEEtnDSi0Z5a7OJtrjSpZ wKEaxET022FEgc29rTfcgnBxl9E9P/ZtNQppXjG0v1imA/BBVQiPIkSD5e0ntgtN1vAs cFug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lLfN0vtE; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 37-20020a17090a09a800b0024681cc291csi16177881pjo.88.2023.04.18.00.46.46; Tue, 18 Apr 2023 00:46:57 -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=@intel.com header.s=Intel header.b=lLfN0vtE; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230332AbjDRHpM (ORCPT + 99 others); Tue, 18 Apr 2023 03:45:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230352AbjDRHpF (ORCPT ); Tue, 18 Apr 2023 03:45:05 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 043CE44A5; Tue, 18 Apr 2023 00:45:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681803903; x=1713339903; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=2GkX+7Y2EPR5wAFJuF3tLDRqsCCn3i3+/rD88hSVrus=; b=lLfN0vtEGf2TZgYUIqg4nPxwO08SJB4LcHDqs9svlgMkwd4YmPpziXld oZXYF3QdGv4Fcru0dkQ5BC0YAQRfP8jT8TtX/z6vYJo5Ka608ByOEBSaY H7Gy6L76NkcPXeR+3sIs1i5hEYiRSLOn2157QARRrzK+ELVV+dPf3EG8O A9Gx3asZVcWGYcyFpE70BIt5mKQXygG3i0XPUwUk9DRJJo87F1Ydo5S9i 6DZ0zjbM6t1m+zJjmB4w8/i4iW2Vhm4v8yUEK6v2XZkRQ0p0Z6sZMNXqW FQdyQPaRiw9H5QR232We/f3uTgkWPunj9VUjdSU4/cBbsby882lJ32G0j w==; X-IronPort-AV: E=McAfee;i="6600,9927,10683"; a="342595346" X-IronPort-AV: E=Sophos;i="5.99,206,1677571200"; d="scan'208";a="342595346" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Apr 2023 00:45:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10683"; a="684477294" X-IronPort-AV: E=Sophos;i="5.99,206,1677571200"; d="scan'208";a="684477294" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga007.jf.intel.com with ESMTP; 18 Apr 2023 00:44:59 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1pog1J-001VmC-36; Tue, 18 Apr 2023 10:44:57 +0300 Date: Tue, 18 Apr 2023 10:44:57 +0300 From: Andy Shevchenko To: William Breathitt Gray Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Johannes Berg , Jonathan Cameron , Andrew Morton , Al Viro , Nathan Chancellor , Nick Desaulniers Subject: Re: [PATCH v4 4/4] counter: 104-quad-8: Migrate to the regmap API Message-ID: References: <1f1f7920d2be94aedb6fdf49f429fe6137c8cb24.1681753140.git.william.gray@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1f1f7920d2be94aedb6fdf49f429fe6137c8cb24.1681753140.git.william.gray@linaro.org> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Mon, Apr 17, 2023 at 03:50:50PM -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. With regmap we get boundary checks, read-write > permissions, operation synchronization locks, and more for free. Most > important of all, rather than rolling our own we utilize implementations > that are known to work and gain from any future improvements and fixes > that come. ... > - Use "int ret" for regmap_* return values throughout for consistency Looking into it I would think it might be better to have a precursor patch. But it's up to you. It looks good now. -- With Best Regards, Andy Shevchenko