From: Charles Keepax <ckeepax@opensource.cirrus.com>
To: "Péter Ujfalusi" <peter.ujfalusi@linux.intel.com>
Cc: lgirdwood@gmail.com, broonie@kernel.org, david.rhodes@cirrus.com,
rf@opensource.cirrus.com, linux-sound@vger.kernel.org,
stable@vger.kernel.org
Subject: Re: [PATCH] ASoC: cs42l43-jack: Remove manual pm_runtime get/put from tip_sense_work
Date: Mon, 16 Mar 2026 16:40:14 +0000 [thread overview]
Message-ID: <abgyboHV1jaWDUul@opensource.cirrus.com> (raw)
In-Reply-To: <d5353ee4-1a3f-43a6-93ed-5127d666ad0b@linux.intel.com>
On Mon, Mar 16, 2026 at 04:37:28PM +0200, Péter Ujfalusi wrote:
> On 16/03/2026 16:27, Charles Keepax wrote:
> > On Mon, Mar 16, 2026 at 02:49:24PM +0200, Peter Ujfalusi wrote:
> > Hmm... yes, I have this feeling this was in here for a reason I
> > should probably have left a comment here. I somewhat agree it
> > looks a bit mad with fresh eyes. The variable is also only used
> > for tracking this pm_runtime_get so you can drop the jack_present
> > variable from the struct as well, if we take the patch forward.
>
> That was my thinking as well, but then when the headset buttons did
> worked after the patch on an idle system (ARL laptop) then I thought
> that this might no longer be needed?
Hmm... are you sure that was working? Tried removing it (on
MTL here) and I see quite a few issues.
> Fwiw, I have been banging my head on why the DSP is not suspending ever
> on the laptop and the system is not hitting lower C state because of
> this when I had some spare time and studied the code and then removed
> the jack and boom, the DSP suspended right away :o
Apologies for that :-)
> Sure, but draining battery when the jack is connected is not a great
> added feature of a codec driver.
> The type-Cs are on the other side of the laptop, so taping the jack and
> power together is not a workable solution - to disconnect jack if power
> is removed ;)
I am not sure there are many other solutions. I will burn a few
cycles investigating here, but I suspect its going to come down
to a choice of two solutions:
1) The one already in the code.
2) Stop the host from reseting the codec.
Fundamentally reseting a device right before checking what state
it was in is always going to be hard, so would be awesome if you
could have a look at how much of a problem removing that bus
reset would be.
> Even then there is the issue of unbalance in runtime get on module
> removal when the jack is connected...
Yeah that is a good spot, if we stick with the current code I
will get that fixed up.
Thanks,
Charles
next prev parent reply other threads:[~2026-03-16 16:40 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-16 12:49 [PATCH] ASoC: cs42l43-jack: Remove manual pm_runtime get/put from tip_sense_work Peter Ujfalusi
2026-03-16 14:27 ` Charles Keepax
2026-03-16 14:37 ` Péter Ujfalusi
2026-03-16 16:40 ` Charles Keepax [this message]
2026-03-17 6:21 ` Péter Ujfalusi
2026-03-17 9:11 ` Péter Ujfalusi
2026-03-17 9:36 ` Péter Ujfalusi
2026-03-17 11:36 ` Charles Keepax
2026-03-17 11:44 ` Charles Keepax
2026-03-17 12:07 ` Péter Ujfalusi
2026-03-17 13:25 ` Charles Keepax
2026-03-16 14:58 ` Charles Keepax
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=abgyboHV1jaWDUul@opensource.cirrus.com \
--to=ckeepax@opensource.cirrus.com \
--cc=broonie@kernel.org \
--cc=david.rhodes@cirrus.com \
--cc=lgirdwood@gmail.com \
--cc=linux-sound@vger.kernel.org \
--cc=peter.ujfalusi@linux.intel.com \
--cc=rf@opensource.cirrus.com \
--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