Received: by 10.223.185.116 with SMTP id b49csp6664823wrg; Wed, 28 Feb 2018 13:18:32 -0800 (PST) X-Google-Smtp-Source: AH8x224nAivOPcoRGQtOFct+GPUfvNZp0S85/dCGYl1z/0CFHIYQmUPLFOlNHOiYIjWW/8sHGaoX X-Received: by 2002:a17:902:9693:: with SMTP id n19-v6mr19176690plp.69.1519852712112; Wed, 28 Feb 2018 13:18:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519852712; cv=none; d=google.com; s=arc-20160816; b=aQ2SUeTlTucRBSwCqp8UL1UzdNMVx5ScfGu+Prdm1gbD27boCq+osHREE4oWB4//jJ FQS0KlNA3UJdnrEvb9ByYblziX1deTy2v07O2mPiSZT+t2t9MB3V0/C9o3wlShbQ0tsk yWTvALROeBpiFKFDIPX/n8ZNjh5Ux7k2Enpq2uuk9Kj/9wWE5WIb9ihhN2z8/p/Spop+ ckVOMrOtbCQex1RTPeXcrsI68FBS1VxwxOAxGLh/bBdM3Bx4AKiZf9gn3qPZVHLo3Wnf eejH/JKQiAtYFZD0I3Wke6awxqExQ3vqC2H3D13KFfkW9bicVF6HG8gkarMFvFyAC9Zq ja/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=LmtGoot/gcYPkSH22tq/3UlIOOpDqMicRyhvf/wiQYI=; b=QyL6JollP51URMkLA4naJbqV8uU7twcRlvRv11ZTYwMI2a2L3wvm4frC6YHL/V2DaI Bf80BGMmw2uThajcy7za4WN21Qj0UkETLfE6UDVDzyE1dsx8OHj9k94EJpJ35OP26c9s omi+KmWiPV02JscoWB8gCrj9eJ8jKUqNPNKJIgUfwEqrDUPSZFgQkmGz70c/weOUaWUm tbD362VywMSeZF+ZawVTt516D7qmrHYy49R6SCX3pB3XI8Gk2qO2LxoIVV741Q5ONYqC Hs6GFw/+O3SVmBsr6XzHPM1f20VFS+z5L6i01mPL/CgxZ/apNYUuBWunsYAY+MJW2B7E kRuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gateworks-com.20150623.gappssmtp.com header.s=20150623 header.b=qacwoy0k; 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 s3-v6si1787847plp.461.2018.02.28.13.18.17; Wed, 28 Feb 2018 13:18:32 -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=pass header.i=@gateworks-com.20150623.gappssmtp.com header.s=20150623 header.b=qacwoy0k; 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 S934866AbeB1VRm (ORCPT + 99 others); Wed, 28 Feb 2018 16:17:42 -0500 Received: from mail-wr0-f195.google.com ([209.85.128.195]:44249 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932974AbeB1VRl (ORCPT ); Wed, 28 Feb 2018 16:17:41 -0500 Received: by mail-wr0-f195.google.com with SMTP id v65so3907303wrc.11 for ; Wed, 28 Feb 2018 13:17:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gateworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=LmtGoot/gcYPkSH22tq/3UlIOOpDqMicRyhvf/wiQYI=; b=qacwoy0kQf9HhhlhAxw2xxuJH5e7d/U+3in+WC7m2IUN6U+P+iH55136q2uQ5nRvs1 +gB5CvpMuMltFMk7Wyhr3MeC5rQjaV69T4VPUZLDaR7M5ZyQGNGG8uqK2xo44iUMCxjd qif16zYqAEDGy9ffBlvuddBvkOUWcGuJ1Yj9EjdQj+uOGuDbho2aY6VrtBL9RxpP3HWZ nK5Q2Rgd8zfEdqyuS4Ot40vgz4yPsHMVpYFYENHEDaVMt0ndlhr5sfaom4OgSC18a+sJ XHoRyb/tl9ogkHpi1W9cuOLIZhOeQMJR5xpmtJjbhTNfDoMkHBkZ3GiW9FubaIqIoyfG P2HQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=LmtGoot/gcYPkSH22tq/3UlIOOpDqMicRyhvf/wiQYI=; b=DzIIoDgebzYOOY0oAqkIISwG6siwFgl5Yt3hM1fPYdmvf2XhCH3CqC2eKsvmJyhuh3 nlbGfAeGT16JoR1SMf240Ry3c8yh0yX6Q3SCRjtboPX+N6GRvoiYTEbl2sYse1iNgrM+ lk/j80pCL1NbE+4zV5F1rIgPQKHL93FTTlN0MY1eyrkhRwYSydL3ZH941b1doQB5yWUB 9Ly3+ZEcPAH9kn1H/gUw7aS6GdRLW36mr/m1LZxlNP+lMY3GLj3InvicawKtKXQmOcBI /NhQfC3tFWf/JBTPVSBMKp5dDqOtC8oMyQQ205lcecmdpdy1fPuPyE7cmRbD2+od1/EN lO+A== X-Gm-Message-State: APf1xPAWBzD/au0/VNNcAbCHHqQpjc5lY/impeWuw/XMxsFIHty81yXJ IYF4896ZlBzxSaPD9o9PJW9t0O/Xh0NgxsgWsEGY7w== X-Received: by 10.223.185.112 with SMTP id b45mr17118519wrg.159.1519852660187; Wed, 28 Feb 2018 13:17:40 -0800 (PST) MIME-Version: 1.0 Received: by 10.28.6.66 with HTTP; Wed, 28 Feb 2018 13:17:39 -0800 (PST) In-Reply-To: <20180227183908.GF5448@atomide.com> References: <1519747558-17257-1-git-send-email-tharvey@gateworks.com> <20180227183908.GF5448@atomide.com> From: Tim Harvey Date: Wed, 28 Feb 2018 13:17:39 -0800 Message-ID: Subject: Re: [PATCH] regmap: irq: fix ack-invert To: Tony Lindgren , Guo Zeng , Barry Song , Mark Brown Cc: linux-kernel@vger.kernel.org, Benjamin Gaignard , Lee Jones , Sebastian Reichel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 :) 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? Yes, I can certainly roll in the fix for cpcap if everyone agrees that's the right move. I'll wait for some feedback from Mark Brown as well. Regards, Tim