From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: "Jan Kundrát" <jan.kundrat@cesnet.cz>
Cc: linux-serial@vger.kernel.org,
Cosmin Tanislav <cosmin.tanislav@analog.com>,
Cosmin Tanislav <demonsingur@gmail.com>,
stable@vger.kernel.org, Jiri Slaby <jirislaby@kernel.org>,
Andy Shevchenko <andy.shevchenko@gmail.com>
Subject: Re: [PATCH] serial: max310x: fix IO data corruption in batched operations
Date: Thu, 20 Apr 2023 13:44:55 +0200 [thread overview]
Message-ID: <ZEEltx415gdhy5Ck@kroah.com> (raw)
In-Reply-To: <79db8e82aadb0e174bc82b9996423c3503c8fb37.1680732084.git.jan.kundrat@cesnet.cz>
On Wed, Apr 05, 2023 at 10:14:23PM +0200, Jan Kundrát wrote:
> After upgrading from 5.16 to 6.1, our board with a MAX14830 started
> producing lots of garbage data over UART. Bisection pointed out commit
> 285e76fc049c as the culprit. That patch tried to replace hand-written
> code which I added in 2b4bac48c1084 ("serial: max310x: Use batched reads
> when reasonably safe") with the generic regmap infrastructure for
> batched operations.
>
> Unfortunately, the `regmap_raw_read` and `regmap_raw_write` which were
> used are actually functions which perform IO over *multiple* registers.
> That's not what is needed for accessing these Tx/Rx FIFOs; the
> appropriate functions are the `_noinc_` versions, not the `_raw_` ones.
>
> Fix this regression by using `regmap_noinc_read()` and
> `regmap_noinc_write()` along with the necessary `regmap_config` setup;
> with this patch in place, our board communicates happily again. Since
> our board uses SPI for talking to this chip, the I2C part is completely
> untested.
>
> Fixes: 285e76fc049c serial: max310x: use regmap methods for SPI batch operations
Nit, please use the style that the documentation asks for here, which
should look like:
Fixes: 285e76fc049c ("serial: max310x: use regmap methods for SPI batch operations")
otherwise our tools complain :(
I'll go fix this up by hand...
greg k-h
prev parent reply other threads:[~2023-04-20 11:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-05 20:14 [PATCH] serial: max310x: fix IO data corruption in batched operations Jan Kundrát
2023-04-06 10:09 ` Andy Shevchenko
2023-04-06 11:12 ` Ilpo Järvinen
2023-04-20 11:44 ` Greg Kroah-Hartman [this message]
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=ZEEltx415gdhy5Ck@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=andy.shevchenko@gmail.com \
--cc=cosmin.tanislav@analog.com \
--cc=demonsingur@gmail.com \
--cc=jan.kundrat@cesnet.cz \
--cc=jirislaby@kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=stable@vger.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;
as well as URLs for NNTP newsgroup(s).