|
|
@@ -1524,7 +1524,7 @@ unlock:
|
|
|
EXPORT_SYMBOL_GPL(ipu_image_convert_queue);
|
|
|
|
|
|
/* Abort any active or pending conversions for this context */
|
|
|
-void ipu_image_convert_abort(struct ipu_image_convert_ctx *ctx)
|
|
|
+static void __ipu_image_convert_abort(struct ipu_image_convert_ctx *ctx)
|
|
|
{
|
|
|
struct ipu_image_convert_chan *chan = ctx->chan;
|
|
|
struct ipu_image_convert_priv *priv = chan->priv;
|
|
|
@@ -1551,7 +1551,7 @@ void ipu_image_convert_abort(struct ipu_image_convert_ctx *ctx)
|
|
|
|
|
|
need_abort = (run_count || active_run);
|
|
|
|
|
|
- ctx->aborting = need_abort;
|
|
|
+ ctx->aborting = true;
|
|
|
|
|
|
spin_unlock_irqrestore(&chan->irqlock, flags);
|
|
|
|
|
|
@@ -1572,7 +1572,11 @@ void ipu_image_convert_abort(struct ipu_image_convert_ctx *ctx)
|
|
|
dev_warn(priv->ipu->dev, "%s: timeout\n", __func__);
|
|
|
force_abort(ctx);
|
|
|
}
|
|
|
+}
|
|
|
|
|
|
+void ipu_image_convert_abort(struct ipu_image_convert_ctx *ctx)
|
|
|
+{
|
|
|
+ __ipu_image_convert_abort(ctx);
|
|
|
ctx->aborting = false;
|
|
|
}
|
|
|
EXPORT_SYMBOL_GPL(ipu_image_convert_abort);
|
|
|
@@ -1586,7 +1590,7 @@ void ipu_image_convert_unprepare(struct ipu_image_convert_ctx *ctx)
|
|
|
bool put_res;
|
|
|
|
|
|
/* make sure no runs are hanging around */
|
|
|
- ipu_image_convert_abort(ctx);
|
|
|
+ __ipu_image_convert_abort(ctx);
|
|
|
|
|
|
dev_dbg(priv->ipu->dev, "%s: task %u: removing ctx %p\n", __func__,
|
|
|
chan->ic_task, ctx);
|