Received: by 10.223.185.116 with SMTP id b49csp3907467wrg; Tue, 6 Mar 2018 06:59:18 -0800 (PST) X-Google-Smtp-Source: AG47ELtCSYrKJc0iUzd7loRywjcQbbjumPf5BePnwjbvmY1eNNrZ7Q/t2IM3jO/0gktNcJxIw/fn X-Received: by 2002:a17:902:e85:: with SMTP id 5-v6mr16971462plx.420.1520348358216; Tue, 06 Mar 2018 06:59:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520348358; cv=none; d=google.com; s=arc-20160816; b=drTEFBbL6K7AKTzjjRwp/vI2o2tfB+a9PYuDGa9VxnJrB2O7tC97Hv1/gfHCxfPuuz p505cX1XEOWWG1C36f9xpwTqRRIu9yNtfbuZK1mHJx4Cw4pIPUvoD65ujlnfMOj/4NC0 ChK/6LN9sbjPbNDIi84tzGBQBm0Fz7dE1xZu+UHVxlXDKunM5Lv/+txWDy6iD7bZV4qu d43/9zDGo4un7fzDCqRDhVJlKFWQ+W+pbWrJO+ZvGdG/gHNQgYV3JeXhBIN1KXAC2Pfi GdlLRu2kKxPQXwuCA8rw1ahol/Zirt/SpPMMgn+wtKxYNMEo6BiREo2NbQxQs+Du3H1j IzTw== 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=qy+a9J2gcLnMw1KSaYk95dHb9EdcpchXX+fKO2YUnPo=; b=hvqr99G/e3ftsULCvtwpO3ZS1n9TkISx1ohrIDTnHGYCylqSPJp8CFGMzzTRuZCE0R XB22bN6gKz8f2b4NS8gAgcifNCzwBgTTeFs2gLyW1tzNGhulBdvJh5n/dTQuNJiXcpcT VZ8/M2jDSkcLRivOPh2eTlL9tWkjrydqW4srwF6JRke/AuJS0uHIye/S4s2WXXtZy2lm BSQWPXgw2A5Fgm2MlIe8c27aCI6BdDdS4aSAkOUPnU5eXa5ECzRf0qeHiP+TzQJWe2a6 epWvMeYLXVgVuuPX4qQ7g6TNN/BuE77VojD4u5YZoPVNvOR+In62x0xIB0jC39/vTgYC Sa7w== 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 y67si12156665pfd.195.2018.03.06.06.59.03; Tue, 06 Mar 2018 06:59:18 -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 S1753627AbeCFO5y (ORCPT + 99 others); Tue, 6 Mar 2018 09:57:54 -0500 Received: from muru.com ([72.249.23.125]:59640 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750838AbeCFO5x (ORCPT ); Tue, 6 Mar 2018 09:57:53 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id C81B480B8; Tue, 6 Mar 2018 14:58:47 +0000 (UTC) Date: Tue, 6 Mar 2018 06:57:49 -0800 From: Tony Lindgren To: Tim Harvey Cc: linux-kernel@vger.kernel.org, Mark Brown , Benjamin Gaignard , Lee Jones , Guo Zeng Subject: Re: [PATCH v2] regmap: irq: fix ack-invert Message-ID: <20180306145749.GC5799@atomide.com> References: <1520283457-31637-1-git-send-email-tharvey@gateworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1520283457-31637-1-git-send-email-tharvey@gateworks.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, * Tim Harvey [180305 20:59]: > 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. > > 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 :) > The only user of ack_invert currently appears to be the motorola-cpcap > driver which we find is incorrectly setting ack_invert and thus we > fix that at the same time as otherwise it would break. Regards, Tony