Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1431378lqb; Thu, 30 May 2024 09:53:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX9xU9108DlLA7XkXhUM29P0wxgcYv1qQBHjVsgFKMBTG2uucz4gPQ29SrFqjTREcavjthR7kuIpdzfq5JHs7nmXh8wwH10agB0ZQa2CA== X-Google-Smtp-Source: AGHT+IF3xkNy9QVXudshb1vZo0hXgZrMjiE9tQ7tszj5RM0yjrGl0BzAWKSeNhwQ9xJGj5ZiNksx X-Received: by 2002:a17:902:e80f:b0:1f4:467f:772e with SMTP id d9443c01a7336-1f6192f06d5mr30249365ad.7.1717088030599; Thu, 30 May 2024 09:53:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717088030; cv=pass; d=google.com; s=arc-20160816; b=QS6INaH48649kJpNPg7nk0SLkznt9ktjnCuiFiAbkhLGGSGFe1Z0e4D+HnvKTy/itJ LsUPXAQaKHZ7grbXzZEeQjr/wtzM4mHJvvoSPhh2S3q8mGZ9NotJm+h5nm8EyT2BGiBc kdIZe1SbgOWeBo2hwFadm1DgTqlPzzSxbQWk8W3GEASieietvHIgJpywWQgdxLQtjPpl V0YHFw6qRRrPFOUax6Dy5XtTX4U1fabIQApoZQUfkztjqB6NroJQ1HX6P18EnBZln7ES 1neBkgSKuInL4CQe3kmkpOX5frErGlkiBqKeI1V3kTgz7TSFhSv7401CU6vGkHP3iD+p M1Ww== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=EPanUMMIx/1TJTEE9NLDi5yyzem9suvdyQh1CVpP9OU=; fh=RlXfJ891twAXwetwb4VNjg9U+EAJg1TmP0nh5r5u5aU=; b=K0ihlF3Fi45O9DmE4sDnGkW/Z8CXAwSmwUMMcGX78g2fa3OXX34x6BPRuAoTuFIVHO /mcZFC/wPKtZg+PQ9jUvurMhL+e4Wx5rnj1ciHjPP4LPvuhS+5GLfeJZ9yRKzfcY+GtK wdjTOS7Rh2WJWwTz5py3cQ4xHBbvZrH1+awR4bBrYpjQJ1tXxOFOPOLcRsNOp8qj6K/1 UUUsWU0mJuCZe1HwGXHRX3fJzpaxYSVe1XnMaSZGqlSf6OLqxgQTiQPVYUCBczS97fej jGObtjh4EUkvx0VlhoB0mlW+SEiglGPOHV04fNDiXK+AM7x5P2B+Kai5cFlDtrrsjbxo +tDw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sixJYJKW; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-195678-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195678-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f632401a98si13045ad.494.2024.05.30.09.53.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 09:53:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195678-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sixJYJKW; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-195678-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195678-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id DFEB4284EDB for ; Thu, 30 May 2024 16:53:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9625D3CF4F; Thu, 30 May 2024 16:53:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sixJYJKW" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AF90036AF8; Thu, 30 May 2024 16:53:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717088022; cv=none; b=Ckbs4O4NRF9YObozN2I+w/CA64y5NgObjcVK4UVUCECxa/3bc7iWW4VDVunMdQSM++GRL0slDeLI/FKt+MGzCtOuGuwKINDSVDUAR1HU4U5/izvyART6xL/nO+kwqfDWUUEVUtC/XXUZs+Dnj6Fhbo1KAuyNTttNQ+Nd4AF53Yw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717088022; c=relaxed/simple; bh=csreo/Y/zB61/KT65YfRul5d1wWNhzkYFyul/L8HqhQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=P5d2fYh3/Jf5+970nbphkODD/jNOW5lKX7zsFaOW8DQghzbHzpuUbwBtIk5TwRU4J54TUdtrI+nlJX5TIhQtpl+oCpGdpx9MCaDH+KtoCU1lGP11gwjd6k/V/6AgAz1wNEFeV3swaoMA/xSKNkIUAf6zHtm2zolu3xRzMOV7+j4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=sixJYJKW; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2DF57C2BBFC; Thu, 30 May 2024 16:53:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717088022; bh=csreo/Y/zB61/KT65YfRul5d1wWNhzkYFyul/L8HqhQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sixJYJKWs8HReCy7Tg16UifgqrjMgDVvixJBeAub/KuvifQBz1Xf5+POmNDgV3Mnq KzLdP0gPRLUp16g7RaYaF+gfZJhKyK3Xkyo8VpXO8hDbQmOJCeSIHclpysYtLIkvca CB2avUe5wOFTZSRhQZg1mik/iZq4bWuMGKtaZkQAN4L4OOk0UN4N8LNBnXXtHu/aU+ RxUnjfLjT66r4mFHP10sX3skfw85sQgKd6RMCwHRKbcr8yjZD2DvB71Hk9sPfDx+6K 1bnN76QaoAwFfdDMTbvwv/mpcpXlOQ+wDhs2zp8oTZ+G+rzlUMmTwXUk/WtOYlYkJM oc6fCpoNOmWbA== Date: Thu, 30 May 2024 22:23:35 +0530 From: Manivannan Sadhasivam To: Abel Vesa Cc: Bjorn Andersson , Michael Turquette , Stephen Boyd , Rajendra Nayak , Bryan O'Donoghue , Konrad Dybcio , Sibi Sankar , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] clk: qcom: gcc-x1e80100: Fix halt_check for all 3 USB PHY pipe clocks Message-ID: <20240530165335.GB11438@thinkpad> References: <20240530-x1e80100-clk-gcc-fix-halt-check-for-usb-phy-pipe-clks-v1-1-16c6f4dccbd5@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240530-x1e80100-clk-gcc-fix-halt-check-for-usb-phy-pipe-clks-v1-1-16c6f4dccbd5@linaro.org> On Thu, May 30, 2024 at 07:48:44PM +0300, Abel Vesa wrote: > Since the pipe clocks are fed by the QMP PHYs, they are not under the > GCC control, therefore the halt bit might not get. This will lead to > the clock driver reporting the clock as stuck, but that is inaccurate. > So instead of waiting for the halt bit to get set, just use the > HALT_DELAY flag. > Isn't this behavior applicable to PCIe pipe clocks also? - Mani > Fixes: 161b7c401f4b ("clk: qcom: Add Global Clock controller (GCC) driver for X1E80100") > Signed-off-by: Abel Vesa > --- > drivers/clk/qcom/gcc-x1e80100.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/clk/qcom/gcc-x1e80100.c b/drivers/clk/qcom/gcc-x1e80100.c > index 1404017be918..afff7cd14848 100644 > --- a/drivers/clk/qcom/gcc-x1e80100.c > +++ b/drivers/clk/qcom/gcc-x1e80100.c > @@ -5186,7 +5186,7 @@ static struct clk_regmap_mux gcc_usb3_prim_phy_pipe_clk_src = { > > static struct clk_branch gcc_usb3_prim_phy_pipe_clk = { > .halt_reg = 0x39068, > - .halt_check = BRANCH_HALT_VOTED, > + .halt_check = BRANCH_HALT_DELAY, > .hwcg_reg = 0x39068, > .hwcg_bit = 1, > .clkr = { > @@ -5257,7 +5257,7 @@ static struct clk_regmap_mux gcc_usb3_sec_phy_pipe_clk_src = { > > static struct clk_branch gcc_usb3_sec_phy_pipe_clk = { > .halt_reg = 0xa1068, > - .halt_check = BRANCH_HALT_VOTED, > + .halt_check = BRANCH_HALT_DELAY, > .hwcg_reg = 0xa1068, > .hwcg_bit = 1, > .clkr = { > @@ -5327,7 +5327,7 @@ static struct clk_regmap_mux gcc_usb3_tert_phy_pipe_clk_src = { > > static struct clk_branch gcc_usb3_tert_phy_pipe_clk = { > .halt_reg = 0xa2068, > - .halt_check = BRANCH_HALT_VOTED, > + .halt_check = BRANCH_HALT_DELAY, > .hwcg_reg = 0xa2068, > .hwcg_bit = 1, > .clkr = { > > --- > base-commit: 9d99040b1bc8dbf385a8aa535e9efcdf94466e19 > change-id: 20240530-x1e80100-clk-gcc-fix-halt-check-for-usb-phy-pipe-clks-ef8cf5b5631b > > Best regards, > -- > Abel Vesa > > -- மணிவண்ணன் சதாசிவம்