Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3425870pxb; Mon, 16 Nov 2020 14:31:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJyvNkhcITWsQ+3wamA18pzceYoLMqaRVK+7CM056aAKH2i7xNs7BkBtDuPjOyHeZTwTghgm X-Received: by 2002:a17:906:5a96:: with SMTP id l22mr16580139ejq.303.1605565902289; Mon, 16 Nov 2020 14:31:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605565902; cv=none; d=google.com; s=arc-20160816; b=zN5hjU+/K1pCZ+7tdTji8UmxJ0hfDfQdRKLM+IkHCQhNqYl/xaslO/3hMxNAdvxVfx mMetRmCavGC4RKKZJtLys22HrnHPFtI9eDXrlnh4iHSr6ZolbEEwCSFQ4zIvCdFx0ShS aws7lpPRG0upM7VWuA5cuFIiUYc54sTrT5xkKg8xTO1TYr7oNthARUVsa1Cm5WA+7Xja mgXRwmj9bh9xpx0THw1r1JTRPjcAVf2O2IJhCAFJLJjA3tpLHXfwtgWpxMaMxYUuCiur zk9caExJ6qgqPxYSJFYDpVVK9rxGVio9pzbY9wggMjxv+g0rgq0M291Sm9FHR+kwiYme FWpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=u+jY18oo1UjFW/rWqk7bV9L7wooc4/HxkqEuV0hRX98=; b=VCTCxwQjSweZdtzUYcm7tuDwublJ6Y8zWeMFPIlLUwTeefFJqDu1mW0npgkbgPGROG mgV3I5lCIoCl0N3loa9xVQqTG+w8fNqWAyyaQOeJ4v0caAHid7ka8wHeFsiEm5khugF5 J0GOzmrI+8yEWIEenuuwbfndHN0xFVlqn5SmNzqCTsY4Bf3oY3l4cBDktz+DC6ZUWYLc 0fpJh5iAgUW6DsmSREhckOhs0bz31SwepHDpwcAUNqTKvcJZfVFfHKUm1BXXsVGlfNq3 7+ByGd6O6jVZSHQdsQx877bm4aDTCvtTCZULvnnI0EsZZCMLbDRGsV90rSxm9SBkn/zq eL2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gateworks-com.20150623.gappssmtp.com header.s=20150623 header.b=KyPKzdTS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a10si13517645edq.316.2020.11.16.14.31.19; Mon, 16 Nov 2020 14:31:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gateworks-com.20150623.gappssmtp.com header.s=20150623 header.b=KyPKzdTS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387985AbgKPUoN (ORCPT + 99 others); Mon, 16 Nov 2020 15:44:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727891AbgKPUoL (ORCPT ); Mon, 16 Nov 2020 15:44:11 -0500 Received: from mail-ed1-x543.google.com (mail-ed1-x543.google.com [IPv6:2a00:1450:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7444EC0613D3 for ; Mon, 16 Nov 2020 12:44:11 -0800 (PST) Received: by mail-ed1-x543.google.com with SMTP id t11so20094636edj.13 for ; Mon, 16 Nov 2020 12:44:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gateworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=u+jY18oo1UjFW/rWqk7bV9L7wooc4/HxkqEuV0hRX98=; b=KyPKzdTS+NAtkOGEePz+fWCRmjv85Yid1fV8bXkOI5aOLIuIn58HvqNgkOE82zSMel VYJoaHuRO/8OWvunb5Hj4K3anEvHdQnWd1PLjso4JmZ75hQC9J1QthFy4PNakc6Bo1rk MUQDQikApgXZh3Dwq68wZ5JN0pTL505TVUUt7f6BQWg2PviF3oeixEkVetolImg5oSJP 9HGlD9fqIny0uUCEV3twNtI4uHFfTD+Xk8gBbD0cnOSpS9Hwr4GLfLErmZ73dzJdE50o ix3icZq79f7Iqtrv4676eewymCwZzk45Ukmb/dZbf89+rTKUrT74NTcQN6Cp5nEx5Rej CwWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=u+jY18oo1UjFW/rWqk7bV9L7wooc4/HxkqEuV0hRX98=; b=tnbq2ZgAlqcF5rUIc+pDExQeCI4VEJWWwY6WVTo5Ci3do3qHSCrNaxXdVfGYlQnfQo AbbTXmX/SUer5CVIxzP1a21GbSxjW4JK+qlALZX/qi+Doker3b5QrPZ+aFhXvrQqDDUh o49+nGPWjDdJir8d2F6g19ZgyFth3yb/qn9D0wSTCo3Ai+SST/5ACoRCdIekGlg7R1qZ VS0/7fh3htghkU+ujTZI23E+wd0Ftr5VojuaexfYypyc8eaExBaFVVLdmuaGRgOpnqgl iu0m0YqM1Gjb4gUK7rrriCJOXC6wb3yTDR1AKulMORY8E8Snw9K0+wptC6a18mi3dcRO TIRw== X-Gm-Message-State: AOAM533u/Gu957WqFLVEr6wtV1KiQP5nnwPV8/TWQsi+uV439kur4w/B DTUnf0Al7lhIC+sXJ43rwFKEXLpswUMP9PVh6yF+Cf8qCLtQBP1z X-Received: by 2002:a50:da4b:: with SMTP id a11mr17678317edk.109.1605559450133; Mon, 16 Nov 2020 12:44:10 -0800 (PST) MIME-Version: 1.0 References: <20201111170613.46057-1-tony@atomide.com> <20201113102134.GI3718728@dell> <20201116185903.GD4739@sirena.org.uk> In-Reply-To: <20201116185903.GD4739@sirena.org.uk> From: Tim Harvey Date: Mon, 16 Nov 2020 12:43:57 -0800 Message-ID: Subject: Re: [PATCH] mfd: cpcap: Fix interrupt regression with regmap clear_ack To: Mark Brown Cc: Lee Jones , Tony Lindgren , open list , Carl Philipp Klemm , Laxminath Kasam , Merlijn Wajer , Pavel Machek , Sebastian Reichel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 16, 2020 at 10:59 AM Mark Brown wrote: > > On Fri, Nov 13, 2020 at 02:06:29PM -0800, Tim Harvey wrote: > > > asserted? I'm also wondering if my issue is that I currently have the > > interrupt registered as such: > > > ret = devm_regmap_add_irq_chip(dev, gsc->regmap, client->irq, > > IRQF_ONESHOT | IRQF_SHARED | IRQF_TRIGGER_FALLING, 0, &gsc_irq_chip, > > &irq_data); > > > Perhaps this should be IRQF_TRIGGER_LOW as the device will not > > de-assert its IRQ# until all source bits are cleared. > > That's clearly an active low interrupt, it will break things if it's > registered as edge triggered. Mark, Agreed - I will post a fix for my driver that changes it to IRQF_TRIGGER_LOW What are your thoughts regarding the issue of regmap_irq_sync_unlock ack_invert ack'ing by writing ~d->mask_buf[i] which ends up setting all the other bits not trying to be awk'd? I would say that the device allowing an interrupt status to be 'set' and keeping it from releasing its IRQ is strange/broken for sure, but I'll need to work around it somehow. Best Regards, Tim