Skip to content

Commit

Permalink
remoteproc: clear bitmap in remoteproc_stop()
Browse files Browse the repository at this point in the history
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 <liguiding1@xiaomi.com>
  • Loading branch information
GUIDINGLI authored and CV-Bowen committed Dec 4, 2023
1 parent b33183f commit d76ee48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/remoteproc/remoteproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d76ee48

Please sign in to comment.