diff mbox series

[13/17] media: camss: vfe-170: fix "VFE halt timeout" error

Message ID 20210511180728.23781-14-jonathan@marek.ca
State Accepted
Commit 1ce8c48b06f249a9739e36c5d56883f6f49ce047
Headers show
Series [01/17] media: camss: csiphy-3ph: don't print HW version as an error | expand

Commit Message

Jonathan Marek May 11, 2021, 6:07 p.m. UTC
This function waits for halt_complete but doesn't do anything to cause
it to complete, and always hits the "VFE halt timeout" error. Just delete
this code for now.

Fixes: 7319cdf189bb ("media: camss: Add support for VFE hardware version Titan 170")
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
---
 drivers/media/platform/qcom/camss/camss-vfe-170.c | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

Comments

Robert Foss May 31, 2021, 11:13 a.m. UTC | #1
On Tue, 11 May 2021 at 20:08, Jonathan Marek <jonathan@marek.ca> wrote:
>

> This function waits for halt_complete but doesn't do anything to cause

> it to complete, and always hits the "VFE halt timeout" error. Just delete

> this code for now.

>

> Fixes: 7319cdf189bb ("media: camss: Add support for VFE hardware version Titan 170")

> Signed-off-by: Jonathan Marek <jonathan@marek.ca>

> ---

>  drivers/media/platform/qcom/camss/camss-vfe-170.c | 12 +-----------

>  1 file changed, 1 insertion(+), 11 deletions(-)

>

> diff --git a/drivers/media/platform/qcom/camss/camss-vfe-170.c b/drivers/media/platform/qcom/camss/camss-vfe-170.c

> index 076ca082e107..080eef767d3b 100644

> --- a/drivers/media/platform/qcom/camss/camss-vfe-170.c

> +++ b/drivers/media/platform/qcom/camss/camss-vfe-170.c

> @@ -363,17 +363,7 @@ static irqreturn_t vfe_isr(int irq, void *dev)

>   */

>  static int vfe_halt(struct vfe_device *vfe)

>  {

> -       unsigned long time;

> -

> -       reinit_completion(&vfe->halt_complete);

> -

> -       time = wait_for_completion_timeout(&vfe->halt_complete,

> -                                          msecs_to_jiffies(VFE_HALT_TIMEOUT_MS));

> -       if (!time) {

> -               dev_err(vfe->camss->dev, "VFE halt timeout\n");

> -               return -EIO;

> -       }

> -

> +       /* rely on vfe_disable_output() to stop the VFE */

>         return 0;

>  }



Reviewed-by: Robert Foss <robert.foss@linaro.org>
diff mbox series

Patch

diff --git a/drivers/media/platform/qcom/camss/camss-vfe-170.c b/drivers/media/platform/qcom/camss/camss-vfe-170.c
index 076ca082e107..080eef767d3b 100644
--- a/drivers/media/platform/qcom/camss/camss-vfe-170.c
+++ b/drivers/media/platform/qcom/camss/camss-vfe-170.c
@@ -363,17 +363,7 @@  static irqreturn_t vfe_isr(int irq, void *dev)
  */
 static int vfe_halt(struct vfe_device *vfe)
 {
-	unsigned long time;
-
-	reinit_completion(&vfe->halt_complete);
-
-	time = wait_for_completion_timeout(&vfe->halt_complete,
-					   msecs_to_jiffies(VFE_HALT_TIMEOUT_MS));
-	if (!time) {
-		dev_err(vfe->camss->dev, "VFE halt timeout\n");
-		return -EIO;
-	}
-
+	/* rely on vfe_disable_output() to stop the VFE */
 	return 0;
 }