Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0efd4d8a authored by Dmitry Kasatkin's avatar Dmitry Kasatkin Committed by Herbert Xu
Browse files

crypto: omap-sham - clear device flags when finishing request

parent ed635cb8
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -650,8 +650,10 @@ static void omap_sham_finish_req(struct ahash_request *req, int err)
		ctx->flags |= BIT(FLAGS_ERROR);
	}

	/* atomic operation is not needed here */
	dd->flags &= ~(BIT(FLAGS_BUSY) | BIT(FLAGS_FINAL) | BIT(FLAGS_CPU) |
			BIT(FLAGS_DMA_READY) | BIT(FLAGS_OUTPUT_READY));
	clk_disable(dd->iclk);
	dd->flags &= ~BIT(FLAGS_BUSY);

	if (req->base.complete)
		req->base.complete(&req->base, err);