Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1596673rdb; Mon, 8 Jan 2024 04:39:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IHq+CAhYzUE4Qv2GIox+SCMcaCU2zWlxTxhUgM3mEgphG9+FkrLGpP52HlolJFpFxCJqR2g X-Received: by 2002:ad4:4eeb:0:b0:67f:2632:9992 with SMTP id dv11-20020ad44eeb000000b0067f26329992mr6130195qvb.38.1704717589285; Mon, 08 Jan 2024 04:39:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704717589; cv=none; d=google.com; s=arc-20160816; b=j4/3uX3UaEwWc2ShoNROgXyI3iveavs3S89nm4zlkCc2C1OXTIpN+HlyYr0KV55HPL Ur9+Mx4kUF7cJYfi4MAz6ZHH24ZBY/qjeUMtzljeqmNy5RRDMcshOeV2NIShvaWzX9yr vj5815bWHMOL/xlU6ZWOKHUyCwEP8hFB4KfSvtfZ7mwpTbqHgSBqX4zFqPumbv4kZUpE Bcd1eX94FOLVbwmznjYp5mmRc4PDL2A88iF2tV3dvK47AA76Bs/5wobaG8VI92WgiscQ 9EWUZjCj4mytU+YhuyIuYMD/7oSa8kUxlokjgyOKvofo/qe3GmKfimea8+v5qGuuV2pB yesA== 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=UNtUNkUh9FGJbdZOMIK94mTgP7TeoEvTtcC+EeetQyY=; fh=xaSuZj1ajbxHn52v8M2SiBWQNwlImHP6rQYKWo0AWtU=; b=rg/dXx7fXAv2MLtS2PYxnpMG20iX2V1VKt9gsxJghS25mOF1fjMmxkNEid8RedOZ3k ohVSyVZm4zdxKUy98JwtDD0iJdw2DxvGZqul5aJ2vMTHpoYtpuxZFF+A7VPIFEVnqcj5 Fxg8Resudwp0NfwHhxlO7atcscS657o6bgiadxBuE/vh3x7+9B2JQdS99MpCTYNZypZJ ZpGCjG3fWh6NR1PFl7NfWKQ3dfa1SeuLogqT/Iw/tcjCkQXs97y5RQrN8gXuDdHALALW hz9pyqOtRundcGA2Wbyyc53GXYbKSd9vImxRyJnGMlYmbtXtejvlvRnJpB/ksRr6ST5t aE/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zNn54Rcl; spf=pass (google.com: domain of linux-kernel+bounces-19529-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19529-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h12-20020a0cab0c000000b0067f2b0d0c60si7498540qvb.281.2024.01.08.04.39.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:39:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19529-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zNn54Rcl; spf=pass (google.com: domain of linux-kernel+bounces-19529-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19529-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 0A8851C22368 for ; Mon, 8 Jan 2024 12:39:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8F66A53E17; Mon, 8 Jan 2024 12:32:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="zNn54Rcl" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.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 5897452F7E for ; Mon, 8 Jan 2024 12:32:45 +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-lf1-f49.google.com with SMTP id 2adb3069b0e04-50e7abe4be4so2010163e87.2 for ; Mon, 08 Jan 2024 04:32:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704717163; x=1705321963; 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=UNtUNkUh9FGJbdZOMIK94mTgP7TeoEvTtcC+EeetQyY=; b=zNn54Rcl1qOTFSOWX3KPUUk0KbwDoooQpTXWDP2aRuhUwF23hc/RkETi50jGCyijaH wXQbUf7lJyjhfzixITMoHk1QzkYAz9bCQYoZlc/zKok3/V3T9m9I0tdIm0le5WtKVtQE xiYTJwnXbASPOrg+8D8Gb+qHt6g0hjjG89TtC+czvj3xGBTAEX7q4elUyvhsdBCA1HJN CkCC7x72w1EiyI1yBTSDHbmige6xVlzrEBwbTpC7pX8DPRZ3geWKWHnHAdIrV1fa6nYf wT5mz3FAJy3YvImv/16g7QECqL2xHSNHi8l8nFd4LB3zHRe1Lku/49+ADB6MKwPh5B6b YgMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704717163; x=1705321963; 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=UNtUNkUh9FGJbdZOMIK94mTgP7TeoEvTtcC+EeetQyY=; b=mTj2NpI8xNRTe4nqIaXufi8r20T1ZnAAX+Hc4wtKHlka+GAbLraQxIo/fQgwjhEqRw JH8HYtL0hakmJ3wvSKHZV+COIoJyo+4nm5ay6klPh7rrsZlR5YBCfFbLwiwhhv6QN6UT /shBepS6S/YCL8u9LLPdyy1y7gh4BrFZ9Om+sHs83VnOAYjkmbXzcPqR6ZtsMdZsHDJd SMxP3zKQw8KAcGLZGmDeAMWh1kx3XH/nWYYPwFznS1P23mwKbZ8EXdQS1LBTIBA1217n ay/00boW2QHmNmveRMj5Nxo1YUUbkJl7hea3ehkWli2vKv2rlY+yK49IB1Vj+2wmHYB6 lczw== X-Gm-Message-State: AOJu0Yxl5dzKrGjchmNnQ5TgbVWJHRyHqNqFy4Ohbi1+takr6CCNOfEK HctKYwjd3Dr5w8ZfDLD+NZH5WObnrpARcx7VEyDUSrJXho0= X-Received: by 2002:a05:6512:3b21:b0:50e:aed5:ec06 with SMTP id f33-20020a0565123b2100b0050eaed5ec06mr1899879lfv.87.1704717163102; Mon, 08 Jan 2024 04:32:43 -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.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:32:42 -0800 (PST) From: Konrad Dybcio Date: Mon, 08 Jan 2024 13:32:24 +0100 Subject: [PATCH 07/18] clk: qcom: gcc-sm4450: 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-7-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=954; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=Fxti0GA8oke9cfmTk8lezOQQ4xqJ9ulz/6+rw77WHBc=; b=T9h8+bQcnBpTMQ95RCuWK06WIgUjFTQ0caVsHrO2vUMljG4A6UGeougSk6CMJZXsQLX9HipA2 AKpZMqk2QdUD0CWELycAu9jULjvQ9L0SWlJy0uA4HDDZt8IkkWa0VRS 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/gcc-sm4450.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/qcom/gcc-sm4450.c b/drivers/clk/qcom/gcc-sm4450.c index 31abe2775fc8..ab8fb77d15a2 100644 --- a/drivers/clk/qcom/gcc-sm4450.c +++ b/drivers/clk/qcom/gcc-sm4450.c @@ -2791,8 +2791,8 @@ static const struct qcom_reset_map gcc_sm4450_resets[] = { [GCC_VENUS_BCR] = { 0xb601c }, [GCC_VIDEO_BCR] = { 0x42000 }, [GCC_VIDEO_VENUS_BCR] = { 0xb6000 }, - [GCC_VENUS_CTL_AXI_CLK_ARES] = { 0x4201c, 2 }, - [GCC_VIDEO_VENUS_CTL_CLK_ARES] = { 0xb6038, 2 }, + [GCC_VENUS_CTL_AXI_CLK_ARES] = { .reg = 0x4201c, .bit = 2, .udelay = 400 }, + [GCC_VIDEO_VENUS_CTL_CLK_ARES] = { .reg = 0xb6038, .bit = 2, .udelay = 400 }, }; static const struct clk_rcg_dfs_data gcc_dfs_clocks[] = { -- 2.43.0