From: Mark Brown <broonie@kernel.org>
To: Maxim Kochetkov <fido_max@inbox.ru>
Cc: linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org,
rafael@kernel.org
Subject: Re: [PATCH 1/1] regmap-irq: Introduce inverted status registers support
Date: Tue, 18 May 2021 13:06:40 +0100 [thread overview]
Message-ID: <20210518120640.GB4358@sirena.org.uk> (raw)
In-Reply-To: <20210518094441.142547-1-fido_max@inbox.ru>
[-- Attachment #1: Type: text/plain, Size: 421 bytes --]
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?
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2021-05-18 12:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-18 9:44 Maxim Kochetkov
2021-05-18 12:06 ` Mark Brown [this message]
2021-05-24 4:53 ` Maxim Kochetkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210518120640.GB4358@sirena.org.uk \
--to=broonie@kernel.org \
--cc=fido_max@inbox.ru \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rafael@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®