* [PATCH] firmware: qcom: scm: add a dummy qcom_scm_assign_mem()
@ 2018-06-12 13:23 Niklas Cassel
2018-06-12 15:55 ` Bjorn Andersson
0 siblings, 1 reply; 2+ messages in thread
From: Niklas Cassel @ 2018-06-12 13:23 UTC (permalink / raw)
To: Andy Gross, Bjorn Andersson, Avaneesh Kumar Dwivedi, Stephen Boyd,
Jordan Crouse, Govind Singh, Niklas Cassel
Cc: linux-arm-msm, linux-kernel
Add a dummy qcom_scm_assign_mem() to enable building drivers when
CONFIG_COMPILE_TEST=y && CONFIG_QCOM_SCM=n.
All other qcom_scm_* functions already have a dummy version.
Signed-off-by: Niklas Cassel <niklas.cassel@linaro.org>
---
include/linux/qcom_scm.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/linux/qcom_scm.h b/include/linux/qcom_scm.h
index da63d84e1e91..06996ad4f2bc 100644
--- a/include/linux/qcom_scm.h
+++ b/include/linux/qcom_scm.h
@@ -89,6 +89,10 @@ static inline int qcom_scm_pas_mem_setup(u32 peripheral, phys_addr_t addr,
static inline int
qcom_scm_pas_auth_and_reset(u32 peripheral) { return -ENODEV; }
static inline int qcom_scm_pas_shutdown(u32 peripheral) { return -ENODEV; }
+static inline int qcom_scm_assign_mem(phys_addr_t mem_addr, size_t mem_sz,
+ unsigned int *src,
+ struct qcom_scm_vmperm *newvm,
+ int dest_cnt) { return -ENODEV; }
static inline void qcom_scm_cpu_power_down(u32 flags) {}
static inline u32 qcom_scm_get_version(void) { return 0; }
static inline u32
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] firmware: qcom: scm: add a dummy qcom_scm_assign_mem()
2018-06-12 13:23 [PATCH] firmware: qcom: scm: add a dummy qcom_scm_assign_mem() Niklas Cassel
@ 2018-06-12 15:55 ` Bjorn Andersson
0 siblings, 0 replies; 2+ messages in thread
From: Bjorn Andersson @ 2018-06-12 15:55 UTC (permalink / raw)
To: Niklas Cassel
Cc: Andy Gross, Avaneesh Kumar Dwivedi, Stephen Boyd, Jordan Crouse,
Govind Singh, linux-arm-msm, linux-kernel
On Tue 12 Jun 06:23 PDT 2018, Niklas Cassel wrote:
> Add a dummy qcom_scm_assign_mem() to enable building drivers when
> CONFIG_COMPILE_TEST=y && CONFIG_QCOM_SCM=n.
>
> All other qcom_scm_* functions already have a dummy version.
>
> Signed-off-by: Niklas Cassel <niklas.cassel@linaro.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Regards,
Bjorn
> ---
> include/linux/qcom_scm.h | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/include/linux/qcom_scm.h b/include/linux/qcom_scm.h
> index da63d84e1e91..06996ad4f2bc 100644
> --- a/include/linux/qcom_scm.h
> +++ b/include/linux/qcom_scm.h
> @@ -89,6 +89,10 @@ static inline int qcom_scm_pas_mem_setup(u32 peripheral, phys_addr_t addr,
> static inline int
> qcom_scm_pas_auth_and_reset(u32 peripheral) { return -ENODEV; }
> static inline int qcom_scm_pas_shutdown(u32 peripheral) { return -ENODEV; }
> +static inline int qcom_scm_assign_mem(phys_addr_t mem_addr, size_t mem_sz,
> + unsigned int *src,
> + struct qcom_scm_vmperm *newvm,
> + int dest_cnt) { return -ENODEV; }
> static inline void qcom_scm_cpu_power_down(u32 flags) {}
> static inline u32 qcom_scm_get_version(void) { return 0; }
> static inline u32
> --
> 2.17.1
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-06-12 15:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-12 13:23 [PATCH] firmware: qcom: scm: add a dummy qcom_scm_assign_mem() Niklas Cassel
2018-06-12 15:55 ` Bjorn Andersson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox