From: Sarangdhar Joshi Subject: Re: [PATCH v2 3/3] firmware: qcom: scm: Return PTR_ERR when devm_clk_get fails Date: Fri, 11 Nov 2016 13:30:21 -0800 Message-ID: <4894fdf2-1253-781d-f177-fff857f60376@codeaurora.org> References: <1478218237-1737-1-git-send-email-spjoshi@codeaurora.org> <1478218237-1737-4-git-send-email-spjoshi@codeaurora.org> <20161110014908.GZ16026@codeaurora.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from smtp.codeaurora.org ([198.145.29.96]:47234 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935596AbcKKVaY (ORCPT ); Fri, 11 Nov 2016 16:30:24 -0500 In-Reply-To: <20161110014908.GZ16026@codeaurora.org> Sender: linux-arm-msm-owner@vger.kernel.org List-Id: linux-arm-msm@vger.kernel.org To: Stephen Boyd Cc: Andy Gross , David Brown , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Andersson , Jordan Crouse , Trilok Soni On 11/09/2016 05:49 PM, Stephen Boyd wrote: > On 11/03, Sarangdhar Joshi wrote: >> When devm_clk_get fails for core clock, the failure was ignored >> and the core_clk was explicitly set to NULL so that other >> remaining clocks can be queried. However, now that we have a >> cleaner way of expressing the clock dependency, return failure >> when devm_clk_get fails for core clock. >> >> Signed-off-by: Sarangdhar Joshi > > Why can't this be folded into the second patch? It seems > incorrect to allow it to silently work in patch 2 even though > we've flagged that clk as a requirement and then change that > behavior here. > The idea was keep it separate so that if someone needs to keep earlier behavior (of ignoring the core clock failure), then it would be easier to just revert this commit and still use flag mechanism. Also convenient with git bisect for finding offending commit. I don't mind squashing this into patch 2 if we think that's better. Regards, Sarang -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project