Re: [PATCH] ASoC: rt5663: Cancel jack detect work on unbind

From: Mark Brown

Date: Tue Sep 22 2026 - 08:53:59 EST


On Mon, Sep 21, 2026 at 09:53:27PM -0400, Myeonghun Pak wrote:
> ASoC: rt5663: Cancel jack detect work on unbind

This is an extra copy.

>
> jack_detect_work and jd_unplug_work live in struct rt5663_priv, which
> devres frees after rt5663_i2c_remove() returns. The IRQ queues the
> first work, a button press queues the second, and jd_unplug_work
> rearms itself while the jack stays inserted. Both callbacks load
> rt5663->component before checking it, and nothing clears that pointer.
> rt5663_suspend() cancels the works; unbind does not.

The same is true for the probe error handling, if we fail component
registration the same situation can happen.

Attachment: signature.asc
Description: PGP signature