Received: by 10.223.185.116 with SMTP id b49csp5112411wrg; Wed, 7 Mar 2018 06:38:02 -0800 (PST) X-Google-Smtp-Source: AG47ELtpp3kZb0BThqiyGDuV6H2KCqULVcwO9wsEnqAM6+KK2LWLCWjI7NOp4Szfr1YbaPGrpAcP X-Received: by 10.99.117.6 with SMTP id q6mr18176209pgc.146.1520433481929; Wed, 07 Mar 2018 06:38:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520433481; cv=none; d=google.com; s=arc-20160816; b=QsuYCIJDMxwJNsvBx/Nj8rgmB0Od3iZGx28FLIK8t0Bv9uagdB20fREpV17rwEy5oF WzwWenIZ544WMEKgl8jdxrSg8bD+pmxnchOJyyQ74OkJ0qDWfb27BHYvCggeFyxgVz17 S1m+EPmnqWLb/WsJl4lIj9UlmmlAs1qyz29N4CEu3AccM1q556RMQY9gHGKkZjbimJHz 8adfr9if1DOmehuIX5LKg1Nu8+IH+c8sWbtsaycC7BI6Me4KRiItrG2ieN85Xp9Fdarf k0n083h+sCRDfnPV56eGV5Eh4Ev8oNRYDhVt9dQ8DW8u8vHguwgMfB9TbUMsA4bgML9t aZyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=lnXltCaLjwmLSllZ9WNpIcJC7i8E0elHdL25EjGpoQY=; b=Gkf3VA2+4uTSfQ4lchGeBf/pT75k1fSoxn7eoxoYe3bW0xiqaNB+kfHLa1qmKkAkh/ 8GbKrplyDNgkuDtfQPoS9qzUgzu5iB1T1RRJlsjz5MUzMpUGpPAZMHP5p28+a19qlnrF 23Enu067pfBXobMR50z7xfyg2qw+ayh7ZaRORqg98l4LAjkTGHAwUWExWIormHU4xtMB QVUCrD+FRnWlYc8I4Q8jB40EBRbVUpnpFU5j5OnoGfUlZejbY04xZtDWbYVAoej/yGSE uv19AYf136YQlH/lYG7bE8/k70jlOP2pFP6JBcg+LhAR7nP9Ckobp7JFGv8tHqGvlhhe +6Ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=ZUaf75z8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1-v6si13083058ply.22.2018.03.07.06.37.47; Wed, 07 Mar 2018 06:38:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=ZUaf75z8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754464AbeCGOgd (ORCPT + 99 others); Wed, 7 Mar 2018 09:36:33 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:57492 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751189AbeCGOgc (ORCPT ); Wed, 7 Mar 2018 09:36:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=lnXltCaLjwmLSllZ9WNpIcJC7i8E0elHdL25EjGpoQY=; b=ZUaf75z8jqeiiouVSq4uVNUsh nVnx8JIcYxAVI4Zyux+kvqxUAXtszulpV+ZO9xBDT9TfxzTVWAxZcJ2bCW+TyCOOD0sHnR1zV3PHY RYMxjwGNzMznE8vZDpyT2/zYHfLjpUoII59Ds3eVShpTfpG6hv9ZM+X2jGZxGHOwTb4Pc=; Received: from debutante.sirena.org.uk ([2001:470:1f1d:6b5::3] helo=debutante) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1etaBC-0000Fd-AK; Wed, 07 Mar 2018 14:36:30 +0000 Received: from broonie by debutante with local (Exim 4.90_1) (envelope-from ) id 1etaBB-0004PH-Ph; Wed, 07 Mar 2018 14:36:29 +0000 Date: Wed, 7 Mar 2018 14:36:29 +0000 From: Mark Brown To: Tony Lindgren Cc: Tim Harvey , linux-kernel@vger.kernel.org, Benjamin Gaignard , Lee Jones , Guo Zeng Subject: Re: [PATCH v2] regmap: irq: fix ack-invert Message-ID: <20180307143629.GG7290@sirena.org.uk> References: <1520283457-31637-1-git-send-email-tharvey@gateworks.com> <20180306145749.GC5799@atomide.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="9/eUdp+dLtKXvemk" Content-Disposition: inline In-Reply-To: <20180306145749.GC5799@atomide.com> X-Cookie: If you can read this, you're too close. User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --9/eUdp+dLtKXvemk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Mar 06, 2018 at 06:57:49AM -0800, Tony Lindgren wrote: > > By using regmap_irq_update_bits to ACK the interrupts we use the masked > > status bits so we take care not to affect any other bits then use > > ack_invert to determine if we clear or set those bits. > This change to use regmap_irq_update_bits() now breaks things for > me with cpcap interrupts. So it seems to cause a non-inverted mode > regression. There should be no need to read the ack register, I > gues that's the whole idea of having a separate ack register :) Yes, that'd be my expectation as well - the register should be just write only. regmap_update_bits() definitely isn't the right thing here since it will suppress the write part of the read/modify/write cycle if it detects that it didn't actually modify anything as an optimization. --9/eUdp+dLtKXvemk Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlqf+O0ACgkQJNaLcl1U h9AZ0Af/c6BIvxLuu1Qn8ihGVSG/xaNc+NnuCFm3t2m9VBTaj+B4X/cZfpA1q9vs B85yE51ewcb7E6tFbJXhGMTOEN7Ax0Hv7bE90jnNrPKTBvwqvxvxnZxk2NgCZKUY BOAALv+4QXFJJo1PMYtTkc+2MH+t2BfyYxVH7+pqJBQfHFZxcq67Gw1C2efcC4Lj 8UKrPtkvTKkQw5J2XKbzX/66cnmy9/A63hPvHB02Qs9UvhV8Gm8ME7uQZ98+isQ7 dCh76dWVRLIcT++WKaRrgsBcuHSuv5xlFzMbusZXBbzwS2p8D9/DCG72WT9ak2E6 fM7tlLfS+Ac0DcCo7lT7ET7h9s/LBQ== =HiLJ -----END PGP SIGNATURE----- --9/eUdp+dLtKXvemk--