mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pengpeng Hou <hppiscas@163.com>
To: Mark Brown <broonie@kernel.org>
Cc: Pengpeng Hou <hppiscas@163.com>,
	Liam Girdwood <lgirdwood@gmail.com>,
	Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
	linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org,
	Michael Zhang <zhangyi@everest-semi.com>
Subject: Re: [PATCH v2] ASoC: es9356: defer IRQ readiness until cache replay
Date: Thu,  3 Dec 2026 11:10:45 +0800	[thread overview]
Message-ID: <20261203031045.46006-1-hppiscas@163.com> (raw)
In-Reply-To: <fc5d79f1-c83d-4c3a-917e-2dd2c017abb6@sirena.org.uk>

Hi Mark,

You're right: v2 doesn't guarantee that the work runs. The interrupt
callback saves SDCA_INT1 and acknowledges the interrupt before testing
disable_irq. If it sees a cascade during cache replay, it can skip
queueing interrupt_handle_work. Clearing disable_irq later doesn't
queue it, and a subsequent callback can overwrite sdca_status.

I wouldn't rely on another hardware interrupt to recover that event.
The attached-device path needs to retain the pending status under the
same lock and hand it to the worker after successful replay. On failed
replay it must not advertise readiness. I'll keep v2 on hold rather
than treat the flag move alone as a fix.

Thanks,
Pengpeng


      reply	other threads:[~2026-12-03  3:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-14  3:23 Pengpeng Hou
2026-10-15 11:36 ` Mark Brown
2026-12-03  3:10   ` Pengpeng Hou [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=20261203031045.46006-1-hppiscas@163.com \
    --to=hppiscas@163.com \
    --cc=broonie@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=perex@perex.cz \
    --cc=tiwai@suse.com \
    --cc=zhangyi@everest-semi.com \
    /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®