All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philipp Zabel <philipp.zabel@gmail.com>
To: linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCHv2 resend 00/11] improve PWM lookup support without device tree
Date: Tue, 20 May 2014 17:27:18 +0000	[thread overview]
Message-ID: <CA+gwMccr8N+oZA4A5DY168Vis0Q6OaVDJuJaWzRVTQ389ixjjQ@mail.gmail.com> (raw)
In-Reply-To: <1400532162-29483-1-git-send-email-alexandre.belloni@free-electrons.com>

Hi Alexandre,

On Mon, May 19, 2014 at 10:42 PM, Alexandre Belloni
<alexandre.belloni@free-electrons.com> wrote:
> Hi,
>
> Originally sent on Apr 14th, note that this series is blocking another 16
> patches series, I would like it to be taken in 3.16 if we can agree on this
> implementation.
>
> A patch set as suggested by Thierry to make lookup with the lookup table
> instead of device tree behave more like when using device tree.
>
> The first patch adds a period and a polarity member to the lookup table and use
> those to set period and polarity.
>
> Patch 2, 4 and 5 are making use of those new members from the board files.
> Patch 3 removes useless code since setting the polarity is now handled by the
> PWM core.
>
> I couldn't decide on a good name for the extended PWM_LOOKUP macro and I believe
> we won't have to add members to that structure soon so:
> Patch 6 modifies the PWM_LOOKUP macro to also initialize period and polarity
> and
> Patch 7-9 are making use of the new PWM_LOOKUP macro in the board files
>
> Patch 10 and 11 are making the leds-pwm and pwm_bl drivers get the period from
> the PWM before using pwm_period_ns if it is not already set.
>
> Patch 10 will obviously conflict with the series of Russell reworking the
> leds-pwm probing. I can rebase if necessary
>
> The final goal would be to get rid of .pwm_period_ns in leds-pwm and pwm_bl
> after moving all the remaining users (still around 25) to pwm_lookup.
>
> Changes in v2:
>  - correctly unlock the pwm_lookup_lock mutex before returning.
>  - don't change PWM_LOOKUP atomically
>  - remove tpu_pwm_platform_data and the associated header file
>  - make the leds-pwm and pwm_bl drivers get the period from the PWM
>
> Alexandre Belloni (11):
>   pwm: add period and polarity to struct pwm_lookup
>   ARM: shmobile: Armadillo 800 EVA: initialize all struct pwm_lookup
>     members
>   pwm: renesas-tpu: remove useless struct tpu_pwm_platform_data
>   ARM: OMAP3: Beagle: initialize all the struct pwm_lookup members
>   ARM: pxa: hx4700: initialize all the struct pwm_lookup members
>   pwm: modify PWM_LOOKUP to initialize all struct pwm_lookup members
>   ARM: OMAP3: Beagle: use PWM_LOOKUP to initialize struct pwm_lookup
>   ARM: shmobile: Armadillo 800 EVA: use PWM_LOOKUP to initialize struct
>     pwm_lookup
>   ARM: pxa: hx4700: use PWM_LOOKUP to initialize struct pwm_lookup
>   leds: leds-pwm: retrieve configured pwm period
>   backlight: pwm_bl: retrieve configured pwm period

For the hx4700 patches (5 an 9),
Acked-by: Philipp Zabel <philipp.zabel@gmail.com>

regards
Philipp

WARNING: multiple messages have this Message-ID (diff)
From: Philipp Zabel <philipp.zabel@gmail.com>
To: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Cc: Thierry Reding <thierry.reding@gmail.com>,
	Tony Lindgren <tony@atomide.com>,
	Paul Parsons <lost.distance@yahoo.com>,
	Simon Horman <horms@verge.net.au>,
	Magnus Damm <magnus.damm@gmail.com>,
	Eric Miao <eric.y.miao@gmail.com>,
	Haojian Zhuang <haojian.zhuang@gmail.com>,
	Bryan Wu <cooloney@gmail.com>, Jingoo Han <jg1.han@samsung.com>,
	Lee Jones <lee.jones@linaro.org>,
	linux-pwm@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>,
	linux-arm-kernel <linux-arm-kernel@lists.infradead.org>,
	linux-omap@vger.kernel.org, linux-sh@vger.kernel.org,
	linux-leds@vger.kernel.org, linux-fbdev@vger.kernel.org
Subject: Re: [PATCHv2 resend 00/11] improve PWM lookup support without device tree
Date: Tue, 20 May 2014 19:27:18 +0200	[thread overview]
Message-ID: <CA+gwMccr8N+oZA4A5DY168Vis0Q6OaVDJuJaWzRVTQ389ixjjQ@mail.gmail.com> (raw)
In-Reply-To: <1400532162-29483-1-git-send-email-alexandre.belloni@free-electrons.com>

Hi Alexandre,

On Mon, May 19, 2014 at 10:42 PM, Alexandre Belloni
<alexandre.belloni@free-electrons.com> wrote:
> Hi,
>
> Originally sent on Apr 14th, note that this series is blocking another 16
> patches series, I would like it to be taken in 3.16 if we can agree on this
> implementation.
>
> A patch set as suggested by Thierry to make lookup with the lookup table
> instead of device tree behave more like when using device tree.
>
> The first patch adds a period and a polarity member to the lookup table and use
> those to set period and polarity.
>
> Patch 2, 4 and 5 are making use of those new members from the board files.
> Patch 3 removes useless code since setting the polarity is now handled by the
> PWM core.
>
> I couldn't decide on a good name for the extended PWM_LOOKUP macro and I believe
> we won't have to add members to that structure soon so:
> Patch 6 modifies the PWM_LOOKUP macro to also initialize period and polarity
> and
> Patch 7-9 are making use of the new PWM_LOOKUP macro in the board files
>
> Patch 10 and 11 are making the leds-pwm and pwm_bl drivers get the period from
> the PWM before using pwm_period_ns if it is not already set.
>
> Patch 10 will obviously conflict with the series of Russell reworking the
> leds-pwm probing. I can rebase if necessary
>
> The final goal would be to get rid of .pwm_period_ns in leds-pwm and pwm_bl
> after moving all the remaining users (still around 25) to pwm_lookup.
>
> Changes in v2:
>  - correctly unlock the pwm_lookup_lock mutex before returning.
>  - don't change PWM_LOOKUP atomically
>  - remove tpu_pwm_platform_data and the associated header file
>  - make the leds-pwm and pwm_bl drivers get the period from the PWM
>
> Alexandre Belloni (11):
>   pwm: add period and polarity to struct pwm_lookup
>   ARM: shmobile: Armadillo 800 EVA: initialize all struct pwm_lookup
>     members
>   pwm: renesas-tpu: remove useless struct tpu_pwm_platform_data
>   ARM: OMAP3: Beagle: initialize all the struct pwm_lookup members
>   ARM: pxa: hx4700: initialize all the struct pwm_lookup members
>   pwm: modify PWM_LOOKUP to initialize all struct pwm_lookup members
>   ARM: OMAP3: Beagle: use PWM_LOOKUP to initialize struct pwm_lookup
>   ARM: shmobile: Armadillo 800 EVA: use PWM_LOOKUP to initialize struct
>     pwm_lookup
>   ARM: pxa: hx4700: use PWM_LOOKUP to initialize struct pwm_lookup
>   leds: leds-pwm: retrieve configured pwm period
>   backlight: pwm_bl: retrieve configured pwm period

For the hx4700 patches (5 an 9),
Acked-by: Philipp Zabel <philipp.zabel@gmail.com>

regards
Philipp

WARNING: multiple messages have this Message-ID (diff)
From: philipp.zabel@gmail.com (Philipp Zabel)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCHv2 resend 00/11] improve PWM lookup support without device tree
Date: Tue, 20 May 2014 19:27:18 +0200	[thread overview]
Message-ID: <CA+gwMccr8N+oZA4A5DY168Vis0Q6OaVDJuJaWzRVTQ389ixjjQ@mail.gmail.com> (raw)
In-Reply-To: <1400532162-29483-1-git-send-email-alexandre.belloni@free-electrons.com>

Hi Alexandre,

On Mon, May 19, 2014 at 10:42 PM, Alexandre Belloni
<alexandre.belloni@free-electrons.com> wrote:
> Hi,
>
> Originally sent on Apr 14th, note that this series is blocking another 16
> patches series, I would like it to be taken in 3.16 if we can agree on this
> implementation.
>
> A patch set as suggested by Thierry to make lookup with the lookup table
> instead of device tree behave more like when using device tree.
>
> The first patch adds a period and a polarity member to the lookup table and use
> those to set period and polarity.
>
> Patch 2, 4 and 5 are making use of those new members from the board files.
> Patch 3 removes useless code since setting the polarity is now handled by the
> PWM core.
>
> I couldn't decide on a good name for the extended PWM_LOOKUP macro and I believe
> we won't have to add members to that structure soon so:
> Patch 6 modifies the PWM_LOOKUP macro to also initialize period and polarity
> and
> Patch 7-9 are making use of the new PWM_LOOKUP macro in the board files
>
> Patch 10 and 11 are making the leds-pwm and pwm_bl drivers get the period from
> the PWM before using pwm_period_ns if it is not already set.
>
> Patch 10 will obviously conflict with the series of Russell reworking the
> leds-pwm probing. I can rebase if necessary
>
> The final goal would be to get rid of .pwm_period_ns in leds-pwm and pwm_bl
> after moving all the remaining users (still around 25) to pwm_lookup.
>
> Changes in v2:
>  - correctly unlock the pwm_lookup_lock mutex before returning.
>  - don't change PWM_LOOKUP atomically
>  - remove tpu_pwm_platform_data and the associated header file
>  - make the leds-pwm and pwm_bl drivers get the period from the PWM
>
> Alexandre Belloni (11):
>   pwm: add period and polarity to struct pwm_lookup
>   ARM: shmobile: Armadillo 800 EVA: initialize all struct pwm_lookup
>     members
>   pwm: renesas-tpu: remove useless struct tpu_pwm_platform_data
>   ARM: OMAP3: Beagle: initialize all the struct pwm_lookup members
>   ARM: pxa: hx4700: initialize all the struct pwm_lookup members
>   pwm: modify PWM_LOOKUP to initialize all struct pwm_lookup members
>   ARM: OMAP3: Beagle: use PWM_LOOKUP to initialize struct pwm_lookup
>   ARM: shmobile: Armadillo 800 EVA: use PWM_LOOKUP to initialize struct
>     pwm_lookup
>   ARM: pxa: hx4700: use PWM_LOOKUP to initialize struct pwm_lookup
>   leds: leds-pwm: retrieve configured pwm period
>   backlight: pwm_bl: retrieve configured pwm period

For the hx4700 patches (5 an 9),
Acked-by: Philipp Zabel <philipp.zabel@gmail.com>

regards
Philipp

  parent reply	other threads:[~2014-05-20 17:27 UTC|newest]

Thread overview: 58+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-19 20:42 [PATCHv2 resend 00/11] improve PWM lookup support without device tree Alexandre Belloni
2014-05-19 20:42 ` Alexandre Belloni
2014-05-19 20:42 ` Alexandre Belloni
2014-05-19 20:42 ` [PATCHv2 resend 01/11] pwm: add period and polarity to struct pwm_lookup Alexandre Belloni
2014-05-19 20:42   ` Alexandre Belloni
2014-05-19 20:42   ` Alexandre Belloni
2014-05-19 20:42 ` [PATCHv2 resend 02/11] ARM: shmobile: Armadillo 800 EVA: initialize all struct pwm_lookup members Alexandre Belloni
2014-05-19 20:42   ` Alexandre Belloni
2014-05-19 20:42   ` Alexandre Belloni
2014-05-19 20:42 ` [PATCHv2 resend 03/11] pwm: renesas-tpu: remove useless struct tpu_pwm_platform_data Alexandre Belloni
2014-05-19 20:42   ` Alexandre Belloni
2014-05-19 20:42   ` Alexandre Belloni
2014-05-19 20:42 ` [PATCHv2 resend 04/11] ARM: OMAP3: Beagle: initialize all the struct pwm_lookup members Alexandre Belloni
2014-05-19 20:42   ` Alexandre Belloni
2014-05-19 20:42   ` Alexandre Belloni
2014-05-19 20:49   ` Tony Lindgren
2014-05-19 20:49     ` Tony Lindgren
2014-05-19 20:49     ` Tony Lindgren
2014-05-19 20:42 ` [PATCHv2 resend 05/11] ARM: pxa: hx4700: " Alexandre Belloni
2014-05-19 20:42   ` Alexandre Belloni
2014-05-19 20:42   ` Alexandre Belloni
2014-05-19 20:42 ` [PATCHv2 resend 06/11] pwm: modify PWM_LOOKUP to initialize all " Alexandre Belloni
2014-05-19 20:42   ` Alexandre Belloni
2014-05-19 20:42   ` Alexandre Belloni
2014-05-19 20:42 ` [PATCHv2 resend 07/11] ARM: OMAP3: Beagle: use PWM_LOOKUP to initialize struct pwm_lookup Alexandre Belloni
2014-05-19 20:42   ` Alexandre Belloni
2014-05-19 20:42   ` Alexandre Belloni
2014-05-19 20:50   ` Tony Lindgren
2014-05-19 20:50     ` Tony Lindgren
2014-05-19 20:50     ` Tony Lindgren
2014-05-19 20:42 ` [PATCHv2 resend 08/11] ARM: shmobile: Armadillo 800 EVA: use PWM_LOOKUP to initialize struct pwm_loo Alexandre Belloni
2014-05-19 20:42   ` [PATCHv2 resend 08/11] ARM: shmobile: Armadillo 800 EVA: use PWM_LOOKUP to initialize struct pwm_lookup Alexandre Belloni
2014-05-19 20:42   ` Alexandre Belloni
2014-05-19 20:42 ` [PATCHv2 resend 09/11] ARM: pxa: hx4700: " Alexandre Belloni
2014-05-19 20:42   ` Alexandre Belloni
2014-05-19 20:42   ` Alexandre Belloni
2014-05-19 20:42 ` [PATCHv2 resend 10/11] leds: leds-pwm: retrieve configured pwm period Alexandre Belloni
2014-05-19 20:42   ` Alexandre Belloni
2014-05-19 20:42   ` Alexandre Belloni
2014-05-19 20:42 ` [PATCHv2 resend 11/11] backlight: pwm_bl: " Alexandre Belloni
2014-05-19 20:42   ` Alexandre Belloni
2014-05-19 20:42   ` Alexandre Belloni
2014-05-19 21:08 ` [PATCHv2 resend 00/11] improve PWM lookup support without device tree Thierry Reding
2014-05-19 21:08   ` Thierry Reding
2014-05-19 21:08   ` Thierry Reding
2014-05-19 22:39 ` Simon Horman
2014-05-19 22:39   ` Simon Horman
2014-05-19 22:39   ` Simon Horman
2014-05-20  0:55   ` Laurent Pinchart
2014-05-20  0:55     ` Laurent Pinchart
2014-05-20  0:55     ` Laurent Pinchart
2014-05-20  0:55     ` Laurent Pinchart
2014-05-20 17:27 ` Philipp Zabel [this message]
2014-05-20 17:27   ` Philipp Zabel
2014-05-20 17:27   ` Philipp Zabel
2014-05-21  9:16 ` Thierry Reding
2014-05-21  9:16   ` Thierry Reding
2014-05-21  9:16   ` 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=CA+gwMccr8N+oZA4A5DY168Vis0Q6OaVDJuJaWzRVTQ389ixjjQ@mail.gmail.com \
    --to=philipp.zabel@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.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 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.