Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754464AbcKJBtM (ORCPT ); Wed, 9 Nov 2016 20:49:12 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:38642 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751420AbcKJBtK (ORCPT ); Wed, 9 Nov 2016 20:49:10 -0500 DMARC-Filter: OpenDMARC Filter v1.3.1 smtp.codeaurora.org 64B556126A 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:49:08 -0800 From: Stephen Boyd To: Sarangdhar Joshi 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 Subject: Re: [PATCH v2 3/3] firmware: qcom: scm: Return PTR_ERR when devm_clk_get fails Message-ID: <20161110014908.GZ16026@codeaurora.org> References: <1478218237-1737-1-git-send-email-spjoshi@codeaurora.org> <1478218237-1737-4-git-send-email-spjoshi@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1478218237-1737-4-git-send-email-spjoshi@codeaurora.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: 701 Lines: 17 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. -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project