From patchwork Tue Feb 6 18:43:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 197597 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp1746527dyb; Tue, 6 Feb 2024 10:49:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IGOJZnYBfu79amaTFe+klOk6tUtaNMMMQ+9FWcnzq6VGaRqHCqb7DYoMPRtgffIVeuPsp2p X-Received: by 2002:a17:903:487:b0:1d9:8249:6651 with SMTP id jj7-20020a170903048700b001d982496651mr2161096plb.44.1707245364630; Tue, 06 Feb 2024 10:49:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707245364; cv=pass; d=google.com; s=arc-20160816; b=FR0uSEJGk73Y8+K6NCJhzGh7Qb+pmClEHGvMGQEWjeeHW0KuhYvw2Cme24KfLZUxsv 47uGFVYy6jh1BsDd0+Qo/nLwYX4/zvFBVgBhEDArHmAwxzVT2zbXKN0bQVXp+PRw43wC r4CMghAkSVo7CVggTG2JbeS4HW4IJK1Rv89PRC/hpvZ30wwYEoh+iQ9eszpSBCrSNzX6 fHaUyepOWhjVmEVCfYxpSHWHkQbC+4+nchNdqICljopCgfz/I2PqDgH14/YmwmJzyrsZ vbgwpgyaBAWS73riblIojZb/71CoajDXp7pUSYscZ4aT6Qra+TxQoZ+8myP4GZeHUtW5 tjug== 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=Rt7VV0Ge1sC3yLt62kaXgrxl4JcnOpSTrN15pKlZhq4=; fh=u2TNhXqQO1F1Oujkcv9yAhZ33F+h7cufjpmDtkMNjWE=; b=S6XrxDz7ikO9zZiXdCvmmMlCSxNgk4GuRpd0zG1iMxy8ZEQUI2KIgCH8zVXvHuuLqw wiMg4RA1Z5wgRFP1Tz6wMXIuor9FODx2GhmsXqiFq7hFQfOvAKgXGAT+zneM3HA7RDjy 9Yarml6HdBtCDDkuTspuMnAeyUekdUAXK8u85UdaEpnIbvS3gLazzgX1HFgv2U57aCS/ +X9hcPhvi4xMzjipK+fmHLY/eztW15oaVnYuTwnNR7tWG/5ngpCCBRKhy+XxiLF6ua+K Q3pXIpQlZXRzNuMCiFUn2QO2cuVunpMCljissiHCOPJjgMOv/QDzgytpGZHl++4dOrcw 7XRA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zcED3LfK; 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-55477-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55477-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCUfUYUupFDW8RdY/UkBS7tZmxl0KXsDqusAI7lq7A5GnCu5QqKB2N/qc8EdSyogRkpRV/pVD0N8tF5P9AT2VM4SRRIhlw== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id i13-20020a17090aee8d00b002963d0fe262si1548337pjz.77.2024.02.06.10.49.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 10:49:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55477-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zcED3LfK; 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-55477-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55477-ouuuleilei=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 0894CB25E64 for ; Tue, 6 Feb 2024 18:46:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B31CD1B951; Tue, 6 Feb 2024 18:43:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="zcED3LfK" Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (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 BF5D318054 for ; Tue, 6 Feb 2024 18:43:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707245034; cv=none; b=m+j96x83Gia/1F3RFJ3dWHqPygoVttERig580P4+cZ3CcUXykC9jgxFiSqDlQZ87TxVHeAjtbS9qrfKpJop7CBBByKiHhtt2JnhEjBCw8gEkHDSfYHdKmWhb5py5mVwtRVJOPLgpdrFfN9BBUqt6JAFD44tZsTlU6usGq0aJnPE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707245034; c=relaxed/simple; bh=EXwKkMgBsd8MhiHSlPwnGXPooFCi9B6+ZF9m99buTKM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=guK0yz0U/vQwzMbcIadv8Eynh81DRvvyb+Oqq6sw9Yc2+seJfJZXzl7rtiX2gIOo/Z0csPnuWrKThLn3sdBk8DRdRutNmhf+2PTTLJciObY1XQhqaaiscPHTfbKkIkqxL88IW/EhaMhhKhjuiqJiZdRqzj7O0uv6Y0UIxsj2BB4= 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=zcED3LfK; arc=none smtp.client-ip=209.85.218.50 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-f50.google.com with SMTP id a640c23a62f3a-a2a17f3217aso797175166b.2 for ; Tue, 06 Feb 2024 10:43:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707245031; x=1707849831; 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=Rt7VV0Ge1sC3yLt62kaXgrxl4JcnOpSTrN15pKlZhq4=; b=zcED3LfKRNHgGI+xAuGGM/Rj52WvA4O9WC7K4+HYfPUbjg51eM3smZBuVD4JRY3vDM AWCGNwgtigG9YTcElv9ShdtwiF8DK7mPLi12TjRlyeIDxIRpIFVYgkzW6rfRriqiXs1x CQV5NNDIrg9Jmq3pob9YNOSK5jRJnYujKDQmaNHMcILCrYhQQnX5kvMXX6+v3Iqr9L9c Ce87c0/gyov013hOaHI3iaJafLuuRY/CjJhbWQFTtuyz3hQ30jU0gHg7qg0KzLPnmIy6 9ScJfzBhUvuyAFHxcSxjBNc/rcf0WgA7f70RyLv7nVO37L5bqOHCjhwW2p1zezIkmrST y1XQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707245031; x=1707849831; 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=Rt7VV0Ge1sC3yLt62kaXgrxl4JcnOpSTrN15pKlZhq4=; b=KrxFo0uuxOOZAGN3Lj5pROZaWNt0+clpW4JrreRY2bi8VsYFJS1W9rvLRDEsFAHpzS sN66isVNZ/2jaC8LeDPArOAAN1/GBtZGPyPhHeOQ+eRyUnGk/lzohoemrAFh82Q9XQj1 bY8pFrt3KVUANGVkdhOJ3BNkQhlVygDncny0CZtqp1yPNB89xurFpiW1kBW/F1z9JPx0 QSCU+m3muEoJlqCgV2rTj6t9YoVWr9R14DFoHPgfnDMQt9cgxnLGqUNd3fx4ZCd4y2li ryx3fwF9AyZ237OOWQImWtLQSv3jM+WZJUxp+JoU65MP8S9NDLi5E3k0A9dC5Gtsr3Ps ++tg== X-Gm-Message-State: AOJu0YwRaywKNHyVpBjii4lusIy4qYY2Ujd+NR5mAALBYkRSuHU837L/ 3l5XvqX4eTEDADhMxy9iGkOi7ajPH7Nvt+XSzMcmXDbEyjzAJZkUzVdmeUvESok= X-Received: by 2002:a17:906:191:b0:a38:53df:4c5d with SMTP id 17-20020a170906019100b00a3853df4c5dmr556223ejb.34.1707245031242; Tue, 06 Feb 2024 10:43:51 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCVHrf5Y2GiDBabUY+/8vt4kdCuTVp1aDu+19FnW5BYlpFBCOQEcJdG9Ji5bo2AXr7jcBJYiBt3NNLv4roYU2UTqkXfgnZyiDIdlM62GxPp+gesRznRiJg5x5loFV3tkulS4hMb/UP6zMhwmDeXakAibCSsI1FMt2VPJJqo+h7foAZdUB0Qa/mAopZEFSh1SrXz2EtkMy325uRh79nvNMCIyRhnacAa8W2wZ1+n+QcHdVkeLm40ITmRtUQU9dxLWZot4d52YcH8GWJdSAzmrm9pONdyBIxlNKLdjV4UDZm+HKvt121wXxe4pCad1pUZCDSzXzm3m+EUnmtoX8jT/ZykkXMiiGZm0p6SoyvK/EDWBYBxjV2ziF4WrEILR21IWFf+oh9WXRNqPKmLzjHYgKBVOLYfgB/LX2BmAGnIeY4NnzUbdpZ+wxZIgrcZqRPtWaThYixyRX6U8 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.43.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 10:43:50 -0800 (PST) From: Konrad Dybcio Date: Tue, 06 Feb 2024 19:43:41 +0100 Subject: [PATCH v2 08/18] clk: qcom: gcc-sm7150: 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 Message-Id: <20240105-topic-venus_reset-v2-8-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=1091; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=EXwKkMgBsd8MhiHSlPwnGXPooFCi9B6+ZF9m99buTKM=; b=5v2USoyqmz+31QwL5rklkv0hk80+UpMpJDRSY6WqLzqv1L+b6x6kof5JtwD1gvITaGLk1Q1Bn UF2KxonNmu3DCGXVaEhn5mnHhFxkmTUBqcgxevSC2cboEDLKEmDAwDO X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790176515218915166 X-GMAIL-MSGID: 1790176515218915166 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/gcc-sm7150.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/qcom/gcc-sm7150.c b/drivers/clk/qcom/gcc-sm7150.c index d9983bb27475..7c5596331c30 100644 --- a/drivers/clk/qcom/gcc-sm7150.c +++ b/drivers/clk/qcom/gcc-sm7150.c @@ -2918,7 +2918,7 @@ static const struct qcom_reset_map gcc_sm7150_resets[] = { [GCC_USB3_PHY_PRIM_BCR] = { 0x50000 }, [GCC_USB3_PHY_SEC_BCR] = { 0x5000c }, [GCC_QUSB2PHY_PRIM_BCR] = { 0x26000 }, - [GCC_VIDEO_AXI_CLK_BCR] = { 0xb01c, 2 }, + [GCC_VIDEO_AXI_CLK_BCR] = { .reg = 0xb01c, .bit = 2, .udelay = 150 }, }; static const struct clk_rcg_dfs_data gcc_sm7150_dfs_desc[] = {