Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp7830pxf; Wed, 17 Mar 2021 13:47:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5QJzEEuzhDcdm6YJlC7i+y6NdLKToXyM0fvRVMWfqD4m+Nxcu+SxHWzeNllFf/P7bnfm0 X-Received: by 2002:aa7:c0c7:: with SMTP id j7mr44238005edp.298.1616014045601; Wed, 17 Mar 2021 13:47:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616014045; cv=none; d=google.com; s=arc-20160816; b=kXPB7+NAwKCgsYDDvluCx5DccHP6GgbB0Av7runx/BdVCnwEl3XZT6ryX/oZYZnyzn E0YUqO0CSYCvfxE31MoO62lD86zo52u3YKdAyLuihxSRfqxmyGgc9PuXHYtIJ1vLSQiT lEHVWcoiIF3AZjmyE2tiC23dR7w3Ul7fmYomjpfK/Wt3sLTt0JNmXEaWYaP9C9zE6Q3k HSPi7OdfgvkF/wlM3zf+jOS86NivhMaKEuB/FlhttlrWVUdGGk+4ErLKWqq1Dv4L3ora eaSfV5pkQrbnmIWxh8Z5nA95FS6oRxs6Rgh2HbT9NE5P218U7EFbHu9Ug9fSX/TcAvJK Jo5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=2CXN+d/twiG4yyu0WYA1mh9R2Qysqy5lfdR3mg0rvb8=; b=Bo7I6z8fpD8Pn0YwkVwgY3KC//G3HGVvs+MySEbeELz8FC1e2hBn5xh1y4UsLpJtY/ LHk5MIvblfS/CwjoUObhLqIJ8nPulQvh7AN1WbVkUUD0TgDSGAJ8FwMgl+BHJLqfBEVm a1kdQqF7D1vTwO+Q0C2xcBM1Rx8yHl6QZXjXwl+E0c0xyBSZslE+//Pa+K6ZnuPLZ+AR MLQUIJ2A9a36BV9B1JEJz9WG10kI9LzVpR1dBIfJECHFObTgr4plzuMrY/MZh2ZqKx7K hS/LoR99r+Cgbk0lFbkHuRltpx0JuHL/BGwU2Ur6dBfiJ8U9bbBl4AS/kIgRsO0PgEUk KfrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YWqHJ190; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n18si17070315edt.3.2021.03.17.13.47.02; Wed, 17 Mar 2021 13:47:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YWqHJ190; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S233469AbhCQUm3 (ORCPT + 99 others); Wed, 17 Mar 2021 16:42:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:41274 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233453AbhCQUmU (ORCPT ); Wed, 17 Mar 2021 16:42:20 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9FD6964E74; Wed, 17 Mar 2021 20:42:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1616013736; bh=r0TC3di/TlNjjD3qHhv8fnGNSa6YAjgH+x+eyoNbNFU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YWqHJ190zlBJ2pZ04hs7NYZvZpxVNza5v0V2Z+gBVGcvgJpFB6+ITef3W6lw+lJJD WMAFrG4JvMsYSJ3yy4BgHgOMs4NzRSYQNFY3Ex0njNhoQ1Bd76BYah5P4fqR3Fsmee S3Io03BwVKqNGOgfvhBddz6kPn4wwoRTCMYtJUYiSIAzIewWSEHV2N57H2akckG2+Y mIMkegernVgQxUWjlg+lwZCKuTpXohc4whd6qbihT8/iUBCxYr8D2VJKHQQU9YNfHP cWcP/XVKqtowIUVuUOQ4bb9RQqvDOtyjeYAHc+to2HwwL+bRV875b981L3aF3bpybA 14GJOe9BNpv8w== Date: Wed, 17 Mar 2021 20:42:12 +0000 From: Mark Brown To: Guru Das Srinagesh Cc: Markus Elfring , Lee Jones , Rob Herring , Bjorn Andersson , Greg KH , Guenter Roeck , Joe Perches , Subbaraman Narayanamurthy , David Collins , Anirudh Ghayal , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [RFC PATCH v3 2/3] regmap-irq: Add support for POLARITY_HI and POLARITY_LO config regs Message-ID: <20210317204212.GE5559@sirena.org.uk> References: <4b77a308ccdabbe96ed68623bd6eead9510e1fc9.1615423027.git.gurus@codeaurora.org> <20210312121916.GE5348@sirena.org.uk> <20210315203336.GA8977@codeaurora.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="cYtjc4pxslFTELvY" Content-Disposition: inline In-Reply-To: <20210315203336.GA8977@codeaurora.org> X-Cookie: Please ignore previous fortune. User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --cYtjc4pxslFTELvY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 15, 2021 at 01:33:37PM -0700, Guru Das Srinagesh wrote: > Since I do need to write to two extra registers, I'll need two > register_base's and two buffers to hold their data. This can be > generalized to "extra config registers" in the framework as follows: >=20 > - Add these two fields to `struct regmap_irq_chip`: >=20 > unsigned int *extra_config_base; /* Points to array of extra regs */ > int num_extra_config_regs; /* =3D ARRAY_SIZE(array above) */ I'm having a hard time loving this but I'm also not able to think of any better ideas so sure. I'd change the name to virtual (or virt) rather than extra since that's what they are so it makes it a bit omre clear. --cYtjc4pxslFTELvY Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmBSaaMACgkQJNaLcl1U h9BFDAf/UYAPrvexl9IIeo4Rn8K0QHNy4V5WXMEh1/H7ifjO709iyNuO8i3U+6iW HFTxBw5Dycdzv7nMklFD3eWZCV5Cyt9LfPNgDZlWY0BdYdz7ZvhnFW/UDHT7bIfj V5k9ekNtMz0+xi54Ee1K+SouaWkWB2Tte0h4YrX04Ci+DJniPEVT5Fzrq0CVTBWH 4WCmllhs1GlPuQUJsomJul+9UHcNQaPDRYiPr/e5jioDIe3rAzM5gyfhPGrfHiIR hzTh9mzSqCE7iqCNlezRW2mKkbVPwyJVz48llc91V0fW26EKK5Tni/KRP4pw0+hZ WIgJgZrnov6X2pcJD8TXs0TNKc7ujQ== =u8q4 -----END PGP SIGNATURE----- --cYtjc4pxslFTELvY--