linux-pwm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] pwm: fsl-ftm: set pwm_chip can_sleep flag
@ 2014-05-22  0:05 Axel Lin
  2014-05-23  1:02 ` Li.Xiubo
  2014-05-23  7:15 ` Thierry Reding
  0 siblings, 2 replies; 5+ messages in thread
From: Axel Lin @ 2014-05-22  0:05 UTC (permalink / raw)
  To: Thierry Reding; +Cc: Xiubo Li, linux-pwm

The implementation of .config(), .enable() and .disable() operations in this
driver may sleep, thus set pwm_chip can_sleep flag.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/pwm/pwm-fsl-ftm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/pwm/pwm-fsl-ftm.c b/drivers/pwm/pwm-fsl-ftm.c
index 420169e..a18bc8f 100644
--- a/drivers/pwm/pwm-fsl-ftm.c
+++ b/drivers/pwm/pwm-fsl-ftm.c
@@ -454,6 +454,7 @@ static int fsl_pwm_probe(struct platform_device *pdev)
 	fpc->chip.of_pwm_n_cells = 3;
 	fpc->chip.base = -1;
 	fpc->chip.npwm = 8;
+	fpc->chip.can_sleep = true;
 
 	ret = pwmchip_add(&fpc->chip);
 	if (ret < 0) {
-- 
1.8.3.2




^ permalink raw reply related	[flat|nested] 5+ messages in thread

* RE: [PATCH] pwm: fsl-ftm: set pwm_chip can_sleep flag
  2014-05-22  0:05 [PATCH] pwm: fsl-ftm: set pwm_chip can_sleep flag Axel Lin
@ 2014-05-23  1:02 ` Li.Xiubo
  2014-05-23  7:16   ` Thierry Reding
  2014-05-23  7:15 ` Thierry Reding
  1 sibling, 1 reply; 5+ messages in thread
From: Li.Xiubo @ 2014-05-23  1:02 UTC (permalink / raw)
  To: Axel Lin, Thierry Reding; +Cc: linux-pwm@vger.kernel.org

> Subject: [PATCH] pwm: fsl-ftm: set pwm_chip can_sleep flag
> 
> The implementation of .config(), .enable() and .disable() operations in this
> driver may sleep, thus set pwm_chip can_sleep flag.
> 
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> ---

Acked-by: Xiubo Li <Li.Xiubo@freescale.com>

@Thierry,

There are still 4 patches before this one, and I'd like to know the status of
them: 
	[PATCHv2 0/4] FTM PWM adds regmap and endianness support.

Thanks,

BRs
Xiubo


>  drivers/pwm/pwm-fsl-ftm.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/pwm/pwm-fsl-ftm.c b/drivers/pwm/pwm-fsl-ftm.c
> index 420169e..a18bc8f 100644
> --- a/drivers/pwm/pwm-fsl-ftm.c
> +++ b/drivers/pwm/pwm-fsl-ftm.c
> @@ -454,6 +454,7 @@ static int fsl_pwm_probe(struct platform_device *pdev)
>  	fpc->chip.of_pwm_n_cells = 3;
>  	fpc->chip.base = -1;
>  	fpc->chip.npwm = 8;
> +	fpc->chip.can_sleep = true;
> 
>  	ret = pwmchip_add(&fpc->chip);
>  	if (ret < 0) {
> --
> 1.8.3.2
> 
> 


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] pwm: fsl-ftm: set pwm_chip can_sleep flag
  2014-05-22  0:05 [PATCH] pwm: fsl-ftm: set pwm_chip can_sleep flag Axel Lin
  2014-05-23  1:02 ` Li.Xiubo
@ 2014-05-23  7:15 ` Thierry Reding
  1 sibling, 0 replies; 5+ messages in thread
From: Thierry Reding @ 2014-05-23  7:15 UTC (permalink / raw)
  To: Axel Lin; +Cc: Xiubo Li, linux-pwm

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

On Thu, May 22, 2014 at 08:05:20AM +0800, Axel Lin wrote:
> The implementation of .config(), .enable() and .disable() operations in this
> driver may sleep, thus set pwm_chip can_sleep flag.
> 
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> ---
>  drivers/pwm/pwm-fsl-ftm.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/pwm/pwm-fsl-ftm.c b/drivers/pwm/pwm-fsl-ftm.c
> index 420169e..a18bc8f 100644
> --- a/drivers/pwm/pwm-fsl-ftm.c
> +++ b/drivers/pwm/pwm-fsl-ftm.c
> @@ -454,6 +454,7 @@ static int fsl_pwm_probe(struct platform_device *pdev)
>  	fpc->chip.of_pwm_n_cells = 3;
>  	fpc->chip.base = -1;
>  	fpc->chip.npwm = 8;
> +	fpc->chip.can_sleep = true;
>  
>  	ret = pwmchip_add(&fpc->chip);
>  	if (ret < 0) {

Applied, thanks.

Thierry

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] pwm: fsl-ftm: set pwm_chip can_sleep flag
  2014-05-23  1:02 ` Li.Xiubo
@ 2014-05-23  7:16   ` Thierry Reding
  2014-05-27  1:38     ` Li.Xiubo
  0 siblings, 1 reply; 5+ messages in thread
From: Thierry Reding @ 2014-05-23  7:16 UTC (permalink / raw)
  To: Li.Xiubo@freescale.com; +Cc: Axel Lin, linux-pwm@vger.kernel.org

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

On Fri, May 23, 2014 at 01:02:21AM +0000, Li.Xiubo@freescale.com wrote:
> > Subject: [PATCH] pwm: fsl-ftm: set pwm_chip can_sleep flag
> > 
> > The implementation of .config(), .enable() and .disable() operations in this
> > driver may sleep, thus set pwm_chip can_sleep flag.
> > 
> > Signed-off-by: Axel Lin <axel.lin@ingics.com>
> > ---
> 
> Acked-by: Xiubo Li <Li.Xiubo@freescale.com>
> 
> @Thierry,
> 
> There are still 4 patches before this one, and I'd like to know the status of
> them: 
> 	[PATCHv2 0/4] FTM PWM adds regmap and endianness support.

I was holding off on those because I thought I had seen some discussion
about how to represent endianness support in DT and I'm not aware that
there were any conclusions yet.

Thierry

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [PATCH] pwm: fsl-ftm: set pwm_chip can_sleep flag
  2014-05-23  7:16   ` Thierry Reding
@ 2014-05-27  1:38     ` Li.Xiubo
  0 siblings, 0 replies; 5+ messages in thread
From: Li.Xiubo @ 2014-05-27  1:38 UTC (permalink / raw)
  To: Thierry Reding; +Cc: Axel Lin, linux-pwm@vger.kernel.org

> Subject: Re: [PATCH] pwm: fsl-ftm: set pwm_chip can_sleep flag
> 
> On Fri, May 23, 2014 at 01:02:21AM +0000, Li.Xiubo@freescale.com wrote:
> > > Subject: [PATCH] pwm: fsl-ftm: set pwm_chip can_sleep flag
> > >
> > > The implementation of .config(), .enable() and .disable() operations in
> this
> > > driver may sleep, thus set pwm_chip can_sleep flag.
> > >
> > > Signed-off-by: Axel Lin <axel.lin@ingics.com>
> > > ---
> >
> > Acked-by: Xiubo Li <Li.Xiubo@freescale.com>
> >
> > @Thierry,
> >
> > There are still 4 patches before this one, and I'd like to know the status
> of
> > them:
> > 	[PATCHv2 0/4] FTM PWM adds regmap and endianness support.
> 
> I was holding off on those because I thought I had seen some discussion
> about how to represent endianness support in DT and I'm not aware that
> there were any conclusions yet.
> 

  pwm: ftm-pwm: Clean up the code.
  pwm: ftm-pwm: Convert to direct regmap API usage.

Well, how about the above two patches? And that discussion is mostly about 
The following ones:

  Documentation: Add 'big-endian' property for FTM PWM.
  pwm: ftm-pwm: Add big-endian support


Thanks,

BRs
Xiubo


> Thierry

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-05-27  1:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-22  0:05 [PATCH] pwm: fsl-ftm: set pwm_chip can_sleep flag Axel Lin
2014-05-23  1:02 ` Li.Xiubo
2014-05-23  7:16   ` Thierry Reding
2014-05-27  1:38     ` Li.Xiubo
2014-05-23  7:15 ` Thierry Reding

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).