Received: by 10.223.185.116 with SMTP id b49csp5289325wrg; Tue, 27 Feb 2018 10:40:14 -0800 (PST) X-Google-Smtp-Source: AH8x226MRmbBnOWPOLQlXjG3SfD+5Bk6FgkyfpaaeISZHGwZh//f9eD87cnsh0y0V3+XSy1i0jzf X-Received: by 10.99.144.74 with SMTP id a71mr11879840pge.244.1519756814074; Tue, 27 Feb 2018 10:40:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519756814; cv=none; d=google.com; s=arc-20160816; b=blEBrDEEBEZCzzQZ8fepkEwrgwmFwhPZkAjh9y0UP79neTTmHUwwzzlcWt9hYoqGTz Mjc3Sgdwmaf4CS5c8FZV6e3G962kUMaHaoNJHfIK/aI066ixjHBlC7s3Vl24QPDViM+6 Kap6LISe/TMDonCBSjY8MbmmYy4DPAOjPiqXIi1Zg7bQoqNKNTX2c7q/GcyAnLvk1VNy K4Xj8FE5TN5bFxEgie84qidSf4jrjgfT0qjUdliczebO3w89oMfOa9MY0iTGZUllrpQs tlzgK02u3gNCjkfpT4l0EX2CAwkUmQdPT04BTH1HCaaatgx6GVIImWEJ6CSX7m4RDokr VsSA== 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=zalBo4SE2bbmpV6+vwnQI5CrB60p1eFV7y9giZtpW2A=; b=y78O8pZ0mbBuaM+oNkh08FgNBoVF+6+We+WZIekv83CBTe7zd7Wg9GZPWm485i6rh7 PTnFOcyj4lcb3Fjci4UoGSRRUMzhdmx+ppwcym8YeFQzY/CWAKcGPWHj3WqHj0y2Bi+v CgVmddB9PHzhY5M5ucGihwRmUaWD4mgu2f2OiMCPEzJamdlhO7A+3CvGOuo3oHwU2TF5 5kWdBX48N3vKzuTOkrTfflRZKQ3sjAtCEBzqytXhF1IMZ7tHQU61hEJiCkORBL5JliE+ 8xhPvJTZYZiA2bd0ZFJ7DVurIE9OcPlmy9EYIU/ke/NkKnvmGt+OjHzb5ofyORHwLM5W jmqA== 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 a63-v6si8997963pla.44.2018.02.27.10.39.58; Tue, 27 Feb 2018 10:40:14 -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 S1751801AbeB0SjL (ORCPT + 99 others); Tue, 27 Feb 2018 13:39:11 -0500 Received: from muru.com ([72.249.23.125]:58618 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751518AbeB0SjK (ORCPT ); Tue, 27 Feb 2018 13:39:10 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id E801480AE; Tue, 27 Feb 2018 18:39:58 +0000 (UTC) Date: Tue, 27 Feb 2018 10:39:08 -0800 From: Tony Lindgren To: Tim Harvey Cc: linux-kernel@vger.kernel.org, Mark Brown , Benjamin Gaignard , Lee Jones , Sebastian Reichel Subject: Re: [PATCH] regmap: irq: fix ack-invert Message-ID: <20180227183908.GF5448@atomide.com> References: <1519747558-17257-1-git-send-email-tharvey@gateworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1519747558-17257-1-git-send-email-tharvey@gateworks.com> 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 [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. 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. Regards, Tony 8< ------- --- a/drivers/mfd/motorola-cpcap.c +++ b/drivers/mfd/motorola-cpcap.c @@ -100,7 +100,6 @@ static struct regmap_irq_chip cpcap_irq_chip[CPCAP_NR_IRQ_CHIPS] = { .ack_base = CPCAP_REG_MI1, .mask_base = CPCAP_REG_MIM1, .use_ack = true, - .ack_invert = true, }, { .name = "cpcap-m2", @@ -109,7 +108,6 @@ static struct regmap_irq_chip cpcap_irq_chip[CPCAP_NR_IRQ_CHIPS] = { .ack_base = CPCAP_REG_MI2, .mask_base = CPCAP_REG_MIM2, .use_ack = true, - .ack_invert = true, }, { .name = "cpcap1-4", @@ -118,7 +116,6 @@ static struct regmap_irq_chip cpcap_irq_chip[CPCAP_NR_IRQ_CHIPS] = { .ack_base = CPCAP_REG_INT1, .mask_base = CPCAP_REG_INTM1, .use_ack = true, - .ack_invert = true, }, };