]> git.ipfire.org Git - thirdparty/linux.git/commit
firmware: qcom: scm: Refactor code to support multiple dload mode
authorMukesh Ojha <quic_mojha@quicinc.com>
Mon, 15 Jul 2024 15:56:54 +0000 (21:26 +0530)
committerBjorn Andersson <andersson@kernel.org>
Thu, 15 Aug 2024 03:14:42 +0000 (22:14 -0500)
commitc802b0a2ed0f67fcec8cc0cac685c8fd0dd0aa6f
tree2df82d027a3240da40187d5dade4a6c6e69ee942
parented2c37520893427dfb8b615fcc6263af796a0ab1
firmware: qcom: scm: Refactor code to support multiple dload mode

Currently on Qualcomm SoC, download_mode is enabled if
CONFIG_QCOM_SCM_DOWNLOAD_MODE_DEFAULT is selected or
passed a boolean value from command line.

Refactor the code such that it supports multiple download
modes and drop CONFIG_QCOM_SCM_DOWNLOAD_MODE_DEFAULT config
instead, give interface to set the download mode from
module parameter while being backword compatible at the
same time.

Signed-off-by: Mukesh Ojha <quic_mojha@quicinc.com>
Link: https://lore.kernel.org/r/20240715155655.1811178-1-quic_mojha@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/firmware/qcom/Kconfig
drivers/firmware/qcom/qcom_scm.c