DORMANTno replies REVIEWED: 1 (0M)

1 review trailer.

[PATCH resend] pwm: atmel: set pwm_chip can_sleep flag

From: Alexandre Belloni <hidden>
Date: 2014-05-19 20:30:55
Also in: linux-pwm, lkml
Subsystem: microchip pwm driver, pwm subsystem, the rest · Maintainers: Claudiu Beznea, Uwe Kleine-König, Linus Torvalds

atmel_pwm_config() calls clk_get_rate() which might sleep, so we need to set
pwm_chip can_sleep flag.

Signed-off-by: Alexandre Belloni <redacted>
Acked-by: Nicolas Ferre <redacted>
---
 drivers/pwm/pwm-atmel.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/drivers/pwm/pwm-atmel.c b/drivers/pwm/pwm-atmel.c
index 0adc952cc4ef..6e700a541ca3 100644
--- a/drivers/pwm/pwm-atmel.c
+++ b/drivers/pwm/pwm-atmel.c
@@ -357,6 +357,7 @@ static int atmel_pwm_probe(struct platform_device *pdev)
 
 	atmel_pwm->chip.base = -1;
 	atmel_pwm->chip.npwm = 4;
+	atmel_pwm->chip.can_sleep = true;
 	atmel_pwm->config = data->config;
 
 	ret = pwmchip_add(&atmel_pwm->chip);
-- 
1.9.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help