From: Greg KH <gregkh@linuxfoundation.org>
To: "Uwe Kleine-König" <u.kleine-koenig@baylibre.com>
Cc: stable@vger.kernel.org, "Trevor Gamblin" <tgamblin@baylibre.com>,
"Uwe Kleine-König" <ukleinek@kernel.org>
Subject: Re: [PATCH 6.9.y and older] pwm: stm32: Refuse too small period requests
Date: Tue, 2 Jul 2024 11:08:14 +0200 [thread overview]
Message-ID: <2024070205-sleep-rectify-6099@gregkh> (raw)
In-Reply-To: <20240625075405.2196169-2-u.kleine-koenig@baylibre.com>
On Tue, Jun 25, 2024 at 09:54:05AM +0200, Uwe Kleine-König wrote:
> If period_ns is small, prd might well become 0. Catch that case because
> otherwise with
>
> regmap_write(priv->regmap, TIM_ARR, prd - 1);
>
> a few lines down quite a big period is configured.
>
> Fixes: 7edf7369205b ("pwm: Add driver for STM32 plaftorm")
> Cc: stable@vger.kernel.org
> Reviewed-by: Trevor Gamblin <tgamblin@baylibre.com>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
> Link: https://lore.kernel.org/r/b86f62f099983646f97eeb6bfc0117bb2d0c340d.1718979150.git.u.kleine-koenig@baylibre.com
> Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
> (cherry picked from commit c45fcf46ca2368dafe7e5c513a711a6f0f974308)
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
> ---
> Hello,
>
> this is a backport of c45fcf46ca2368dafe7e5c513a711a6f0f974308 to 6.9.y.
> It applies fine to 4.19.y, 5.4.y, 5.10.y, 5.15.y, 6.1.y and 6.6.y, too.
> Please apply accordingly.
>
Now queued up, thanks
greg k-h
prev parent reply other threads:[~2024-07-02 9:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-24 16:47 FAILED: patch "[PATCH] pwm: stm32: Refuse too small period requests" failed to apply to 6.9-stable tree gregkh
2024-06-25 7:54 ` [PATCH 6.9.y and older] pwm: stm32: Refuse too small period requests Uwe Kleine-König
2024-07-02 9:08 ` Greg KH [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=2024070205-sleep-rectify-6099@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=stable@vger.kernel.org \
--cc=tgamblin@baylibre.com \
--cc=u.kleine-koenig@baylibre.com \
--cc=ukleinek@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