Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755215AbcKJBw4 (ORCPT ); Wed, 9 Nov 2016 20:52:56 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:41844 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753032AbcKJBwx (ORCPT ); Wed, 9 Nov 2016 20:52:53 -0500 DMARC-Filter: OpenDMARC Filter v1.3.1 smtp.codeaurora.org 59412606DC Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=pass smtp.mailfrom=sboyd@codeaurora.org Date: Wed, 9 Nov 2016 17:52:51 -0800 From: Stephen Boyd To: Stanimir Varbanov Cc: Ohad Ben-Cohen , Bjorn Andersson , Andy Gross , Rob Herring , Mark Rutland , Srinivas Kandagatla , linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v2 1/3] firmware: qcom: scm: add a video command for state setting Message-ID: <20161110015251.GC16026@codeaurora.org> References: <1478539853-23218-1-git-send-email-stanimir.varbanov@linaro.org> <1478539853-23218-2-git-send-email-stanimir.varbanov@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1478539853-23218-2-git-send-email-stanimir.varbanov@linaro.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1038 Lines: 37 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