Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1102651rwb; Wed, 9 Nov 2022 12:55:55 -0800 (PST) X-Google-Smtp-Source: AMsMyM4hhLrnGLCvefXrwh9K+woZ5AWB/+7XoWyg9S+WKTLxqvsuvipV2qKnT5NwlhpeSNv1xIlL X-Received: by 2002:a17:902:f54f:b0:186:a437:f4d1 with SMTP id h15-20020a170902f54f00b00186a437f4d1mr59626483plf.168.1668027355476; Wed, 09 Nov 2022 12:55:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668027355; cv=none; d=google.com; s=arc-20160816; b=ZFpc9PzbkhGRSdhyc+kIygBLnD5X4htAzE7xYA6gWXn9FhiBd7/XM1x9TnDL5oCCxP MAmnIt/WHa93CkBa/BfiJrv4xM52inOfXvyfcdjqChIhCer2KcM7o0J+6JeaEYu79Grw ms18vDouwuMQ36cpWHw0aFeYsYJYo2mdGgBQDhZVNdcUMJLFnz6cSPGbsk3E9TeTOnHV t78UnXjywCzplk8DkB/AjoaKP5Y0X57o9T3Bv8OZNchpUHU+VicfcRtnmwSKb+Lq8KUk 8BzwCRaw1FCEgFTHJPPEqH8ZMTJEahifch4OU4pW9ELuG35OBQplq2HHaZ2+dJ28qO1K DvPA== 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=A+RWMHtzBwH+UyEMIibHMkOjaG+jD3xP+GD0zzqH3bI=; b=i7NUXEkzJlp84Wi6y6MzvO/6jEcI2RoOKbD+yqg4iHBeAJnHD797uEbDVOdL8P6W7I JQ7bAq/QDc3WC7kMpL2fwD3SwPiFMt2CE6AhTVXmjipLDh9D0fraKlbTQeP3BiMWr2dX J/s163fxFwnlMcaCl3QM74uZAuZmtgmfI1QxQ1SvVD9l8yccjSpplOKvz2hH/n8hXl+o SPALJTotSZQMy4DHrsNthGp7GNF37RM2VXOUpN0Z4AzbRXdZVEqel3Hn6UZkkmLUOanq YSRrbrvxpn4lGuv3ZWy15WoBH9SdthY6uZDh7cUre5fCFQiWZaOBYsjLn0s9p0IhRabQ 8MxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=seEEuKP+; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j30-20020a634a5e000000b00438894246e8si17813309pgl.169.2022.11.09.12.55.43; Wed, 09 Nov 2022 12:55:55 -0800 (PST) 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=@linaro.org header.s=google header.b=seEEuKP+; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230262AbiKIUfO (ORCPT + 92 others); 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-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: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 --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--