From: Clemens Gruber <clemens.gruber@pqgruber.com>
To: Thierry Reding <thierry.reding@gmail.com>
Cc: linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4 0/2] pwm-pca9685: Bugfixes and prescaler support
Date: Fri, 14 Aug 2015 22:09:50 +0200 [thread overview]
Message-ID: <20150814200949.GA1440@pqgruber.com> (raw)
In-Reply-To: <1437664742-23121-1-git-send-email-clemens.gruber@pqgruber.com>
On Thu, Jul 23, 2015 at 05:19:00PM +0200, Clemens Gruber wrote:
> Hi,
>
> the first patch from this series contains bugfixes and the second patch
> adds support for changing the PWM output frequency of the PCA9685.
>
> Regards,
> Clemens
>
> Cc: Thierry Reding <thierry.reding@gmail.com>
> Cc: Steffen Trumtrar <s.trumtrar@pengutronix.de>
>
> Changes in v2:
> - Only put chip into sleep mode if the bounds checking succeeds
>
> Changes in v3:
> - Fix checkpatch style warnings introduced in v2
>
> Changes in v4:
> - Set RESTART bit. Now the duty cycle to period ratio stays the same
> after only changing the period.
> - Added a comment at the start of the file pointing out that the chip
> has only one prescaler and changing the period affects all outputs.
>
> Clemens Gruber (2):
> pwm-pca9685: Fix several driver bugs
> pwm-pca9685: Support changing the output frequency
>
> drivers/pwm/pwm-pca9685.c | 89 ++++++++++++++++++++++++++++++++++++++++++++++-
> 1 file changed, 88 insertions(+), 1 deletion(-)
>
> --
> 2.4.6
>
Hi Thierry,
I addressed the issue you raised about keeping the duty cycle to period ratio
when changing the period. This is achieved in v4 by setting the RESTART bit,
which resumes the PWM output with the same duty_cycle to period ratio as before
but with the new period / prescaler value. I also added a comment at the
beginning of the file to remind implementers, that this driver has a chip-wide
prescaler.
Without those two patches, the driver is really broken. See my description in
patch 1/2 for a list of its bugs.
Could we please get those two patches into 4.3?
Thanks,
Clemens
next prev parent reply other threads:[~2015-08-14 22:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-23 15:19 [PATCH v4 0/2] pwm-pca9685: Bugfixes and prescaler support Clemens Gruber
2015-07-23 15:19 ` [PATCH v4 1/2] pwm-pca9685: Fix several driver bugs Clemens Gruber
2015-07-23 15:19 ` [PATCH v4 2/2] pwm-pca9685: Support changing the output frequency Clemens Gruber
2015-08-14 20:09 ` Clemens Gruber [this message]
2015-08-17 14:37 ` [PATCH v4 0/2] pwm-pca9685: Bugfixes and prescaler support Thierry Reding
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=20150814200949.GA1440@pqgruber.com \
--to=clemens.gruber@pqgruber.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pwm@vger.kernel.org \
--cc=thierry.reding@gmail.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