Skip to contentSkip to conversation

gpu: ipu-v3: wait_for_completion_timeout does not return negativ status

PATCH Superseded Nicholas Mc Guire 2 participants 2 messages Jan 16, 2015 – Jan 19, 2015

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpu: ipu-v3: wait_for_completion_timeout does not return negativ status

---

Patch is against 3.19.0-rc3 -next-20150109

This patch was compiletested with imx_v6_v7_defconfig + CONFIG_RESET_CONTROLLER=y, CONFIG_IMX_IPUV3_CORE=m

 drivers/gpu/ipu-v3/ipu-dc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/ipu-v3/ipu-dc.c +1 -1
index 2326c75..0ffa659 100644
@@ -282,7 +282,7 @@ void ipu_dc_disable_channel(struct ipu_dc *dc)
 	enable_irq(irq);
 	ret = wait_for_completion_timeout(&priv->comp, msecs_to_jiffies(50));
 	disable_irq(irq);
-	if (ret <= 0) {
+	if (ret == 0) {
 		dev_warn(priv->dev, "DC stop timeout after 50 ms\n");
 
 		val = readl(dc->base + DC_WR_CH_CONF);
Signature · 1 line
1.7.10.4
maintainer
#1 lore raw

Hi Nicholas,

thank you for the patch.

Am Freitag, den 16.01.2015, 11:48 +0100 schrieb Nicholas Mc Guire:

Quoted 16 lines

---

Patch is against 3.19.0-rc3 -next-20150109

This patch was compiletested with imx_v6_v7_defconfig + CONFIG_RESET_CONTROLLER=y, CONFIG_IMX_IPUV3_CORE=m

 drivers/gpu/ipu-v3/ipu-dc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/ipu-v3/ipu-dc.c +0 -0
index 2326c75..0ffa659 100644

drivers/gpu/ipu-v3/ipu-dc.c void ipu_dc_disable_channel(struct ipu_dc *dc) · line 285

Quoted 5 lines
drivers/gpu/ipu-v3/ipu-dc.c +1 -1
@@ -282,7 +282,7 @@ void ipu_dc_disable_channel(struct ipu_dc *dc)
 	enable_irq(irq);
 	ret = wait_for_completion_timeout(&priv->comp, msecs_to_jiffies(50));
 	disable_irq(irq);
-	if (ret <= 0) {
+	if (ret == 0) {

In addition to this, I think ret should be changed to unsigned long.

regards
Philipp