Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756616AbcKBUjy (ORCPT ); Wed, 2 Nov 2016 16:39:54 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:48848 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756031AbcKBUjx (ORCPT ); Wed, 2 Nov 2016 16:39:53 -0400 DMARC-Filter: OpenDMARC Filter v1.3.1 smtp.codeaurora.org 94FF76032C 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, 2 Nov 2016 13:39:50 -0700 From: Stephen Boyd To: Rajendra Nayak Cc: mturquette@baylibre.com, linux-clk@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, tdas@codeaurora.org, Srinivas Kandagatla Subject: Re: [PATCH 1/7] clk: qcom: Mark a few branch clocks with BRANCH_HALT_DELAY Message-ID: <20161102203950.GK16026@codeaurora.org> References: <1476876523-27378-1-git-send-email-rnayak@codeaurora.org> <1476876523-27378-2-git-send-email-rnayak@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1476876523-27378-2-git-send-email-rnayak@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: 1062 Lines: 24 On 10/19, Rajendra Nayak wrote: > We seem to have a few branch clocks within gcc for msm8996 which do > have a valid halt bit but can't be used to check branch enable/disable > status as they rely on external clocks in some cases and in some > others only toggle during an ongoing bus transaction. > Mark these with BRANCH_HALT_DELAY, so we just add a delay instead. > > Signed-off-by: Rajendra Nayak > --- Srini tells me that if the pcie pipe clocks are enabled after the phy is powered up things work fine and the halt bit checks work. So I don't think we need this patch. Probably the drivers are enabling all their clocks at probe instead of understanding that the phy is outputting a clock that goes into gcc to be gated and then back out into their controller and/or phy. Also, note that these clocks have parents that should be populated by the phys, but so far we haven't done that. That should be fixed as well. -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project