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 15439C43217 for ; Sun, 27 Nov 2022 17:19:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229541AbiK0RTl (ORCPT ); Sun, 27 Nov 2022 12:19:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229496AbiK0RTi (ORCPT ); Sun, 27 Nov 2022 12:19:38 -0500 Received: from mail-qv1-xf31.google.com (mail-qv1-xf31.google.com [IPv6:2607:f8b0:4864:20::f31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36812E092 for ; Sun, 27 Nov 2022 09:19:33 -0800 (PST) Received: by mail-qv1-xf31.google.com with SMTP id i12so5980382qvs.2 for ; Sun, 27 Nov 2022 09:19:33 -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=GaE+HzmpBZ7f7D1ffTuZdztOBzyIi8jg53me1kyp8aw=; b=nUeXtzJdxMKgVNpyiqRBGWKJ0urrJluuMtWn3VUFHZGEwm1xmAB7SjlLBwEC5fdPWe MXJ/poaZUMxlZZMRcZA/kc2dusPJWuftsjCVCtnknXfOoa4EMiu+2+cqRTeRshe0Cbh4 5En0wr2SOt6maNEq6JjdG/P3e/9RswfqkfmFGvVSFmc4VoDNZNNsMRR/loN/skKnWfdh JhBIxlZN5jF4EaooAT2hMyKdpDpNgY+Ho4IKib17LwQOTJDojAqTL0wRPvIpjV1VDHFF iAQiqE2pXMhczTk62TDR2aMQcDDK+KYxrDkzChzXsjiL+7ADhiKZomAjgwrlAhNDJag2 HKOg== 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=GaE+HzmpBZ7f7D1ffTuZdztOBzyIi8jg53me1kyp8aw=; b=kfUqPCg/xHY9DBrHpAL2rhYJgyp0uMByYFPcmtSa4B+byTNwyd5ZxTBvuGhCATnFVN qXJJB3p2cOAeWBreN0XZ7fUA0oFWo5tIYFleXGV+JFQucZyfasCH0v3Q4yo2KezGQb18 aqiC/dSHGFF3QLeK10u7U9Rg1IxlfJRx0xcpvQCYzdnqYU6PdaW/EdYJiwcPuE94ic8N oCAqfLLtS86eySPBYr33oTZr9tYdxO2h/L54YHd2CacMT2zuZw/LVNan4IyVrAEAPfkR MeKSUhXQjqiYUrfsawOiCtl/0hBAk7qjPw7LVvxZNFbsVUUX1inmodYHLoLGiGjMAtEL nUNg== X-Gm-Message-State: ANoB5pm2NcAmqVFOCFXEJX27zCkUPhzx6WBy4YecfznxEseTUjIdksvh NikURjt7zSmhgy5OM6LXsW4N5QUuK8VHNw== X-Google-Smtp-Source: AA0mqf7PTCfRY0ZZxjEk+D3oxT9LQ2sqnyQ8pE21nPC+TnHLrcPNS/qlW7l2UizVfAs6D6fflk/Ttg== X-Received: by 2002:a05:6214:1027:b0:4c6:9127:b918 with SMTP id k7-20020a056214102700b004c69127b918mr25868890qvr.105.1669569572267; Sun, 27 Nov 2022 09:19:32 -0800 (PST) Received: from fedora (69-109-179-158.lightspeed.dybhfl.sbcglobal.net. [69.109.179.158]) by smtp.gmail.com with ESMTPSA id cn11-20020a05622a248b00b003972790deb9sm5569417qtb.84.2022.11.27.09.19.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Nov 2022 09:19:31 -0800 (PST) Date: Tue, 22 Nov 2022 06:34:33 -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, michael@walle.cc, broonie@kernel.org Subject: Re: [PATCH v3 6/9] gpio: i8255: Migrate to gpio-regmap API Message-ID: References: <283c5af8825596d55b943b593eab561c912a088f.1669100542.git.william.gray@linaro.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="a8TFj+G0T0TRQ8kJ" Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org --a8TFj+G0T0TRQ8kJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 23, 2022 at 07:42:24PM +0200, Andy Shevchenko wrote: > On Tue, Nov 22, 2022 at 02:11:03AM -0500, William Breathitt Gray wrote: > > +/** > > + * struct i8255_regmap_config - Configuration for the register map of = an i8255 > > + * @parent: parent device > > + * @map: regmap for the i8255 > > + * @num_ppi: number of i8255 Programmable Peripheral Interface > > + * @names: (optional) array of names for gpios > > + * @domain: (optional) IRQ domain if the controller is interrupt-capab= le >=20 > > + * Note: The regmap is expected to have cache enabled and i8255 control > > + * registers not marked as volatile. >=20 > Have you considered to catch wrong configurations by BUILD_BUG_ON() / > static_assert() / another means of validation? Ideally, I'd like to check for these configurations, but struct regmap is an opaque type (the definition is in drivers/base/regmap/internal.h). Do you know if there is some way to query a struct regmap for whether a particular register has cache enabled or is marked as volatile? William Breathitt Gray --a8TFj+G0T0TRQ8kJ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQSNN83d4NIlKPjon7a1SFbKvhIjKwUCY3yzyQAKCRC1SFbKvhIj Ky9KAP42iq/9ni69tKLscqHnxJy12rS4ARDZdLWMji9vF56HjAD/ZoIQOw13blee jeZ/w1zhsUnqVQJLb40fvdafTMMnBg0= =vOL1 -----END PGP SIGNATURE----- --a8TFj+G0T0TRQ8kJ--