From: Sasha Finkelstein <k@chaosmail.tech>
To: Jacob Procee <sn125164@gmail.com>
Cc: "Vinod Koul" <vkoul@kernel.org>, "Frank Li" <Frank.Li@kernel.org>,
"Sven Peter" <sven@kernel.org>, "Janne Grunau" <j@jannau.net>,
"Neal Gompa" <neal@gompa.dev>,
"Martin Povišer" <povik+lin@cutebit.org>,
asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org,
dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] dmaengine: apple-admac: Fix position one period ahead at period boundary
Date: Thu, 29 Oct 2026 16:15:36 +0100 [thread overview]
Message-ID: <53D3B33F-4B52-4782-B88B-B8ADA29523F5@chaosmail.tech> (raw)
In-Reply-To: <20261029105908.22809-1-sn125164@gmail.com>
On Oct 29, 2026, at 11:59, Jacob Procee <sn125164@gmail.com> wrote:
>
> - residue2 = readl_relaxed(ad->base + REG_RESIDUE(channo));
> + /*
> + * The residue drops to zero when a descriptor finishes, before the
> + * next one is loaded. If the finished descriptor's report is already
> + * in the ring at that point, the position below comes out one period
> + * ahead: with residue2 == 0 directly, with residue1 == 0 through the
> + * residue2 > residue1 branch. The next read is then behind it, which
> + * ALSA takes for a wrap of the whole buffer. Re-read until the next
> + * descriptor is loaded; the limit covers a stopped or starved channel,
> + * whose residue stays zero.
> + */
This wall of text belongs in the commit message, not in a comment.
next prev parent reply other threads:[~2026-10-29 15:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-29 10:59 Jacob Procee
2026-10-29 15:02 ` Frank Li
2026-10-29 15:15 ` Sasha Finkelstein [this message]
2026-10-29 16:10 ` Martin Povišer
2026-10-30 7:35 ` Jacob Procee
2026-11-02 9:45 ` Jacob Procee
2026-11-02 16:40 ` Martin Povišer
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=53D3B33F-4B52-4782-B88B-B8ADA29523F5@chaosmail.tech \
--to=k@chaosmail.tech \
--cc=Frank.Li@kernel.org \
--cc=asahi@lists.linux.dev \
--cc=dmaengine@vger.kernel.org \
--cc=j@jannau.net \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=neal@gompa.dev \
--cc=povik+lin@cutebit.org \
--cc=sn125164@gmail.com \
--cc=sven@kernel.org \
--cc=vkoul@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®