Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2261882rwb; Thu, 17 Nov 2022 08:28:55 -0800 (PST) X-Google-Smtp-Source: AA0mqf5QPXAnTOk2ntjKv0XxLIavD9Q1XjXyPLkxueoRzUe8yQckz+gUOAp4lKyPU4JW2ydvC5Re X-Received: by 2002:a17:903:11c9:b0:178:2eca:9e1d with SMTP id q9-20020a17090311c900b001782eca9e1dmr3545880plh.43.1668702534887; Thu, 17 Nov 2022 08:28:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668702534; cv=none; d=google.com; s=arc-20160816; b=UZik0SFoiQWVOKyFhGclC0/RGYPJxbqh0Pj0CaVv+Khoczns2AB1+8VYh76cziERrW kVp5o6duWK1F+Z0o4KRJ2PpojYaSuXcr4N7AUUHEYX+HpDVm1eBcObQrgcRV/PLQo2gO R2XAoZWqJmikWRkSoLXHON1E79JoRGennV7hdZ1i2ALzUuldnAYrsB1WxyzkYAGdlWk2 rJAOUtevpaoRCYMUSb6j5JtDMTPo9Z2IacjZEdd5w2oGvf4DlPnYSbDtuJLCTu/xke/a BZwCBTLIDEbIb7XwhjTyHVUpRsFPhoV/ngEiEGq5lfdXAGySzxnjIPL9Q1fSajDLAEe9 gaFw== 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=c8dKNYSxb/qxUmRxVhiOY08lFtLurjJrnBGfyNOIeuA=; b=U/8p04DEPmHqTSB2kIzAnKdpx/5xwzysZjv3csqA+GIryiSGZiRCqe8w4JLaUU8HOn e4O8Aqs6JkM7sdlem4Rq/vlZVT+cQq8HfsN4pCT3pJQR8hV8X+uTo5dm0t8r+S7oGTkd v2QED/iP6KEjP4FdIZbIKmLfyle1PW18ZeA0bevlwhU3MwVSOsnUD4t/U5ru1IRVTSOm AjuxOZl3F9HMIJFQRKtj15kTSjdru7YkO2wbcZU+eQ0kzA7JXk7e7+M9hJ1cC0hpBxGM B01df5LjBadu27xac4dsoOL6UywIvg7BBYBFg4sxJKd5njHrfUniE4DwBI+NuAxmf3vr 8k5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hmkZC3D0; 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 k20-20020a056a00169400b005669b9f5e1bsi1297580pfc.45.2022.11.17.08.28.43; Thu, 17 Nov 2022 08:28:54 -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=@kernel.org header.s=k20201202 header.b=hmkZC3D0; 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 S239679AbiKQQYk (ORCPT + 93 others); Thu, 17 Nov 2022 11:24:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240478AbiKQQYP (ORCPT ); Thu, 17 Nov 2022 11:24:15 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DE8088FA6; Thu, 17 Nov 2022 08:21:46 -0800 (PST) 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 E77FA62129; Thu, 17 Nov 2022 16:21:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DB5F2C433C1; Thu, 17 Nov 2022 16:21:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668702104; bh=phsVL3/hsv+v4acS8Sc0lFUGpjMm1v6dsEcH7Nzqomc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hmkZC3D0au47/OYpQ1ksGKtVv9CiqIPL7XknQf09yV5vSp1F0K+2dCNLYWC/Va31V uVcvHviKCGT1romm1/eM6Lps6F2lIzXKYKSw58dDEO6suaqLQkZ0Y/imxN6FN/15U8 vUFeHa2OWGz2rzOaEbPvm4osX0ugWuZ3EsMPsDanGPFB7Gt4CWAq9Fezqdc4hFBpBT sCLckKaFc12UFRGEGiQl1TsyyzbXp7ZJVKatO3Yq/MX8Tt7xFEwQiljuZ25I/aAT0M +4LgvdOmAj/Wg9cXXNK05x38NJ+mdtnYCnDuNscFozvoyqYS/XmAaHFgFLXWlvl06y sqTweD275CG9g== Date: Thu, 17 Nov 2022 16:21:40 +0000 From: Mark Brown To: Michael Walle Cc: William Breathitt Gray , linus.walleij@linaro.org, brgl@bgdev.pl, andriy.shevchenko@linux.intel.com, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 4/4] gpio: i8255: Migrate to regmap API Message-ID: References: <61327a67cc308af413471a69a4810b2785e53e8e.1668129763.git.william.gray@linaro.org> <5123090e11da67e57fb00984445ece2f@walle.cc> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="KArWzu10SZ74/FYp" Content-Disposition: inline In-Reply-To: <5123090e11da67e57fb00984445ece2f@walle.cc> X-Cookie: Ego sum ens omnipotens. X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 --KArWzu10SZ74/FYp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Nov 17, 2022 at 05:18:55PM +0100, Michael Walle wrote: > Am 2022-11-11 02:55, schrieb William Breathitt Gray: > > + gpio_config.parent = config->parent; > > + gpio_config.regmap = config->map; > I'd propose to add a new config flag to indicate that accesses to > the device will be fast: > gpio_config.regmap_has_fast_io = true; > which will then set gpio->can_sleep = false. It's probably useful to provide a query function in the regmap API for generic regmap users like this. --KArWzu10SZ74/FYp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmN2X5EACgkQJNaLcl1U h9BYlwf/cBtqSPMTzYsl99bR9c8JJNXZeeYSwkVnwLuXJs0lf70APD+eCNa2IQI0 qj2Zq/ekgfnYW9+YsswY9O/dzf0ZNFhC/Pie6TM5uNnYC3yJBMAaVNoA6KOQTBED upXDb1QOSbYpct97CJJmx6/zyIzszjIQmuQZ/lC/gGq1Ni0Ye5+0M65tNMCDSUD3 Uuc6tRmXOtgwCHda6Hfpis033dwWQRMvMivF6+3svGZ0GzywBME5Eft23EHooqdt 2uEXT24DDssydf4LG65YbdeyFZJ3GQiVi/jmlSywKSyZ66bn8BpNJE/LT8aVDo6/ sEt1FKTcbQoJm0CgdJ2AJUI2OgP2sg== =5d1H -----END PGP SIGNATURE----- --KArWzu10SZ74/FYp--