Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp3228752rdb; Tue, 6 Feb 2024 10:45:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IFRkc/iK2G7o1uXzxq0asyPCZjd4OOGckLyDlyoV/NoX+JjZoRcGWaxnCKn5p5KTWpQeCFI X-Received: by 2002:a17:906:a0cd:b0:a37:872e:f9 with SMTP id bh13-20020a170906a0cd00b00a37872e00f9mr2406231ejb.22.1707245147131; Tue, 06 Feb 2024 10:45:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707245147; cv=pass; d=google.com; s=arc-20160816; b=KspJThP+ItVbVqSzOh0hIIVZ319+P/N/WhYEIX0VrBHn7oFJ9H3t3Ok0u9tKZgbZdX jfC80a9u9WHnkeaSxO+vOYtZS0ktsAlIzA81XwMJRF5r6/DkLAPC7aRvRiJGMCJC3KKq dMw6yohBShb/sOeFh/SrnhqNoPNjuv1sjhyPZvBxOcynesrnF97wQdsh9yYixfCvM8iK Lf5hVVuCaoh8adn/St03jN6CBkmm6YY1MF1I6eBkMc8qbk7BIvVJGZDe270xs+Eq7uQ1 +ITuozKXuU+KMYvkFSUgcr6TZSKZvt3JMOJi5ebDopwdJv3UFcpbpehTRbeVRT8C/diD 5wQA== 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=i3VzHH+7b+4OE/NkhtVRusEWafprK4Js4ZyeOKV47wc=; b=cFBtJeVObBAcZO4tGuGu2PnmiX/ULIIkESgFFdjdBQrCNUEtf1KdRVWNAznixVWzxr 7t0OO9R4GhHTbhd637iVuCfehkTJTwT4dAjBLO5S0o1AHAIzHgM3B/GgxrSLZp3lgWSE /SXG8vUp+4c+TkVEmdWcyo5Niw+OO0OGRuFF27Q8kKEzm0BHjTrwaBc6hl4VN6P9Iwpq rl66KKPLThBM+vSuCmj+YSpZSQKCckwwaSGipO3Ux0NbQzK3Mc4JragSn4+q5wbqLIX4 /jbMG1Q2WRX6BReFoGylS4CKRgV5T2PiJUPlvL1ECB7XXMes3b02bT/QlkE+zKlY9qeA +TTg==; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55477-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; AJvYcCVQNDYXlwUv4IlLNTOVdN/7ct7Xv3oRo4QnnPkVA2gsCSfXe6W/8fkxbbj5NcI4Swz3CQcH1zepmSnEK1/038Jkaph6A/3AKQY1E8Tllg== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id v13-20020a170906338d00b00a365657540fsi1314402eja.744.2024.02.06.10.45.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 10:45:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55477-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55477-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 DC26F1F259BE for ; Tue, 6 Feb 2024 18:45:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6F7381B7E3; Tue, 6 Feb 2024 18:43:55 +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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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= 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[] = { -- 2.43.0