* [PATCH] PWM: lp3943: Set pwm_chip can_sleep flag
@ 2014-04-15 16:38 Axel Lin
2014-05-21 10:25 ` Thierry Reding
0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2014-04-15 16:38 UTC (permalink / raw)
To: Thierry Reding; +Cc: Milo Kim, linux-pwm
Read/write through I2C can sleep, thus set pwm_chip can_sleep flag.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
drivers/pwm/pwm-lp3943.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/pwm/pwm-lp3943.c b/drivers/pwm/pwm-lp3943.c
index a40b9c3..2c39b0e 100644
--- a/drivers/pwm/pwm-lp3943.c
+++ b/drivers/pwm/pwm-lp3943.c
@@ -278,6 +278,7 @@ static int lp3943_pwm_probe(struct platform_device *pdev)
lp3943_pwm->chip.dev = &pdev->dev;
lp3943_pwm->chip.ops = &lp3943_pwm_ops;
lp3943_pwm->chip.npwm = LP3943_NUM_PWMS;
+ lp3943_pwm->chip.can_sleep = true;
platform_set_drvdata(pdev, lp3943_pwm);
--
1.8.3.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] PWM: lp3943: Set pwm_chip can_sleep flag
2014-04-15 16:38 [PATCH] PWM: lp3943: Set pwm_chip can_sleep flag Axel Lin
@ 2014-05-21 10:25 ` Thierry Reding
0 siblings, 0 replies; 2+ messages in thread
From: Thierry Reding @ 2014-05-21 10:25 UTC (permalink / raw)
To: Axel Lin; +Cc: Milo Kim, linux-pwm
[-- Attachment #1: Type: text/plain, Size: 291 bytes --]
On Wed, Apr 16, 2014 at 12:38:10AM +0800, Axel Lin wrote:
> Read/write through I2C can sleep, thus set pwm_chip can_sleep flag.
>
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> ---
> drivers/pwm/pwm-lp3943.c | 1 +
> 1 file changed, 1 insertion(+)
Applied, thanks.
Thierry
[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-05-21 10:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-15 16:38 [PATCH] PWM: lp3943: Set pwm_chip can_sleep flag Axel Lin
2014-05-21 10:25 ` 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).