Linux PWM subsystem development
 help / color / mirror / Atom feed
From: Thierry Reding <thierry.reding@gmail.com>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: Lee Jones <lee.jones@linaro.org>, Milo Kim <milo.kim@ti.com>,
	linux-pwm@vger.kernel.org, kernel@pengutronix.de
Subject: Re: [PATCH 1/2] pwm: lp3943: fix duty calculation in case period was clamped
Date: Fri, 22 Apr 2022 18:43:35 +0200	[thread overview]
Message-ID: <YmLbNy7q2ZBnNsbE@orome> (raw)
In-Reply-To: <20220408152239.164462-1-u.kleine-koenig@pengutronix.de>

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

On Fri, Apr 08, 2022 at 05:22:38PM +0200, Uwe Kleine-König wrote:
> The hardware only supports periods <= 1.6 ms and if a bigger period is
> requested it is clamped to 1.6 ms. In this case duty_cycle might be bigger
> than 1.6 ms and then the duty cycle register is written with a value
> bigger than LP3943_MAX_DUTY. So clamp duty_cycle accordingly.
> 
> Fixes: af66b3c0934e ("pwm: Add LP3943 PWM driver")
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ---
>  drivers/pwm/pwm-lp3943.c | 1 +
>  1 file changed, 1 insertion(+)

Both patches applied, thanks.

Thierry

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

      parent reply	other threads:[~2022-04-22 16:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-08 15:22 [PATCH 1/2] pwm: lp3943: fix duty calculation in case period was clamped Uwe Kleine-König
2022-04-08 15:22 ` [PATCH 2/2] pwm: lp3943: Implement .apply() callback Uwe Kleine-König
2022-04-22 16:43 ` Thierry Reding [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=YmLbNy7q2ZBnNsbE@orome \
    --to=thierry.reding@gmail.com \
    --cc=kernel@pengutronix.de \
    --cc=lee.jones@linaro.org \
    --cc=linux-pwm@vger.kernel.org \
    --cc=milo.kim@ti.com \
    --cc=u.kleine-koenig@pengutronix.de \
    /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