Linux kernel -stable discussions
 help / color / mirror / Atom feed
From: "Uwe Kleine-König" <ukleinek@kernel.org>
To: Greg KH <gregkh@linuxfoundation.org>
Cc: stable@vger.kernel.org,  "Viorel Suman (OSS)" <viorel.suman@oss.nxp.com>
Subject: Re: [PATCH 6.6.y] pwm: imx-tpm: Count the number of enabled channels in probe
Date: Fri, 15 May 2026 19:05:18 +0200	[thread overview]
Message-ID: <agdSJR7uOo5vlfYX@monoceros> (raw)
In-Reply-To: <2026051538-hamster-grimacing-cfcf@gregkh>

[-- Attachment #1: Type: text/plain, Size: 1429 bytes --]

On Fri, May 15, 2026 at 04:51:50PM +0200, Greg KH wrote:
> On Sun, May 03, 2026 at 05:44:04PM +0200, Uwe Kleine-König wrote:
> > From: "Viorel Suman (OSS)" <viorel.suman@oss.nxp.com>
> > 
> > On a soft reset TPM PWM IP may preserve its internal state from previous
> > runtime, therefore on a subsequent OS boot and driver probe
> > "enable_count" value and TPM PWM IP internal channels "enabled" states
> > may get unaligned. In consequence on a suspend/resume cycle the call "if
> > (--tpm->enable_count == 0)" may lead to "enable_count" overflow the
> > system being blocked from entering suspend due to:
> > 
> >    if (tpm->enable_count > 0)
> >        return -EBUSY;
> > 
> > Fix the problem by counting the enabled channels in probe function.
> > 
> > Signed-off-by: Viorel Suman (OSS) <viorel.suman@oss.nxp.com>
> > Fixes: 738a1cfec2ed ("pwm: Add i.MX TPM PWM driver support")
> > Link: https://patch.msgid.link/20260311123309.348904-1-viorel.suman@oss.nxp.com
> > Cc: stable@vger.kernel.org
> > Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
> > [ukleinek: backport to linux-6.6.y]
> > Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
> > ---
> >  drivers/pwm/pwm-imx-tpm.c | 8 ++++++++
> >  1 file changed, 8 insertions(+)
> 
> What is the git id of this commit?

oops, sorry, I forgot to mention that

It's 3962c24f2d14e8a7f8a23f56b7ce320523947342.

Best regards
Uwe



[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

      reply	other threads:[~2026-05-15 17:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-03 11:46 FAILED: patch "[PATCH] pwm: imx-tpm: Count the number of enabled channels in probe" failed to apply to 6.6-stable tree gregkh
2026-05-03 15:44 ` [PATCH 6.6.y] pwm: imx-tpm: Count the number of enabled channels in probe Uwe Kleine-König
2026-05-15 14:51   ` Greg KH
2026-05-15 17:05     ` Uwe Kleine-König [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=agdSJR7uOo5vlfYX@monoceros \
    --to=ukleinek@kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=stable@vger.kernel.org \
    --cc=viorel.suman@oss.nxp.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