Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1194863pxf; Fri, 12 Mar 2021 04:22:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJwQsHaEZTMmM88QKqYPtHWNLiQYK7zOiJduY3B0h77kyIBVBawTr3VJjzh9dQTxQHyv9+bj X-Received: by 2002:a05:6402:26c9:: with SMTP id x9mr13571854edd.322.1615551725753; Fri, 12 Mar 2021 04:22:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615551725; cv=none; d=google.com; s=arc-20160816; b=whNILcLe32rRcMMs6TeKOtr14Mngt658rgQnpNeTJo0FJq18vbuUl66nRmnWazcvLo QcxS/oR7avJilU1uQO9il2VXrdr8I2KkLSaI2I4o5RMalAI2F//GZriQzGtdnEODcrxd 0DNYG8L2Wx1wvrFVNIX0uFb3yRWBiOwFqxIhP5FIxn2coYziQDm/p1wW3v0XXw/sDEYq OJ/ttZeMa0HdDpdUPUECkUj/yCsMbVMOKhVJV2MeRiVj/e2XwqJJwQGLqAd0wd8ZbFoN vrt/ZX1gPBV6V8LD+eBf75b4ELI0RKhZLdgpXmcCU3/9yy4e33LgoqiirGdC6jHKpTjd GUaw== 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=ZVgs1kmNVjnQsqEDVCuzfF7dYpaysi5rGISlw4yyvbo=; b=Lri93BDUA0ud5G9wGcksQLgkvauT8bnsG3wC1dQZICuxJL0x2zFPL5ktXg4CNauF0t q3HQmDZmDWkvLajto/69XnCD6qkjNeh3AP2az88NaMQcyLsBv1jq2lAT+LrZUKU0trFR MB3dqVH2PvIVXFV+QG/HhxGtlkWBBcml4k6f24lYQCsglRSlMZFaW3FMbcBsazIBf+Le zbIShfl8FeigLjLDSQTilTpKZS93q0R+0KNtoT08CKNQE/6SBP3GZTaxr5AAlFdBMraB fcmpg5j/+ND+/7lyBcB12LFbS5GrNTmUPhU+cKrq1QVPQD7fth1+mzlrtJJvML79lWpJ zWLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GstXbHtn; 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 gs18si4149733ejb.648.2021.03.12.04.21.42; Fri, 12 Mar 2021 04:22:05 -0800 (PST) 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=GstXbHtn; 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 S229501AbhCLMUq (ORCPT + 99 others); Fri, 12 Mar 2021 07:20:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:57104 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229487AbhCLMUa (ORCPT ); Fri, 12 Mar 2021 07:20:30 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id D0C9C64FDC; Fri, 12 Mar 2021 12:20:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615551630; bh=ZVgs1kmNVjnQsqEDVCuzfF7dYpaysi5rGISlw4yyvbo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GstXbHtnkALqftowLoX9rsUeLfuhMMuJgJ1THSWVR3zUDNziK3b+QFcdqMw9olhlW LDakxbc/RVg1jzA7/4X2WHRtnx+nLZnPnFezfiF80iVJWm63uP5xQbJg8scLAjgT5i YzTyZm8KbHCcIm6JImUjEPgBbkLeOadvI19Ko3FBFVGTxX5l/5GU1ylJ+R59vhjL4B zCifhQUF1ludl7k8tBAddcAwNHJOrIn5za4wFIIHB1b/1JUalNEHXSwHAnIvavlK5u 2TNdfA4sQXa1e1wU8K0z6bn1ksq/oGL3W/lkDf4t8IuEYh5rdI2IiylLVBBlu9SCzu DkCcvxk5h0mFg== Date: Fri, 12 Mar 2021 12:19:16 +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: <20210312121916.GE5348@sirena.org.uk> References: <4b77a308ccdabbe96ed68623bd6eead9510e1fc9.1615423027.git.gurus@codeaurora.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="FEz7ebHBGB6b2e8X" Content-Disposition: inline In-Reply-To: <4b77a308ccdabbe96ed68623bd6eead9510e1fc9.1615423027.git.gurus@codeaurora.org> X-Cookie: Lake Erie died for your sins. User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --FEz7ebHBGB6b2e8X Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Mar 10, 2021 at 04:39:53PM -0800, Guru Das Srinagesh wrote: > If an interrupt is already configured as either edge- or > level-triggered, setting the corresponding bit for it in the POLARITY_HI > register further configures it as rising-edge or level-high triggered > (as the case may be), while setting the same bit in POLARITY_LO further > configures it as falling-edge or level-low triggered. I think you probably need to bring these three fields together into a single virtual field and then map the values within that field using the existing type stuff. --FEz7ebHBGB6b2e8X Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmBLXEMACgkQJNaLcl1U h9ArdAf/e8Qn2NUnswULmvDI6nNSEiPGDSCVIUYCGoEEmFNDAisrrF2kQt2dKYi/ VqSE8DbFkQSzpokfLGMlrTXld2oH/866ZwoeuWu/tlepL6XqSVG/ca/WjyHOjhcu RwE4NT1+PuWJ0+dkEHc7hDJS9QltabZmZ8HyTEGrCPhWY4YrA7/neEi3cBNQcQFZ rWi5ZNk6WMNH1VmUT/pWYQV75q8pRmlzptZnvnffdIlBnOW5gzULCAsBOb3yPAb5 J0JCG9gAGhxN3B1LBoC+HrrhM6qlbT0zM0FmWuM3eHFnUgRobP8I/fVx85Dokkp4 Wtrugocig62XoEm1LJxkp52OLwYwSA== =qEWY -----END PGP SIGNATURE----- --FEz7ebHBGB6b2e8X--