Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1109411rwb; Wed, 9 Nov 2022 13:02:14 -0800 (PST) X-Google-Smtp-Source: AMsMyM73oHayXhIt4s0O2rDsa2Imneaamp+mBkn2PH1GuZa/NoxYWkxE9kZ6k3HNcksB/LMSOY93 X-Received: by 2002:a17:907:a0c7:b0:7ad:dc65:bf8e with SMTP id hw7-20020a170907a0c700b007addc65bf8emr46645042ejc.133.1668027734367; Wed, 09 Nov 2022 13:02:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668027734; cv=none; d=google.com; s=arc-20160816; b=WXUBOwpfBtGNa1GAqy8uv5w/BmAuoyN+IRFzC6qpQMYtHintJt/a9yh7pEONdPb6nZ tMqfzdt2FFE4m25T7IDwDHfAF7am6N1j6L7ROd5V01htP6B30qGtaxgjPeW6Mu7O8R6O yR3eTeZRDxCfoxqeRPGXY3HWYjgA8+5eeToR7/+d7ol0/5xkvGdWNGd7wdVx7yYF8C9a s+/cJprZ/oV9qZOLpvoD5q4eHADCEjX81tPfiNBt+D9jf4WcHNkW5AABbSOS2KqYda1K s4eOFi6nFrin8KOr8zg8wvC1xLa5o/R+Kf9k6rFgft4BbGbRyvIzNV4p2FVNFeUKfgL1 1JPw== 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=1mlILSCrCtCZ7SWPN1ae7BwNtNDv+bCD2Nri50k4Scg=; b=MRg2l4ubhORCG/nOZAwWvAq8iOD0ngKd/7ssIE35qrzZMlWLjRg0KHzuanJeGcSqtS xwblOnN5rPZyHvCzBnULPgwagO/EcGZdyanahtSoxM6b5eIhrV/G189TSZqlkG9/wosD ImipA/ov8TnTTi9+Qohw4k+jRSSUS5i6xLjJFYGaYGdMsQND8vfC5PV6Ijf7WGJcAKRJ 66Z0zZxD35dkpip+FBQIXFylbUkm2FawjfiyaNm4ou7b4HskF6Ogx6HMnmggsY2WWm9B 1DAFqm/KLS1ap2P+mcKpAzA6q3JxSOmOuSyE+BdEaZ+fR2DJ5MNScCIg8WwwGslqs5qw o8GA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eLdGI94H; 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 cs5-20020a0564020c4500b00463f8aad371si15805902edb.239.2022.11.09.13.01.52; Wed, 09 Nov 2022 13:02:14 -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=eLdGI94H; 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 S231769AbiKIUrn (ORCPT + 93 others); Wed, 9 Nov 2022 15:47:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230504AbiKIUrl (ORCPT ); Wed, 9 Nov 2022 15:47:41 -0500 Received: from mail-oa1-x2f.google.com (mail-oa1-x2f.google.com [IPv6:2001:4860:4864:20::2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EEE1303F7 for ; Wed, 9 Nov 2022 12:47:40 -0800 (PST) Received: by mail-oa1-x2f.google.com with SMTP id 586e51a60fabf-1322d768ba7so113296fac.5 for ; Wed, 09 Nov 2022 12:47:40 -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=1mlILSCrCtCZ7SWPN1ae7BwNtNDv+bCD2Nri50k4Scg=; b=eLdGI94HySynagVSocIxzSs5e7Pg+vZ074527p8pkow/i3oeFdyAQzEQYEqTCMhy08 lvQVvXffeFNVL2yXU/mRMa1h3G9l9iiddM1/nLD5NNe0UGN26g0FR3qBglqEIpJ2fjsj JUBnfryak5Tj0/rpH4BK6D6mc4kM8l9kNRKDHy3bQKXKnw1xGcTrI8SboSILI5rVrqen w4CsLlqb3PsQ+lqPgKKvyFlXHEby18pPqw17JZzfE/vmsr+p0gZI+aF7rOnf4NooESfb Ygf4/EWcL3cmHiGy5bSuY8zTwPpXQKYaNthp1jQE9CwA/mO4nkAFsxVCVKxoYUfS4EFX tJCA== 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=1mlILSCrCtCZ7SWPN1ae7BwNtNDv+bCD2Nri50k4Scg=; b=FvRpYU064pf/v4z+QFzzFKPYeD/83ChR/25WFYZDsq/cBSZ2my6wWgz16v96lfpWaB ttulFbGLJoZxQSlBZSCpNN0CEWFRRKlobWYMKFTjNvSqN5xZaJDrfeMxnvrlAaU/xgPe iGQpM3LnnA3alTlmbU+2sGgXGHaOH1/LQw6NOs4NoUyOUjf+dk3/Xw8QybU1VPgYl+td fSXoiThdMdHjoxNuLi4MJu29OaM6JwtT1K9IQkehMuN+2bzyFm8vx51RwAJ/Q+rlMpYO y+VXLjIHO1bhToYFLtPv7TPKYghcPOQpMqmA2/elJfphdpma/QcW5cx/CYQjx57OGiz+ lRFA== X-Gm-Message-State: ACrzQf2f4vguVFl849JqWnk1J1U46zx9KadchqKaArdWW+TecqFksJ7R 9b4Gr/ZCkMIxzmCRqn3oMKB35g== X-Received: by 2002:a05:6870:7027:b0:13b:a5b7:165a with SMTP id u39-20020a056870702700b0013ba5b7165amr45849592oae.194.1668026859270; Wed, 09 Nov 2022 12:47:39 -0800 (PST) Received: from fedora (69-109-179-158.lightspeed.dybhfl.sbcglobal.net. [69.109.179.158]) by smtp.gmail.com with ESMTPSA id m8-20020a4aab88000000b00480816a5b8csm4568623oon.18.2022.11.09.12.47.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Nov 2022 12:47:38 -0800 (PST) Date: Wed, 9 Nov 2022 15:47:36 -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 1/3] gpio: 104-dio-48e: Migrate to regmap API Message-ID: References: <523cfe2bfbf804e64e8c9f6ed38339e850e6d9d9.1667472555.git.william.gray@linaro.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="PN51vnWeBKDbLLPW" 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 --PN51vnWeBKDbLLPW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 07, 2022 at 12:38:47PM +0200, Andy Shevchenko wrote: > On Thu, Nov 03, 2022 at 07:20:47AM -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 > I'm wondering if gpio-regmap can be used for these... >=20 > --=20 > With Best Regards, > Andy Shevchenko I might be able to update the gpio-i8255 functions to take advantage of gpio-regmap, but the changes in the precursor patches are primarily to handle the device interrupts. Currently, I call gpio_irq_chip_set_chip() to assign the struct irq_chip structure to the struct gpio_irq_chip structure. What would be the equivalent for gpio-regmap? William Breathitt Gray --PN51vnWeBKDbLLPW Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQSNN83d4NIlKPjon7a1SFbKvhIjKwUCY2wR6AAKCRC1SFbKvhIj Kz1FAP95Cm2NoGkBesR351aKQWMvtiayALavukaCRwt/3IpYmQD+MfhzA3xK9DMx wJ09FbX8hGlr4LfbWyBiw6evi/h2TQA= =EZuE -----END PGP SIGNATURE----- --PN51vnWeBKDbLLPW--