Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1669652pxj; Wed, 19 May 2021 11:04:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy18KGKHCNwFsxmpxNMtxToWajR98u33cvcQefiT+gcdmsEawmVfouQMY8/SiLx7SP3ydQ0 X-Received: by 2002:a6b:3b4c:: with SMTP id i73mr757460ioa.149.1621447478727; Wed, 19 May 2021 11:04:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621447478; cv=none; d=google.com; s=arc-20160816; b=dt2Ytmaji0PaZDd8Ng2A/f9SK1K1oBSbZFvnY7On8qOSddUNPG0ujMEyQQti0qEcc8 ttTU57Qr4vv9JarAkCOsndfYQ5AlPE5vpksPJoLKC2pbsrRzFsJG+nEInJkW5FXrUhhp 5u3qO4c/dgHaZIh1r4AGrAVdoix11a2sT9rtKD6BJAu3Yia1YqkQdkdf+rDabh+qZDUZ xzAU1fpRA85cE5BJXt+qM0Mh+rZG75MVxZftXQIuIUINn2tQ67qZ7Cob6LuFyWeyMts2 M8RhjHoGecT38fI/agjNsAXI5dGtDIkmlbkAHXBBBuTbAdkMHEWymY1sVqUGXW4AS8nK xcuw== 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=z/y8t6wXCoEhDZ33KcGs0t1aMM+2vgRJnG7p+Cr9c6U=; b=wssWd79WD+vF30MzBzyXdeUY+BzDvkRbo2n6JGv0hlBhhGQuenfLiPIVFAORxqDTgz 72CWcVNmg/vyNC22oHn3b/ISZZ0wx4ZB24jvFcxmeNlmWsuWmX5roONAfhPoKJJ+YwtC tD/FUhBICvBS08P3Nv7Fx2Sj224EQowWVWw0rKwMGMWEK+KYH5HajBok64XiyV/DD1Z9 5of7E3zTk5jKfIE1RtLh7vag7bXEG+7BH8y99fK3xURRTFgvS6t1UmVh8E/hu8YF2zoG cVRBdvlBf48tR1s5DOhAlKGa09YOWMCeYHcah46ptpLumSDGkEZXdjK/YT8uVTALmDJp KkWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hNQJNWu4; 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 c13si354061ilq.55.2021.05.19.11.04.19; Wed, 19 May 2021 11:04:38 -0700 (PDT) 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=k20201202 header.b=hNQJNWu4; 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 S243620AbhERMIn (ORCPT + 99 others); Tue, 18 May 2021 08:08:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:55068 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235289AbhERMIm (ORCPT ); Tue, 18 May 2021 08:08:42 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9F75F6113C; Tue, 18 May 2021 12:07:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621339644; bh=g+86oE/vGU5LeRgoHJ3GvrwTHfyS5Gv7wFXM34AQlag=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hNQJNWu4tbanjqQUGNNEMeQTLnCJMGyaz1U2rsQHydpS0aYw9kqo2+HE9jG+VVi6I dneXiaXxo/P2fnntYlqqNZHfPmyTdjIAiVuJZ9Mt1e0swfZ03y0btpmrX45+vA114Y FS7MuYi0fYr4t3rRt0zxvMWgjxYkqQZiz/m1BMZo7dXGdbOQtasM4lNuMzItzNbTrH TVnHqpqXrYDiZlJAmh8cKCJDPDVFfvZgtPp3StSRAqR2AxFA06Ai4sljwgabfGVq5r qaM+LTahjWfSnNPDS6k6GQHS7NLNlN3byxc/DTfExcksS4puVCoyDAyxIB1ld2vqKp KoeAmrJmoc/bQ== Date: Tue, 18 May 2021 13:06:40 +0100 From: Mark Brown To: Maxim Kochetkov Cc: linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, rafael@kernel.org Subject: Re: [PATCH 1/1] regmap-irq: Introduce inverted status registers support Message-ID: <20210518120640.GB4358@sirena.org.uk> References: <20210518094441.142547-1-fido_max@inbox.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="A6N2fC+uXW/VQSAv" Content-Disposition: inline In-Reply-To: <20210518094441.142547-1-fido_max@inbox.ru> X-Cookie: Radioactive cats have 18 half-lives. User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --A6N2fC+uXW/VQSAv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, May 18, 2021 at 12:44:41PM +0300, Maxim Kochetkov wrote: > + if (chip->status_invert) > + for (i = 0; i < data->chip->num_regs; i++) > + data->status_buf[i] = ~data->status_buf[i]; > + This is the only active change so this only affects readback meaning that if both read and write are inverted this won't do what's expected, breaking acks. I'm guessing your device either mixes things or is clear on read? --A6N2fC+uXW/VQSAv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmCjrc8ACgkQJNaLcl1U h9Cg7Af9GI0Qpxu+fNYrN9Ywk0dCoF6MPMU2Ql34iejMYBLoz9IaLaCxqDmFG5KC DVZduRncKGj7x5fBORYyR0TldNZrRN4Lv2DkaP205ufTAdv+i2vC1LMFWO0ZV6q4 huxHWqDKS1P8XGO4ITMENfGqSXCESEl41uSs7YQjE31DZH+LkzsrzqZYOVOSvPZi mV9jqLM2mfVuM+Ngh7dxlXTNgC8wOCgUNPlWnijosHwMpGBUQZOho7QWg8x9pSSt QShEqnlY6EhtiizvshpGqJ3gCL8yvxohG1depb5MMco/pTzjvAn48fxNIGyW2M+r sKteP4je96+EugNNCvA5A+olnw/FBw== =oEM3 -----END PGP SIGNATURE----- --A6N2fC+uXW/VQSAv--