@@ -773,21 +773,19 @@ static irqreturn_t rcsi2_irq(int irq, void *data)
rcsi2_write(priv, INTERRSTATE_REG, err_status);
- dev_info(priv->dev, "Transfer error, restarting CSI-2 receiver\n");
-
return IRQ_WAKE_THREAD;
}
static irqreturn_t rcsi2_irq_thread(int irq, void *data)
{
struct rcar_csi2 *priv = data;
+ struct v4l2_event event = {
+ .type = V4L2_EVENT_EOS,
+ };
- mutex_lock(&priv->lock);
- rcsi2_stop(priv);
- usleep_range(1000, 2000);
- if (rcsi2_start(priv))
- dev_warn(priv->dev, "Failed to restart CSI-2 receiver\n");
- mutex_unlock(&priv->lock);
+ dev_err(priv->dev, "Transfer error detected.\n");
+
+ v4l2_subdev_notify_event(&priv->subdev, &event);
return IRQ_HANDLED;
}