]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
remoteproc: qcom: pas: Remove subdevs on the error path of adsp_probe()
authorJoe Hattori <joe@pf.is.s.u-tokyo.ac.jp>
Fri, 8 Nov 2024 04:13:53 +0000 (13:13 +0900)
committerBjorn Andersson <andersson@kernel.org>
Sat, 16 Nov 2024 03:25:29 +0000 (19:25 -0800)
commit587b67cf62a91b10a47f41c20ed8ad71db375334
tree910c85dc083401aa479d77a2621e6c4b76d39ddc
parentad64a7c4a49d30c5d909a35e2c7882d3870ddafc
remoteproc: qcom: pas: Remove subdevs on the error path of adsp_probe()

Current implementation of adsp_probe() in qcom_q6v5_pas.c does not
remove the subdevs of adsp on the error path. Fix this bug by calling
qcom_remove_{ssr,sysmon,pdm,smd,glink}_subdev(), qcom_q6v5_deinit(), and
adsp_unassign_memory_region() appropriately.

Fixes: 4b48921a8f74 ("remoteproc: qcom: Use common SMD edge handler")
Signed-off-by: Joe Hattori <joe@pf.is.s.u-tokyo.ac.jp>
Link: https://lore.kernel.org/r/a1cabc64240022a7f1d5237aa2aa6f72d8fb7052.1731038950.git.joe@pf.is.s.u-tokyo.ac.jp
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/remoteproc/qcom_q6v5_pas.c