Received: by 10.223.185.116 with SMTP id b49csp6705605wrg; Wed, 28 Feb 2018 14:05:39 -0800 (PST) X-Google-Smtp-Source: AH8x227P3RmV42c6FjqcfWMOuMoBysCqo1KIPXgwSw+GKn14xdnxpSliTCZ9+ro3CvpJx8J3082y X-Received: by 2002:a17:902:ad0a:: with SMTP id i10-v6mr19383688plr.130.1519855539324; Wed, 28 Feb 2018 14:05:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519855539; cv=none; d=google.com; s=arc-20160816; b=ZQxMB9WxBG+Riyej/RubZ+u+NPwYzGrDC9R6+e3RHMd+dXS6Y+k5GKf4XtZ4MejbEQ KwWTFWNUvmryIyggxi/6sPQLk/d+T9qKw7zI1euolaSdDRr8UvNXduanrpG7x3EUV6Hp MI2fIyEIX/N6nCHxl5v+8p/jlZW2GOkkuReMLzzm9YiVa6ZkGiCtFUNDf8o487cFl5hU oXSLVPXR0JuKAfh9W2GcEA6F2Ize1Qwu872+1M5QUxB4pXRdH0Y4LTTXd9OclflhJWdT nTXRJi/BLmIe+8mMvslHGxP7/gEOZI78p2lLrDMH4Wkg7LEwoWNEuRHMMEOwd92qlaX6 xlVg== 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:arc-authentication-results; bh=FyagOTq4Bkf/n/5QJKDdplBmUMtF7LphmsaBVgsySFs=; b=RdSHSBCTwqVuwgPt7D/R+W4nDCKvgvHd4dJR2m3/iNxM7dRXd3HpuwttqtMuzFRgd8 6cn4/w+B4NbLNeQM+ZaGzzF/yICMw6WWN/Zz7FnKLolpC58JTFJNs37wGGfaohWoqqfd wdTPJrsDWHYZX0SPCkYV4cjpxqPHPJjkXYtuiwfUPo+yjbRjEfnOHlS9PzZBIKfo/2X+ 8XMyXlO5eGS+Nfjo06F+tt33Kj7vOtddw+tlOG5+E9Vnewi7WtQnaS3Qo6U+zkbgSWkX HmrkXxPqmjkixKBE2h8qCE4rLWkinthwtKUVRa7TScJOqrnVVMCaSeLShHfEhLMDx60+ BqOg== ARC-Authentication-Results: i=1; mx.google.com; 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 u3-v6si455610pls.833.2018.02.28.14.05.24; Wed, 28 Feb 2018 14:05:39 -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; 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 S935253AbeB1WEh (ORCPT + 99 others); Wed, 28 Feb 2018 17:04:37 -0500 Received: from muru.com ([72.249.23.125]:58796 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935105AbeB1WEg (ORCPT ); Wed, 28 Feb 2018 17:04:36 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 84AAF80A9; Wed, 28 Feb 2018 22:05:25 +0000 (UTC) Date: Wed, 28 Feb 2018 14:04:33 -0800 From: Tony Lindgren To: Tim Harvey Cc: Guo Zeng , Barry Song , Mark Brown , linux-kernel@vger.kernel.org, Benjamin Gaignard , Lee Jones , Sebastian Reichel Subject: Re: [PATCH] regmap: irq: fix ack-invert Message-ID: <20180228220433.GJ5448@atomide.com> References: <1519747558-17257-1-git-send-email-tharvey@gateworks.com> <20180227183908.GF5448@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 * Tim Harvey [180228 21:18]: > On Tue, Feb 27, 2018 at 10:39 AM, Tony Lindgren wrote: > > * Tim Harvey [180227 16:07]: > >> When acking irqs we need to take into account the ack-invert case. Without > >> this chips that require 0's to ACK interrupts will never clear the interrupt. > >> > >> I am working on an mfd driver that will use ack-invert and discovered > >> this issue. The only user of ack_invert currently appears to be the > >> motorola-cpcap driver. I'm not clear why that driver doesn't appear affected > >> so I'm cc'ing those involved with that driver for review and testing. > > > > I gave this a quick try and it fails with cpcap. So yeah, you're right, > > it seems we still have the cpcap config wrong. > > > > Tony, > > So you would agree with my findings/patch right? I certainly don't > want to break regmap-irq in general :) Yes I agree that it breaks now things for me, so if it works for you it seems we're good to go. But I don't want to ack it yet as I'm worried that it gets applied without the cpcap changes which would break things :) > Adding Guo Zeng and Barry Song to the thread as they were the authors > of the ack_invert feature (a650fdd9427f1f5236f83d2d8137bea9b452fa53) > and I'm not clear what happened to the chip they were needing it for. > > > Things do work with the following patch and your patch for cpcap. So > > they should both be applied together as a single patch. > > > > Care to fold in the following change and then repost your patch? > > > > Otherwise we might end up breaking things easily for booting or > > bisect or stable. Or else the patch below needs to be applied first > > to avoid breaking things. > > > > So cpcap needs to write 1's to clear irq's not 0's right? Correct. And I tried to follow what the Motorola kernel tree was doing to configure things but got the configuration wrong but it worked so I never had a reason to doubt it before your patch. > Yes, I can certainly roll in the fix for cpcap if everyone agrees > that's the right move. OK thanks. > I'll wait for some feedback from Mark Brown as well. OK Tony