From d76ee48d4fa76f334f271f3bcfc57c06130f987b Mon Sep 17 00:00:00 2001 From: Guiding Li Date: Mon, 26 Jun 2023 17:03:27 +0800 Subject: [PATCH] remoteproc: clear bitmap in remoteproc_stop() Fix parse res_table failed when repeat start the remoteproc. If we don't clear the bitmap it will failed in handle_vdev_rsc() -> remoteproc_allocate_id() Signed-off-by: Guiding Li --- lib/remoteproc/remoteproc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/remoteproc/remoteproc.c b/lib/remoteproc/remoteproc.c index ad16a2d7e..daea80328 100644 --- a/lib/remoteproc/remoteproc.c +++ b/lib/remoteproc/remoteproc.c @@ -256,6 +256,7 @@ int remoteproc_stop(struct remoteproc *rproc) if (rproc->ops->stop) ret = rproc->ops->stop(rproc); rproc->state = RPROC_STOPPED; + rproc->bitmap = 0; } else { ret = 0; }