From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C5998C43217 for ; Wed, 9 Nov 2022 20:35:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230345AbiKIUfO (ORCPT ); Wed, 9 Nov 2022 15:35:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229578AbiKIUfM (ORCPT ); Wed, 9 Nov 2022 15:35:12 -0500 Received: from mail-oa1-x2a.google.com (mail-oa1-x2a.google.com [IPv6:2001:4860:4864:20::2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 386BB17A92 for ; Wed, 9 Nov 2022 12:35:11 -0800 (PST) Received: by mail-oa1-x2a.google.com with SMTP id 586e51a60fabf-13b23e29e36so59521fac.8 for ; Wed, 09 Nov 2022 12:35:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=A+RWMHtzBwH+UyEMIibHMkOjaG+jD3xP+GD0zzqH3bI=; b=seEEuKP+uFdqLON3j5Tj3HhI1R5c3RUDL07Ds3b27oK/IdgifhJW1x1/8yPVSduRZh zQexuuTwNLokZKterbhssXYUCeF6onxDKHs7tsQUJSIJ+8gIUipb6GarmTqUjGht/XFu RZ700XHujd8lEGrIyP4niy2vHpRkJxGDtpEcISnwRF0cQL2usKSxYICWlWhdVy+NORic oyj1IxWabABYTy3NB9hFeD+RfZGEqzOsxPoJHYCjGqF5QHRvnnK24UtVCFo7NQClkvfb Tc5GylCq76Q5SbczIvzlWCwNk9fduYnRDauYLZDprOKgYNSO1DC5i6hHrWL1d6mWmF+V V2xA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=A+RWMHtzBwH+UyEMIibHMkOjaG+jD3xP+GD0zzqH3bI=; b=f+aG8MmaYepRWtqOu9RAqGu1quW9I0i2dF7Jyc8ep1hnkjjH6W+yOmbBGzKsKSUU2j IwYfppjMJIKhkOG1ycCVBxN9MkhDENMd5f6VP4IkVGg4EyTnfLAAf4LbVei7K5ljVHLr ea2jyvSYtaudg7IRxmfNnP/CDWA6Wx2V7nwiZod1AZFNNlWBCGqUK38R3bH5er5/+nJx SlaB3BUwK2LQBKBShIiHkXassHc0wcktf40j4/H9jOAfzxI/n8lEIjfG+LUgcgLg6hcQ P4aMmoluc0KIehdxcb9LK12Cm1pjlzVZhKawS+WqkfXVvbyIbrREUP41jr+H5r4FFaL3 M92g== X-Gm-Message-State: ACrzQf0oBnLr7+waknmTbKRwNuVd9oaDuIDL3RYWdYOrLiKe14aqGvjt VUNSt0QovYcru69z8UQ/shBXXTNNUUjaDA== X-Google-Smtp-Source: AMsMyM5BRu4PcnqU9PVs95CrEiZdPHOzOxktd8jbMYbfR8rLJukHCS8JtfaqqAdnVd9lxEE+I7vtjw== X-Received: by 2002:a05:6870:c22b:b0:140:6552:acd3 with SMTP id z43-20020a056870c22b00b001406552acd3mr17196219oae.175.1668026110536; Wed, 09 Nov 2022 12:35:10 -0800 (PST) Received: from fedora (69-109-179-158.lightspeed.dybhfl.sbcglobal.net. [69.109.179.158]) by smtp.gmail.com with ESMTPSA id o30-20020a056870911e00b0012779ba00fesm6617548oae.2.2022.11.09.12.35.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Nov 2022 12:35:09 -0800 (PST) Date: Wed, 9 Nov 2022 15:35:06 -0500 From: William Breathitt Gray To: Andy Shevchenko Cc: linus.walleij@linaro.org, brgl@bgdev.pl, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/3] Migrate i8255 GPIO drivers to regmap API Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="PdydrcQV0/345AbN" Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --PdydrcQV0/345AbN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 07, 2022 at 12:37:00PM +0200, Andy Shevchenko wrote: > On Thu, Nov 03, 2022 at 07:20:46AM -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. > >=20 > > Precursor patches are provided for 104-dio-48e and 104-idi-48 to migrate > > their respective device-specific registers first in order to simplify > > the subsequent patch migrating the i8255 library and its dependents. > >=20 > > The struct i8255 control_state member serves as a cache of the i8255 > > device's control register. Does the regmap API support caching such that > > we won't need to manually update a control_state member? >=20 > Yes, regmap supports caching and IIRC it's opt-out. Looks like it's disabled by default if I understand correctly: the cache_type member of struct regmap_config has a default value of REGCACHE_NONE if not explicitly set. I'll set cache_type to enable caching and remove the control_state member in v2 then. William Breathitt Gray --PdydrcQV0/345AbN Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQSNN83d4NIlKPjon7a1SFbKvhIjKwUCY2wO+gAKCRC1SFbKvhIj K5YuAQDTKUCgknRdaTutuxuTWu8lHtqMkKM0sXCH7VkMWDsmXQD/bIM0GnQBOyYL mor615KanGSUauJgtJu+ptX7b5ugOgQ= =X120 -----END PGP SIGNATURE----- --PdydrcQV0/345AbN--