Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp34696rdd; Mon, 8 Jan 2024 16:35:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IFyBcTghEiQNpr32DmJShoG55Qki98NaOhH62e4v9LNuIcNs+Uf9rB9U+kW/AL6GE6PKNBJ X-Received: by 2002:a50:d513:0:b0:557:1bb9:634c with SMTP id u19-20020a50d513000000b005571bb9634cmr2463622edi.30.1704760502689; Mon, 08 Jan 2024 16:35:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704760502; cv=none; d=google.com; s=arc-20160816; b=ZxKhFbM3kL+fwfpgSyFFXc3S2l78vKsSo+Ut9eLtdZ6FDWHut2sSRdMYIDJlnJ1elH pABr8cnLly5/T7v2dfpVXPbC3rB43+BiLW9B8oegUDC9zmgBkLmwQBj5e8fBhbuW+xgL 9jAm96Q4bEZLjL6vxb9dqcYn79ZwIir50Q3krvsFCv7Vg7kYYIKWpDujgpDY3GeIh1hO nx3XzUDKmawp25yiow5PLUEFMPR//1tJO6DqJvA3WbYye4ERhF5MN1DQrTnfeeZUHt/M PLRWiC5cFxUOyJUd646z6RI7maDNlDiQOUKh5GB+RnOszRVFJXv1NjwqpEixQaFUMwoL i71g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=PG45xY7qdUYvxRUhu1bd0cfdjPVsmY2YVRBeEKS5RT4=; fh=XmCgsgq/N/NXXAuL64DQ2R8E3SmuN0X82+xVquLXP7A=; b=bPc8nocH2oO3r7tH09czylICA/5hoxSOConUMq7Rb5yvheUwBLt5a4ZIhq5yhSfQcD sXuzBTqGP1UCsc/EE7T0YirDLgbHkXYcZWO45CbWB0UazCXMBNmQfZ1WnlZAij59KeuF ss+lyLki3m10LM76bvRayIoyWP9UR6KCdqd+0krPV6l0YCLSnVBiqNxKpU778fwO4Vwj a/l6I10SyFoHTYvdlgmM7pNqmVbwqi5O85JP+0K/8BnM7AtE1gZajlj7oa8n8eRekKCG iALmDuE7iDZcqLzBcLlQ728zgvOpd6X46QtEXMgOMBMxG8xZcczKgGal12ZQmbXEJlWJ qXuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nZQWM+wJ; spf=pass (google.com: domain of linux-kernel+bounces-20218-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20218-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a4-20020a509e84000000b0055341f3d51esi313645edf.566.2024.01.08.16.35.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 16:35:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20218-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nZQWM+wJ; spf=pass (google.com: domain of linux-kernel+bounces-20218-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20218-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 728171F24186 for ; Tue, 9 Jan 2024 00:35:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 95D1C7F7; Tue, 9 Jan 2024 00:34:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="nZQWM+wJ" Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AF683639 for ; Tue, 9 Jan 2024 00:34:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-40e4f7119eeso484065e9.1 for ; Mon, 08 Jan 2024 16:34:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704760489; x=1705365289; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=PG45xY7qdUYvxRUhu1bd0cfdjPVsmY2YVRBeEKS5RT4=; b=nZQWM+wJJ44gefEw18BZ10nMa6oT5ihVpY4jSdEI3SFCEvp8rABNPa0hvK1GP5zih+ 4NA0Kzc1KXxGFVQyRrBzrvPsDs/k7dQzh6qcGdasnir/ZmeqF/NYRb7HsWczwh8NVSz5 dviBHD5UROFTsO5+MGkRy3Wf1/1De9c4V0kNe4i3UhT52i/aqAkXbeVWFG0HOQBJ88eI dqw0qzp0LTHx5ublLvtxnoKi7UENyWpIBBIlLpqrlcHP3tY0rEEtzVaZLATVHujTf/ot GHpiJYd/cd56gdmiG5aTzHONXvIRBWLIXLTrUxsD7wxl2qDvxf2AXc9DRzG12Lt6wZlh WUEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704760489; x=1705365289; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=PG45xY7qdUYvxRUhu1bd0cfdjPVsmY2YVRBeEKS5RT4=; b=d9E0h7sobDjgJEHc8qKaflmm3gM2jXObovWjvnqNnpi/mED+qalWzgD5EqfdmIbeVD a3Rf2aapraQtiLNTBINBUp/lyr96t6teLywkg2GYJYDoT/gtKpCj1SryiJr4mmLEwrmA 7NDbI02zsj2sKOlU1vjL5g6rMXbdjClddOPlFbqixmW0Udt+8MZHx3VRp2M7DBk0nvVu Hx9sHAbbw3IlkPxRgsN8kTM1qXWOvA1fsfRC0UtoPzIt8Nzj2/OvrFEN5iopG9wcRHAg vhfu9F+3mjaz9P9S6/Z6QnooU5o9CYVkI1Xh2kH6HPqA93q1xqw2lt2IJDtdB42ZdEPz JopQ== X-Gm-Message-State: AOJu0YzrVdKu+0EBMrC+CNSC8CSU6NRljjePnEuUwjNr7DtTYIoPkjXd qekoqs8pIjSh+CsjX9cHVJMn8kgqpXGWzA== X-Received: by 2002:a05:600c:4e01:b0:40e:44aa:2360 with SMTP id b1-20020a05600c4e0100b0040e44aa2360mr1711162wmq.14.1704760488777; Mon, 08 Jan 2024 16:34:48 -0800 (PST) Received: from [192.168.100.48] ([37.228.218.3]) by smtp.gmail.com with ESMTPSA id fm7-20020a05600c0c0700b0040e4914f28dsm3518325wmb.18.2024.01.08.16.34.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 Jan 2024 16:34:47 -0800 (PST) Message-ID: <0cbedc75-cacf-43f8-a1f9-284546ad548a@linaro.org> Date: Tue, 9 Jan 2024 00:34:46 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 09/18] clk: qcom: gcc-sm8250: Set delay for Venus CLK resets Content-Language: en-US To: Konrad Dybcio , Bjorn Andersson , Michael Turquette , Stephen Boyd , Philipp Zabel Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Dikshita Agarwal , Vikash Garodia , Manivannan Sadhasivam References: <20240105-topic-venus_reset-v1-0-981c7a624855@linaro.org> <20240105-topic-venus_reset-v1-9-981c7a624855@linaro.org> From: Bryan O'Donoghue In-Reply-To: <20240105-topic-venus_reset-v1-9-981c7a624855@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 08/01/2024 12:32, Konrad Dybcio wrote: > Some Venus resets may require more time when toggling. Describe that. May or does ? I'd prefer a strong declaration of where this value came from and why its being added. May is ambiguous. "Downstream has a 150 us delay for this. My own testing shows this to be necessary in upstream" Later commits want to add a 1000 us delay. Have all of these delays been tested ? If not please describe where the values come. > Signed-off-by: Konrad Dybcio > --- > drivers/clk/qcom/gcc-sm8250.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/clk/qcom/gcc-sm8250.c b/drivers/clk/qcom/gcc-sm8250.c > index c6c5261264f1..61d01d4c379b 100644 > --- a/drivers/clk/qcom/gcc-sm8250.c > +++ b/drivers/clk/qcom/gcc-sm8250.c > @@ -3576,8 +3576,8 @@ static const struct qcom_reset_map gcc_sm8250_resets[] = { > [GCC_USB3PHY_PHY_PRIM_BCR] = { 0x50004 }, > [GCC_USB3PHY_PHY_SEC_BCR] = { 0x50010 }, > [GCC_USB_PHY_CFG_AHB2PHY_BCR] = { 0x6a000 }, > - [GCC_VIDEO_AXI0_CLK_ARES] = { 0xb024, 2 }, > - [GCC_VIDEO_AXI1_CLK_ARES] = { 0xb028, 2 }, > + [GCC_VIDEO_AXI0_CLK_ARES] = { 0xb024, .bit = 2, .udelay = 150 }, > + [GCC_VIDEO_AXI1_CLK_ARES] = { 0xb028, .bit = 2, .udelay = 150 }, > }; > > static const struct clk_rcg_dfs_data gcc_dfs_clocks[] = { >