Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

remoteproc: qcom_q6v5_wcss: use optional reset for wcss_q6_bcr_reset

The "wcss_q6_bcr_reset" is not used on IPQ8074, and IPQ6018. Use
devm_reset_control_get_optional_exclusive() for this reset so that
probe() does not fail on platforms where it is not used.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Link: https://lore.kernel.org/r/20251129013207.3981517-2-mr.nuke.me@gmail.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>

authored by

Alexandru Gagniuc and committed by
Bjorn Andersson
641092c1 7e81fa8d

+2 -1
+2 -1
drivers/remoteproc/qcom_q6v5_wcss.c
··· 811 811 } 812 812 } 813 813 814 - wcss->wcss_q6_bcr_reset = devm_reset_control_get_exclusive(dev, "wcss_q6_bcr_reset"); 814 + wcss->wcss_q6_bcr_reset = devm_reset_control_get_optional_exclusive(dev, 815 + "wcss_q6_bcr_reset"); 815 816 if (IS_ERR(wcss->wcss_q6_bcr_reset)) { 816 817 dev_err(wcss->dev, "unable to acquire wcss_q6_bcr_reset\n"); 817 818 return PTR_ERR(wcss->wcss_q6_bcr_reset);