Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754438AbcKJIFn (ORCPT ); Thu, 10 Nov 2016 03:05:43 -0500 Received: from mail-wm0-f44.google.com ([74.125.82.44]:37846 "EHLO mail-wm0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752107AbcKJIFk (ORCPT ); Thu, 10 Nov 2016 03:05:40 -0500 Subject: Re: [PATCH v2 1/3] firmware: qcom: scm: add a video command for state setting To: Stephen Boyd , Stanimir Varbanov References: <1478539853-23218-1-git-send-email-stanimir.varbanov@linaro.org> <1478539853-23218-2-git-send-email-stanimir.varbanov@linaro.org> <20161110015251.GC16026@codeaurora.org> 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 From: Stanimir Varbanov Message-ID: <1c57a006-ddab-f44a-8ec8-24de62a6e02f@linaro.org> Date: Thu, 10 Nov 2016 10:05:36 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <20161110015251.GC16026@codeaurora.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 762 Lines: 27 Hi, On 11/10/2016 03:52 AM, Stephen Boyd wrote: > 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. Correct, the crypto clk is not needed. -- regards, Stan