From: Thierry Reding <thierry.reding@gmail.com>
To: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Cc: ryo.kodama.vz@renesas.com, linux-pwm@vger.kernel.org,
stable@vger.kernel.org, linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH] pwm: rcar: fix a condition to prevent mismatch value setting to duty
Date: Wed, 28 Mar 2018 01:21:08 +0200 [thread overview]
Message-ID: <20180327232107.GD4097@mithrandir> (raw)
In-Reply-To: <1520594661-6897-1-git-send-email-yoshihiro.shimoda.uh@renesas.com>
[-- Attachment #1: Type: text/plain, Size: 1015 bytes --]
On Fri, Mar 09, 2018 at 08:24:21PM +0900, Yoshihiro Shimoda wrote:
> From: Ryo Kodama <ryo.kodama.vz@renesas.com>
>
> This patch fixes an issue that is possible to set mismatch value
> to duty for R-Car PWM if we input the following commands:
>
> # cd /sys/class/pwm/<pwmchip>/
> # echo 0 > export
> # cd pwm0
> # echo 30 > period
> # echo 30 > duty_cycle
> # echo 0 > duty_cycle
> # cat duty_cycle
> 0
> # echo 1 > enable
> --> Then, the actual duty_cycle is 30, not 0.
>
> So, this patch adds a condition into rcar_pwm_config() to fix
> this issue.
>
> Signed-off-by: Ryo Kodama <ryo.kodama.vz@renesas.com>
> [shimoda: revise the commit log and add Fixes and Cc tags]
> Fixes: ed6c1476bf7f ("pwm: Add support for R-Car PWM Timer")
> Cc: Cc: <stable@vger.kernel.org> # v4.4+
> Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
> ---
> drivers/pwm/pwm-rcar.c | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
Applied, thanks.
Thierry
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2018-03-27 23:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-09 11:24 [PATCH] pwm: rcar: fix a condition to prevent mismatch value setting to duty Yoshihiro Shimoda
2018-03-27 23:21 ` 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=20180327232107.GD4097@mithrandir \
--to=thierry.reding@gmail.com \
--cc=linux-pwm@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=ryo.kodama.vz@renesas.com \
--cc=stable@vger.kernel.org \
--cc=yoshihiro.shimoda.uh@renesas.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;
as well as URLs for NNTP newsgroup(s).