Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1518643
| From | Stephen Boyd <sboyd@codeaurora.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 1/3] firmware: qcom: scm: add a video command for state setting |
| Date | 2016-11-10 03:00 +0100 |
| Message-ID | <sBMOJ-7gR-9@gated-at.bofh.it> (permalink) |
| References | <sAW3M-6lw-7@gated-at.bofh.it> <sAW3N-6lw-53@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 11/07, Stanimir Varbanov wrote:
> diff --git a/drivers/firmware/qcom_scm.c b/drivers/firmware/qcom_scm.c
> index d95c70227c05..7e364691a87c 100644
> --- a/drivers/firmware/qcom_scm.c
> +++ b/drivers/firmware/qcom_scm.c
> @@ -320,6 +320,22 @@ bool qcom_scm_is_available(void)
> }
> EXPORT_SYMBOL(qcom_scm_is_available);
>
> +int qcom_scm_video_set_state(u32 state, u32 spare)
> +{
> + int ret;
> +
> + ret = qcom_scm_clk_enable();
Do we need clk control for this? Usually it's only required for
crypto engine things, and turning on video doesn't sound like it
uses crypto. I don't think downstream android kernel does this.
> + if (ret)
> + return ret;
> +
> + ret = __qcom_scm_video_set_state(__scm->dev, state, spare);
> +
> + qcom_scm_clk_disable();
> +
> + return ret;
> +}
> +EXPORT_SYMBOL(qcom_scm_video_set_state);
> +
> static int qcom_scm_probe(struct platform_device *pdev)
> {
> struct qcom_scm *scm;
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2 0/3] Venus remoteproc driver Stanimir Varbanov <stanimir.varbanov@linaro.org> - 2016-11-07 18:40 +0100
[PATCH v2 3/3] remoteproc: qcom: add Venus video core firmware loader driver Stanimir Varbanov <stanimir.varbanov@linaro.org> - 2016-11-07 18:40 +0100
[PATCH v2 1/3] firmware: qcom: scm: add a video command for state setting Stanimir Varbanov <stanimir.varbanov@linaro.org> - 2016-11-07 18:40 +0100
Re: [PATCH v2 1/3] firmware: qcom: scm: add a video command for state setting Stephen Boyd <sboyd@codeaurora.org> - 2016-11-10 03:00 +0100
Re: [PATCH v2 1/3] firmware: qcom: scm: add a video command for state setting Stanimir Varbanov <stanimir.varbanov@linaro.org> - 2016-11-10 09:10 +0100
csiph-web