Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1597899rdb; Mon, 8 Jan 2024 04:42:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IG2jkMEH462i3tHPUzPFdjEZpSJX10R3V9Xh9ndsHPB0ZQo9RXg0zHNmGkWPN7bWw1cMUl0 X-Received: by 2002:a17:902:7c06:b0:1d4:1f0d:6785 with SMTP id x6-20020a1709027c0600b001d41f0d6785mr3849091pll.20.1704717740569; Mon, 08 Jan 2024 04:42:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704717740; cv=none; d=google.com; s=arc-20160816; b=n+icymUq6lcrOeZE8kIqlw2wf8DN6YaXhWteMLYO2Ui6wCuMW/wR9/3Kupw2Vi3i0K EVo/WsVRpVbhDfSpjkHMFHBv/1F2ryBCdPtURBxgsYQlnOrEFrh+/5FjML9GRbyN9q1a 1kl26AZkq68mI2jRpmMCVfFq05/3tw7nuC7Tt89Gbbw93lmc3Ctg0LXA8yPHABXVGdrH jPpIY2v/5wV/QrGcxdQ4guk0c/G3i266vQ/dqN/mkCvt/EZmbxFyovdLqPuGUgKCB/Wo uhLJt3KsOEDwvPgJF3+O9OnHoAEUTFkNwnDMk8a9hnm4ihie2XjQBmPykx546Ui4WMf7 +kkA== ARC-Message-Signature: i=1; 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=hKgbs50b7sIEW9nFRau4m3gBJckeCz0KQ2ZMPeQV9lQ=; fh=xaSuZj1ajbxHn52v8M2SiBWQNwlImHP6rQYKWo0AWtU=; b=ymNpflmigf1pFCgRMz81lTSeJkRIMexhwegizbM2Dm64edJCoV7MFeBFL9IL8xG1d5 KgQVe0VZp4QG8IYu12I228fqTPMtQwiHBtfndLMwvqLcJhxkoJOV+DdvvVwJgYyUpqBo xVz4h4YL/nkflSs4SA8V07kW2PI95BESOPOd42Xw0Yv5LFMLuGktpVuTakORte/AYxHZ b5WfDEga7qz1+w16tz5L3di+9juSmS2QtFQjA+SWG5/CWDV/ByY8rVvcifIYwEIgCLSC msWkKr71rxZnq6Ov8egXYVne8jtCkzu+gooCog49oYgmDdqKP8FwGUpQcNspmeDGtqjK U5cA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yHs6JNJq; spf=pass (google.com: domain of linux-kernel+bounces-19538-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19538-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id y10-20020a17090322ca00b001d54c7edff6si85261plg.370.2024.01.08.04.42.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:42:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19538-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yHs6JNJq; spf=pass (google.com: domain of linux-kernel+bounces-19538-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19538-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 36392283237 for ; Mon, 8 Jan 2024 12:42:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3EA6A44C94; Mon, 8 Jan 2024 12:33:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="yHs6JNJq" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (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 E8D5654BEC for ; Mon, 8 Jan 2024 12:33:00 +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-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-555aa7fd668so1894764a12.0 for ; Mon, 08 Jan 2024 04:33:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704717179; x=1705321979; 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=hKgbs50b7sIEW9nFRau4m3gBJckeCz0KQ2ZMPeQV9lQ=; b=yHs6JNJqreTfwQFXcptzh+zSgV/ejuNvgeG8QiVOX2gLPS7UjEHn6YtLQnDdoY0X8z Amk1wBV6KpyehJzDjoFbJngH6+zjonTIBM+mwdvUfgjeo4XCiS0dSdOjeT1ix2+xhWWg bRCc/vs+w/ZZXt7rW2CQgIK3MN1iK2fgtHEmfTFRSq4ZMIiPSzS9a1e3krhqfgjcPjj2 D8xohC81qulaEWgipt7Z2FTFgRX/HHl8I9rEuzYMpkySEUiPAYMbPnJpe3j+69VPVvKa t4briUognm5+qcfeGrezO6IIH+w+Ho7kBP62L8QSVpkFcEA9sFMutSC9FgDAe1So3MqF BBww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704717179; x=1705321979; 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=hKgbs50b7sIEW9nFRau4m3gBJckeCz0KQ2ZMPeQV9lQ=; b=m45Z6dJOMQtTD/GtkB9lUjaXutdT4KfZ1MPlLHAaYo0XnLg46MTSgXxQhNCSo8QgLe bDjG9DQF80HIP504I2MxqyEU+J6a6PqASTfYmGc/HEoxs2tUNwc3GCoODRxCR2GIW+yV kOII4qK7eJSojSt62K4xsQwx2n1cbLDHBKdec8S6CsBicrFLI69HzroSgdlZHlXk+ZaL 6gHv6Ep7E5e6F+3jm0UxBOPGuO61QwA0458ZHzMzmuplA57y7i4O75O9YV6ODkrric70 lYWmZ22YEUZuPjy/JL03owjS/KFfaZus1iNlIfCV5cNcx4U8L0KpOeL0B6qs+H/Hqh2n CqNw== X-Gm-Message-State: AOJu0YxQfM0C3tr6R416woHjuA6Q+kOU/nhIR7pBegZQJIwdIPHsfBZY pXDF2fIeAI27j2gCs0LPB94JmQsTeJYj5qPZ0HTy1JjJJQg= X-Received: by 2002:a17:906:a254:b0:a28:fd6b:7acf with SMTP id bi20-20020a170906a25400b00a28fd6b7acfmr1674828ejb.36.1704717179191; Mon, 08 Jan 2024 04:32:59 -0800 (PST) Received: from [10.167.154.1] (178235179081.dynamic-4-waw-k-1-3-0.vectranet.pl. [178.235.179.81]) by smtp.gmail.com with ESMTPSA id bs18-20020a170906d1d200b00a2808ee8ab1sm3892978ejb.150.2024.01.08.04.32.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:32:58 -0800 (PST) From: Konrad Dybcio Date: Mon, 08 Jan 2024 13:32:33 +0100 Subject: [PATCH 16/18] clk: qcom: videocc-sm8350: 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-v1-16-981c7a624855@linaro.org> References: <20240105-topic-venus_reset-v1-0-981c7a624855@linaro.org> In-Reply-To: <20240105-topic-venus_reset-v1-0-981c7a624855@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 , Konrad Dybcio , Manivannan Sadhasivam X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1704717148; l=1051; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=AdVr2Vo+gKTKy1lOaf9tWddLXbATgKX8KeFGJ/zSkw0=; b=wIi+5K4T1WvVGh/iD46R12XlclSx3BIGbgYBU44VJXW0beQIKu4GsbVtmqKDbAhCc12MiGkwJ tByulC6Qr8fBWo03C+KT6ixJj+rF1wnViPqH+f7CUr+dGrPvwcpcw0/ X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Some Venus resets may require more time when toggling. Describe that. Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/videocc-sm8350.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/qcom/videocc-sm8350.c b/drivers/clk/qcom/videocc-sm8350.c index 7246f3c99492..8db2bb995558 100644 --- a/drivers/clk/qcom/videocc-sm8350.c +++ b/drivers/clk/qcom/videocc-sm8350.c @@ -488,10 +488,10 @@ static struct clk_regmap *video_cc_sm8350_clocks[] = { static const struct qcom_reset_map video_cc_sm8350_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] = { .reg = 0xc34, .bit = 2, .udelay = 400 }, [VIDEO_CC_CVP_MVS0C_BCR] = { 0xbf4 }, [VIDEO_CC_CVP_MVS1_BCR] = { 0xd94 }, - [VIDEO_CC_MVS1C_CLK_ARES] = { 0xcd4, 2 }, + [VIDEO_CC_MVS1C_CLK_ARES] = { .reg = 0xcd4, .bit = 2, .udelay = 400 }, [VIDEO_CC_CVP_MVS1C_BCR] = { 0xc94 }, }; -- 2.43.0