All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thierry Reding <thierry.reding@gmail.com>
To: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Cc: linux-pwm@vger.kernel.org, narmstrong@baylibre.com,
	bichao.zheng@amlogic.com, linux-kernel@vger.kernel.org,
	u.kleine-koenig@pengutronix.de,
	linux-amlogic@lists.infradead.org,
	linux-arm-kernel@lists.infradead.org, jbrunet@baylibre.com
Subject: Re: [PATCH 0/2] pwm: meson: two small bug-fixes
Date: Thu, 9 May 2019 16:52:59 +0200	[thread overview]
Message-ID: <20190509145259.GA8907@ulmo> (raw)
In-Reply-To: <20190401181817.11999-1-martin.blumenstingl@googlemail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1705 bytes --]

On Mon, Apr 01, 2019 at 08:18:15PM +0200, Martin Blumenstingl wrote:
> This series applies on top of my other fix "pwm: meson: fix scheduling
> while atomic issue" from [0]
> 
> The first patch fixes an issue where the maximum possible pre-divider
> (128) could not be used because there was an off-by-one error in the
> code. I discovered this while testing with the longest supported period
> (349514407ns) when running from XTAL. This is verified to work on my
> Meson8b Odroid-C1 board using "pwm_b" on GPIOX_11.
> 
> The second patch was suggested by Uwe Kleine-König but was actually
> implemented much earlier (back in mid 2018) by Bichao Zheng from
> Amlogic. This patch fixes changing the duty cycle by relying on the
> hardware to re-start the PWM output (instead of adding an artificial
> "constant LOW" of about 20ms - as measured by Bichao Zheng when
> stopping and re-starting the PWM output from within the driver). I
> tested this fix on my Meson8b Odroid-C1 board which uses a PWM driven
> CPU regulator (DVFS with all supported OPPs is still working fine for
> me, although I couldn't observe any issues before this patch).
> 
> I also have some code-improvements queued which I'll send in the next
> days, see [1]
> 
> 
> [0] https://patchwork.kernel.org/cover/10880419/
> [1] https://github.com/xdarklight/linux/commits/meson-pwm-for-5.2-v1
> 
> 
> Bichao Zheng (1):
>   pwm: meson: don't disable pwm when setting duty repeatedly
> 
> Martin Blumenstingl (1):
>   pwm: meson: consider 128 a valid pre-divider
> 
>  drivers/pwm/pwm-meson.c | 9 ++-------
>  1 file changed, 2 insertions(+), 7 deletions(-)

Both patches applied, thanks.

Thierry

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

[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

WARNING: multiple messages have this Message-ID (diff)
From: Thierry Reding <thierry.reding@gmail.com>
To: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Cc: linux-pwm@vger.kernel.org, linux-amlogic@lists.infradead.org,
	narmstrong@baylibre.com, jbrunet@baylibre.com,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, u.kleine-koenig@pengutronix.de,
	bichao.zheng@amlogic.com
Subject: Re: [PATCH 0/2] pwm: meson: two small bug-fixes
Date: Thu, 9 May 2019 16:52:59 +0200	[thread overview]
Message-ID: <20190509145259.GA8907@ulmo> (raw)
In-Reply-To: <20190401181817.11999-1-martin.blumenstingl@googlemail.com>

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

On Mon, Apr 01, 2019 at 08:18:15PM +0200, Martin Blumenstingl wrote:
> This series applies on top of my other fix "pwm: meson: fix scheduling
> while atomic issue" from [0]
> 
> The first patch fixes an issue where the maximum possible pre-divider
> (128) could not be used because there was an off-by-one error in the
> code. I discovered this while testing with the longest supported period
> (349514407ns) when running from XTAL. This is verified to work on my
> Meson8b Odroid-C1 board using "pwm_b" on GPIOX_11.
> 
> The second patch was suggested by Uwe Kleine-König but was actually
> implemented much earlier (back in mid 2018) by Bichao Zheng from
> Amlogic. This patch fixes changing the duty cycle by relying on the
> hardware to re-start the PWM output (instead of adding an artificial
> "constant LOW" of about 20ms - as measured by Bichao Zheng when
> stopping and re-starting the PWM output from within the driver). I
> tested this fix on my Meson8b Odroid-C1 board which uses a PWM driven
> CPU regulator (DVFS with all supported OPPs is still working fine for
> me, although I couldn't observe any issues before this patch).
> 
> I also have some code-improvements queued which I'll send in the next
> days, see [1]
> 
> 
> [0] https://patchwork.kernel.org/cover/10880419/
> [1] https://github.com/xdarklight/linux/commits/meson-pwm-for-5.2-v1
> 
> 
> Bichao Zheng (1):
>   pwm: meson: don't disable pwm when setting duty repeatedly
> 
> Martin Blumenstingl (1):
>   pwm: meson: consider 128 a valid pre-divider
> 
>  drivers/pwm/pwm-meson.c | 9 ++-------
>  1 file changed, 2 insertions(+), 7 deletions(-)

Both patches applied, thanks.

Thierry

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

WARNING: multiple messages have this Message-ID (diff)
From: Thierry Reding <thierry.reding@gmail.com>
To: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Cc: linux-pwm@vger.kernel.org, narmstrong@baylibre.com,
	bichao.zheng@amlogic.com, linux-kernel@vger.kernel.org,
	u.kleine-koenig@pengutronix.de,
	linux-amlogic@lists.infradead.org,
	linux-arm-kernel@lists.infradead.org, jbrunet@baylibre.com
Subject: Re: [PATCH 0/2] pwm: meson: two small bug-fixes
Date: Thu, 9 May 2019 16:52:59 +0200	[thread overview]
Message-ID: <20190509145259.GA8907@ulmo> (raw)
In-Reply-To: <20190401181817.11999-1-martin.blumenstingl@googlemail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1705 bytes --]

On Mon, Apr 01, 2019 at 08:18:15PM +0200, Martin Blumenstingl wrote:
> This series applies on top of my other fix "pwm: meson: fix scheduling
> while atomic issue" from [0]
> 
> The first patch fixes an issue where the maximum possible pre-divider
> (128) could not be used because there was an off-by-one error in the
> code. I discovered this while testing with the longest supported period
> (349514407ns) when running from XTAL. This is verified to work on my
> Meson8b Odroid-C1 board using "pwm_b" on GPIOX_11.
> 
> The second patch was suggested by Uwe Kleine-König but was actually
> implemented much earlier (back in mid 2018) by Bichao Zheng from
> Amlogic. This patch fixes changing the duty cycle by relying on the
> hardware to re-start the PWM output (instead of adding an artificial
> "constant LOW" of about 20ms - as measured by Bichao Zheng when
> stopping and re-starting the PWM output from within the driver). I
> tested this fix on my Meson8b Odroid-C1 board which uses a PWM driven
> CPU regulator (DVFS with all supported OPPs is still working fine for
> me, although I couldn't observe any issues before this patch).
> 
> I also have some code-improvements queued which I'll send in the next
> days, see [1]
> 
> 
> [0] https://patchwork.kernel.org/cover/10880419/
> [1] https://github.com/xdarklight/linux/commits/meson-pwm-for-5.2-v1
> 
> 
> Bichao Zheng (1):
>   pwm: meson: don't disable pwm when setting duty repeatedly
> 
> Martin Blumenstingl (1):
>   pwm: meson: consider 128 a valid pre-divider
> 
>  drivers/pwm/pwm-meson.c | 9 ++-------
>  1 file changed, 2 insertions(+), 7 deletions(-)

Both patches applied, thanks.

Thierry

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

[-- Attachment #2: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  parent reply	other threads:[~2019-05-09 14:53 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-01 18:18 [PATCH 0/2] pwm: meson: two small bug-fixes Martin Blumenstingl
2019-04-01 18:18 ` Martin Blumenstingl
2019-04-01 18:18 ` Martin Blumenstingl
2019-04-01 18:18 ` [PATCH 1/2] pwm: meson: consider 128 a valid pre-divider Martin Blumenstingl
2019-04-01 18:18   ` Martin Blumenstingl
2019-04-01 18:18   ` Martin Blumenstingl
2019-04-01 18:38   ` Uwe Kleine-König
2019-04-01 18:38     ` Uwe Kleine-König
2019-04-01 18:38     ` Uwe Kleine-König
2019-04-02 19:22     ` Martin Blumenstingl
2019-04-02 19:22       ` Martin Blumenstingl
2019-04-02 19:22       ` Martin Blumenstingl
2019-04-02 19:55       ` Uwe Kleine-König
2019-04-02 19:55         ` Uwe Kleine-König
2019-04-02 19:55         ` Uwe Kleine-König
2019-04-03 11:19   ` Neil Armstrong
2019-04-03 11:19     ` Neil Armstrong
2019-04-03 11:19     ` Neil Armstrong
2019-04-01 18:18 ` [PATCH 2/2] pwm: meson: don't disable pwm when setting duty repeatedly Martin Blumenstingl
2019-04-01 18:18   ` Martin Blumenstingl
2019-04-01 18:18   ` Martin Blumenstingl
2019-04-03 11:19   ` Neil Armstrong
2019-04-03 11:19     ` Neil Armstrong
2019-04-03 11:19     ` Neil Armstrong
2019-05-09 14:52 ` Thierry Reding [this message]
2019-05-09 14:52   ` [PATCH 0/2] pwm: meson: two small bug-fixes Thierry Reding
2019-05-09 14:52   ` 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=20190509145259.GA8907@ulmo \
    --to=thierry.reding@gmail.com \
    --cc=bichao.zheng@amlogic.com \
    --cc=jbrunet@baylibre.com \
    --cc=linux-amlogic@lists.infradead.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pwm@vger.kernel.org \
    --cc=martin.blumenstingl@googlemail.com \
    --cc=narmstrong@baylibre.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.