Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3433794pxb; Mon, 16 Nov 2020 14:48:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJyjHuHvFxFc3tIaMNmVy5UXtZNt2I00xlFAamTrku1DEW2NYSJAlZ3aiZkalJz01gKuVE4o X-Received: by 2002:aa7:dc52:: with SMTP id g18mr17955544edu.369.1605566897200; Mon, 16 Nov 2020 14:48:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605566897; cv=none; d=google.com; s=arc-20160816; b=loYGccWyhlc1GzDL/vsk/lVlUOomeElsqp7X2NQ9HbEuAKSV1jy4LeEfHL371iPSgD gxT7NX5T6GJUfsm/PJtfCm3AQtnCboNlz+VliAcj/5gCn9U+NnPMdPVroNyHE2be7nqQ GyVN2uFt3c8TCTTNF/kBNuRLBNm81j+VC6rQ8zb/+5TESOdxlBqqwE+PorDWgWmp4Q3s HSRUxDA53hx2YsrIiureFPbMOKEFdDPqjQ5PPv4iSOMe9NiAeeMp+aNMd+NisNmnJL6e UxSfaMlxZKWo8SLZ/hYWOP5NADp0rcDsIE3N8LlMvtngjZsPPeauFpEaJlxExvzf28mz 3Oxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Prh/bourKKU6farA3NFQisXssErNDlQftWdno4MW/jM=; b=I2tEqHNrlqXsn4Cije/QbX20JGdOBUR7pAoZ3Eoo6F7bxth4AvlXKDXKfaVX1WZRzz wf2+jAZbgGTpLo/jwhi2fLPioRHd26hXQCORDn2edEbavC5Il0eT5ywgTlmmk6GP5hUk xbad8d+tkOPXF2NkkSs2nkK8KslOsKFgx8QD/WQ5H5yXWrhaTWg8BWkQOvCSYQjlKOdC 6CAkSw+1hiRTs/Id3c0UuwZxh+il8LmcWPMa8NNXacmRvLTHa3oJ20z3fE7f4lt0kJuZ um8dt2/3d8yQ8HkLiJD0/w1be6YbxzqIfTzHnGKFk/PcmSDLZtWBPmbJG8mGJluni+XU sj6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=X376lL2c; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rn28si12612569ejb.585.2020.11.16.14.47.55; Mon, 16 Nov 2020 14:48:17 -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=@kernel.org header.s=default header.b=X376lL2c; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730711AbgKPVOp (ORCPT + 99 others); Mon, 16 Nov 2020 16:14:45 -0500 Received: from mail.kernel.org ([198.145.29.99]:50756 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727478AbgKPVOp (ORCPT ); Mon, 16 Nov 2020 16:14:45 -0500 Received: from localhost (fw-tnat.cambridge.arm.com [217.140.96.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1612D20888; Mon, 16 Nov 2020 21:14:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605561284; bh=gfPKngfD4EQ5z/E0JWLSCaRtEJGlbAeJZSIz7NPV6iY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=X376lL2cJOXe6PhlDjQ5Zwe9eV8jBFDfigG4u1a3nqjHJmxEgescHE+takZ8xjEFt NPsWJAwEbTdLp5YwOv3AJwnV7WVSeBfVHLQoNfQH8MEq17sLZ/niUMQAfcNxdY6kq4 vbPd4OELUe3lxc3M9iP6uNOM3WmyPJiSDEhMqewY= Date: Mon, 16 Nov 2020 21:14:25 +0000 From: Mark Brown To: Tim Harvey Cc: Lee Jones , Tony Lindgren , open list , Carl Philipp Klemm , Laxminath Kasam , Merlijn Wajer , Pavel Machek , Sebastian Reichel Subject: Re: [PATCH] mfd: cpcap: Fix interrupt regression with regmap clear_ack Message-ID: <20201116211425.GK4739@sirena.org.uk> References: <20201111170613.46057-1-tony@atomide.com> <20201113102134.GI3718728@dell> <20201116185903.GD4739@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="VSVNCtZB1QZ8vhj+" Content-Disposition: inline In-Reply-To: X-Cookie: Immanuel doesn't pun, he Kant. User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --VSVNCtZB1QZ8vhj+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Nov 16, 2020 at 12:43:57PM -0800, Tim Harvey wrote: > 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. My initial assumption with ack_invert would be that any bits we're not acking are inverted as well - if we just write 0 to those bits then we might be spuriously acking them. I'm not sure if there's something that is being missed with how this hardware is modelled or if it's just a not entirely thought through hardware design, if I'm understanding it correctly I can't see anything that can safely be written to the bits we don't want to ack. Either we cause them to be asserted or we might clear them incorrectly if we race with that interrupt asserting. --VSVNCtZB1QZ8vhj+ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl+y67AACgkQJNaLcl1U h9AXwgf5AaFUxdfQuCTAUysGSkuVWkSME/2FIu4Q173zTyhFBKTZJJRo8omHShRO nC+yAwuZ0tt05i79HmkWTSdzztyXr7pgKmqhO3xsXdShBy0Yun+xmzVByP1yUg8V bHkKx/B10fChWqqRy4an9hIn935wRGjrsVrthOmvrKnTt/Mh2d6Z7Vf2CkZrlT9v yeArsHCqIdpZQz8XCmB7MHpbyxEQWEXpbGMu178jwO+dK/js6YA57K4KkKrLzEHW 0jSLGf1FboaXSeDiJ6PrTAKl8yPnfh+VqDyKWDv820GRWtPxr/ld3V0zZvcPJSdE gk2HKaFWQWV55si+iLoeFCcwBUAZ1A== =TGnP -----END PGP SIGNATURE----- --VSVNCtZB1QZ8vhj+--