mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3] firmware: qcom_scm: Clear download bit during reboot
@ 2023-03-16 15:14 Mukesh Ojha
  2023-03-22 14:45 ` Bjorn Andersson
  2023-05-18 10:15 ` Robert Marko
  0 siblings, 2 replies; 17+ messages in thread
From: Mukesh Ojha @ 2023-03-16 15:14 UTC (permalink / raw)
  To: agross, andersson, konrad.dybcio; +Cc: linux-arm-msm, linux-kernel, Mukesh Ojha

During normal restart of a system download bit should
be cleared irrespective of whether download mode is
set or not.

Fixes: 8c1b7dc9ba22 ("firmware: qcom: scm: Expose download-mode control")
Signed-off-by: Mukesh Ojha <quic_mojha@quicinc.com>
---
Changes in v3:
  - Added Fixes tag.
  - Removed it from below patch series, as it makes sense to go this independently.
    https://lore.kernel.org/lkml/1677664555-30191-1-git-send-email-quic_mojha@quicinc.com/

Changes in v2:
  - No change.

 drivers/firmware/qcom_scm.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/firmware/qcom_scm.c b/drivers/firmware/qcom_scm.c
index 468d4d5..3e020d1 100644
--- a/drivers/firmware/qcom_scm.c
+++ b/drivers/firmware/qcom_scm.c
@@ -1506,8 +1506,7 @@ static int qcom_scm_probe(struct platform_device *pdev)
 static void qcom_scm_shutdown(struct platform_device *pdev)
 {
 	/* Clean shutdown, disable download mode to allow normal restart */
-	if (download_mode)
-		qcom_scm_set_download_mode(false);
+	qcom_scm_set_download_mode(false);
 }
 
 static const struct of_device_id qcom_scm_dt_match[] = {
-- 
2.7.4


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2023-11-01 10:42 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-16 15:14 [PATCH v3] firmware: qcom_scm: Clear download bit during reboot Mukesh Ojha
2023-03-22 14:45 ` Bjorn Andersson
2023-05-18 10:15 ` Robert Marko
2023-05-18 10:43   ` Mukesh Ojha
2023-05-18 11:01     ` Robert Marko
2023-05-18 11:28       ` Mukesh Ojha
2023-05-18 11:31         ` Robert Marko
2023-05-22  6:11   ` Mukesh Ojha
2023-05-22  8:59     ` Robert Marko
2023-05-22  9:11       ` Mukesh Ojha
2023-05-22  9:26         ` Robert Marko
2023-05-22 10:04           ` Robert Marko
2023-05-23  9:42             ` Mukesh Ojha
2023-05-25 21:43               ` Robert Marko
2023-10-26 15:15                 ` Mukesh Ojha
2023-11-01  9:51                   ` Robert Marko
2023-11-01 10:41                     ` Mukesh Ojha

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®