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

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