All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thierry Reding <thierry.reding@gmail.com>
To: Axel Lin <axel.lin@ingics.com>
Cc: Xiubo Li <Li.Xiubo@freescale.com>, linux-pwm@vger.kernel.org
Subject: Re: [PATCH] pwm: fsl-ftm: set pwm_chip can_sleep flag
Date: Fri, 23 May 2014 09:15:05 +0200	[thread overview]
Message-ID: <20140523071504.GA6310@ulmo> (raw)
In-Reply-To: <1400717120.23867.1.camel@phoenix>

[-- 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 --]

      parent reply	other threads:[~2014-05-23  7:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 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=20140523071504.GA6310@ulmo \
    --to=thierry.reding@gmail.com \
    --cc=Li.Xiubo@freescale.com \
    --cc=axel.lin@ingics.com \
    --cc=linux-pwm@vger.kernel.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.