Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp3229474rdb; Tue, 6 Feb 2024 10:47:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IFhzHgkJJOI7Je9x71g903ZuYg14Uo/FYxSqicKc/YSuQ+QAY8v4WQq7oW2056LoHGSKghe X-Received: by 2002:ae9:e116:0:b0:785:7d89:6bb0 with SMTP id g22-20020ae9e116000000b007857d896bb0mr3405792qkm.16.1707245251508; Tue, 06 Feb 2024 10:47:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707245251; cv=pass; d=google.com; s=arc-20160816; b=rVX7wpqcop0+fSupK1Dowm5N/WQdRrKyI/Y0yMnPpg5FIn/AT2hcAuGEEjAn98m4/Y hAqkGxnaepcLUH5JaKFUIQMIYGLd5hrvt7zFnRy+DwFbdG4Vxbc0Aos436cmTUOnN+u2 aOnGWw4MyvzSKAOdV1tuMYiBN3B7xvH9VVbbTewysdm5oH+b2MdFXpsiT0z2jd3wl/bz CED3kRseFZgUKTYDyf9gh2WyY+QJa9YbZEvKJdr9H5dtTJJvMbELxtwk7T8PdrVnga7r az+UC8xWWzB90WTVeWhgh5M5NfxtWY/EU9RN5rNSL07nKJ+DIJomisEVO6HNetXDN1aA qZWg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=nkL4G+TELyncGb5qKRgsxW2VVdhetXIx83/bDt+aWkA=; fh=F+s8k/Q5t3EejJzZ8v3HFMULzHrTJG8if/9uEA+yZd4=; b=Jd/mQ6maHo5qSxt2ee+0KDuOrgFwze3jIzaKybA9hKresIK3Cw12E5EzVHnj2RGn5x do0em7Mks/nISAoMTnkBWCcrSg1kPhLlSivbthtxUb9w9WNVlxz5FYMZIuS01ZH0KQuq AsPHthXvBLw/trlkBqWjsgw+W1QHz8iNZaWBxizRPrSomjkXtNKknr8r0DV9Zes1rltJ JaZLdWyXD38Zmzt/PGsT4scFsT3DH/gG+rrrAnjUAz8PNRZ4m4iV7I5T7viQiH4vUINY Jl3pdGp/J90zpXIcZzCfoWxmUeziGaPATl+X27RexXs4lJjyFnhajzq9WC42/tlo1l0k jmgw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uEzQL6Jt; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-55484-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55484-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCU4yl4mLm7o2Sfxw9/sIIWvUdCfDcWTqxqtcnIsTXe4dJCJjSK0A4a/FwOjAhHpwuxWQrCeUEA2YcSnuWftUR7Fuo4Y9DW1Wk6+nrzcRA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id b16-20020a05620a0cd000b007856dcc3175si2671073qkj.384.2024.02.06.10.47.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 10:47:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55484-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uEzQL6Jt; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-55484-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55484-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 4459A1C24419 for ; Tue, 6 Feb 2024 18:47:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A6DBD1CF81; Tue, 6 Feb 2024 18:44:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="uEzQL6Jt" Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (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 1FEBD1C6A4 for ; Tue, 6 Feb 2024 18:44:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707245044; cv=none; b=hO1YkfJuSEDuVAEFWnvXJ8+Yz0iOYYsrOzbP9hUFzJwpLpFJkTY/yKLLUlX4V7caNSo32bVD0NoULzYKvPWrkAd9WnrkX26Amrj8qNxPoAT2NmFJgm9GaDhcCxDPbV5qQkamif8xGbMj6UMQhGJHNzZwhgQvUkmCuRskCegYWzA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707245044; c=relaxed/simple; bh=5OdGYFu9CqmWBKnDDTkTc56GjeP6hdEjM7fvhmV7Ho4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=dCJ3Wv8oS0/gDXBs8d/3cWe6YXau11ld9sUQpun6deRj9D1E9kQLR23L87L7U48DZ4soDRYuETxt53gyNf0IS+3vhLvWW+FphPsVaWRmaXBCP9t6+6w09kKntY6/PzxANw/RwvjESddVYicyl9MeRh7/6y+tGdXVWQqeEJL7nmI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=uEzQL6Jt; arc=none smtp.client-ip=209.85.218.49 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-ej1-f49.google.com with SMTP id a640c23a62f3a-a3832ef7726so104348166b.0 for ; Tue, 06 Feb 2024 10:44:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707245041; x=1707849841; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=nkL4G+TELyncGb5qKRgsxW2VVdhetXIx83/bDt+aWkA=; b=uEzQL6Jt1cTfrVVEqnXQrgrqs2HQYkPZdfIxbytoGDAJ7P6tfmPn47JU+HRmIbGkWU Lgz8H2YFWBmSSwdmzqvX3EitJyBy/QA8m+SMo8Mp85De7EUBt4USC9NsXgAgNzltrYOe 6dqMv1TDDR8RhVp2Q3fo0fVRMQWTuA4hxlMDb5ajPGiLy8jAaxMwhk0phAA+02ZBHiVa GW682EOm8BL7Al0mhpMFqmgaFQv+YF+wC32mxwfwX+MV1VaDPJc/ZCrAETK+XyZmD2ld N4rFYrIZp1yLOFIuyprmn4uRGogHtO/9/nY6a4ZCYBdGka4kNjeGJwYfysbhwnuQaWU6 GAsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707245041; x=1707849841; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nkL4G+TELyncGb5qKRgsxW2VVdhetXIx83/bDt+aWkA=; b=dkXHeLeEMtIRfdq1/9EMIObmMmyb0uf/URElivRL3+jQPxnnyGAejnDoBVKamMnDtn IqQoWk3CUOM6BXE1WjBkY8WTFf9TQIKk7P7IRtQWLy3lcGDOd1MN1m3val8FLrRuqeIq ADwMKdOms3bWFBA6BhURoECDrxmWii4VW/amM9tObnxE7i4fOptjqO0iL5TrOqDrWk+1 7qYcTCOXW6JMSn5sI+Pa3ZVQmiw/lTkuRRGdIHuNhYd/Mc+Z7eJrUHv98UQIcK7R4SuF RiklFr+sH4aiCNT1Y7i+Nrxm3jzoqeyXJVzMWOwtDXL9aKubh+Mp+YOvgOEpT56igzI5 Qc3w== X-Gm-Message-State: AOJu0Yxxi0Xym3/r0/MHHjc0iB/3b06NsKs7SNd9J+AftLS77Htni7qH HCrJc2uhsPirm26hWS3yS8hoqa5bxfHlvNj/Wv5SBfIvK2infPpIwY74r3JTwkM= X-Received: by 2002:a17:906:260c:b0:a36:7dd8:637f with SMTP id h12-20020a170906260c00b00a367dd8637fmr2390327ejc.23.1707245041489; Tue, 06 Feb 2024 10:44:01 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCVHE4S4/aDVtRTbyfhFkZrFGTxPiH0/3Cjowf/HMxaokpAR8BkydBzS2e7PmWOW0eE8NIo9k6ePMIELH5UTRvvCn1RIOrU/lHSCm7xNYt5eDZC9HZ6Wb03xGxwewDlyhOZZA9jXXBB8z3R1FM5ojOMpmkJ4ZX+fy45tmvLaHs4yUIBqt8XagTu9hTeEdv2LI1Uhfy6XtHQ7wMkBnAln/mr6nlsatp3hiXsUzyFsYYc/PF201XGGn61wMuIAu8rtH30T/pH5k9/Tbww57cLX5Iq66eqb2Eac3yd9BD0Biph8FLZrhowyUeIPT+dRHBW4Gw30lXj4GNagq5k24OqqpCJx268M+cXItePwhgsDWvYWyqRqSx4lW/hQ9C16zoFzMykzFUQlF25iFyLpGWE8J5Bn6Rr88Sn5IzqmoNB6lS3TBzIROHoEg5AJvfKXjWNZ1BIW6RlEF105 Received: from [10.167.154.1] (037008245233.garwolin.vectranet.pl. [37.8.245.233]) by smtp.gmail.com with ESMTPSA id un9-20020a170907cb8900b00a384365e3b9sm562305ejc.195.2024.02.06.10.44.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 10:44:01 -0800 (PST) From: Konrad Dybcio Date: Tue, 06 Feb 2024 19:43:48 +0100 Subject: [PATCH v2 15/18] clk: qcom: videocc-sm8250: Set delay for Venus CLK resets 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-Transfer-Encoding: 7bit Message-Id: <20240105-topic-venus_reset-v2-15-c37eba13b5ce@linaro.org> References: <20240105-topic-venus_reset-v2-0-c37eba13b5ce@linaro.org> In-Reply-To: <20240105-topic-venus_reset-v2-0-c37eba13b5ce@linaro.org> To: 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, Bryan O'Donoghue , Dikshita Agarwal , Vikash Garodia , Manivannan Sadhasivam , Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1707245017; l=1301; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=5OdGYFu9CqmWBKnDDTkTc56GjeP6hdEjM7fvhmV7Ho4=; b=jmYLm7iAFHYpGT/g1wACgWml5VM9+ceT2qb4R/8XEbKDni90cfTj+edzFhXM0MppSiBX/UxOn GALbHV3xLYDCAOFytpUnj8oPG5IG+FFf3p7rtoJ0UzEsY/M+Ypzvf1w X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Some Venus resets may require more time when toggling. Describe that. The value was obtained by referencing the msm-4.14/19 driver, which uses a single value for all platforms [1]. [1] https://git.codelinaro.org/clo/la/platform/vendor/opensource/video-driver/-/blob/LA.UM.9.15.c26/msm/vidc/hfi_common.c?ref_type=heads#L3662-3663 Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/videocc-sm8250.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/qcom/videocc-sm8250.c b/drivers/clk/qcom/videocc-sm8250.c index ad46c4014a40..51b9816ec458 100644 --- a/drivers/clk/qcom/videocc-sm8250.c +++ b/drivers/clk/qcom/videocc-sm8250.c @@ -323,10 +323,10 @@ static struct clk_regmap *video_cc_sm8250_clocks[] = { static const struct qcom_reset_map video_cc_sm8250_resets[] = { [VIDEO_CC_CVP_INTERFACE_BCR] = { 0xe54 }, [VIDEO_CC_CVP_MVS0_BCR] = { 0xd14 }, - [VIDEO_CC_MVS0C_CLK_ARES] = { 0xc34, 2 }, + [VIDEO_CC_MVS0C_CLK_ARES] = { 0xc34, .bit = 2, .udelay = 150 }, [VIDEO_CC_CVP_MVS0C_BCR] = { 0xbf4 }, [VIDEO_CC_CVP_MVS1_BCR] = { 0xd94 }, - [VIDEO_CC_MVS1C_CLK_ARES] = { 0xcd4, 2 }, + [VIDEO_CC_MVS1C_CLK_ARES] = { 0xcd4, .bit = 2, .udelay = 150 }, [VIDEO_CC_CVP_MVS1C_BCR] = { 0xc94 }, }; -- 2.43.0