Skip to content

Commit 781d32d

Browse files
Mukesh Ojhaandersson
authored andcommitted
firmware: qcom_scm: Clear download bit during reboot
During normal restart of a system download bit should be cleared irrespective of whether download mode is set or not. Fixes: 8c1b7dc ("firmware: qcom: scm: Expose download-mode control") Signed-off-by: Mukesh Ojha <quic_mojha@quicinc.com> Signed-off-by: Bjorn Andersson <andersson@kernel.org> Link: https://lore.kernel.org/r/1678979666-551-1-git-send-email-quic_mojha@quicinc.com
1 parent 9559342 commit 781d32d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/firmware/qcom_scm.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1508,8 +1508,7 @@ static int qcom_scm_probe(struct platform_device *pdev)
15081508
static void qcom_scm_shutdown(struct platform_device *pdev)
15091509
{
15101510
/* Clean shutdown, disable download mode to allow normal restart */
1511-
if (download_mode)
1512-
qcom_scm_set_download_mode(false);
1511+
qcom_scm_set_download_mode(false);
15131512
}
15141513

15151514
static const struct of_device_id qcom_scm_dt_match[] = {

0 commit comments

Comments
 (0)