From patchwork Mon Jan 8 12:32:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 185949 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:37c1:b0:101:2151:f287 with SMTP id y1csp989576dyq; Mon, 8 Jan 2024 04:40:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IHobY0Ad+I50BeovqVDGhL9WA90F5SchYLWByvd6qrXtQXJO2ivEk5eUnfg5/08hn5MZQ8p X-Received: by 2002:a05:600c:3ac4:b0:40e:4b11:663d with SMTP id d4-20020a05600c3ac400b0040e4b11663dmr38477wms.66.1704717607501; Mon, 08 Jan 2024 04:40:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704717607; cv=none; d=google.com; s=arc-20160816; b=0j2CBkIbRFueTNuZU9pzbNr+XA+Hpy69F2My0NcwWjEzVv+KfyjwJ3YWEx2UI4HRKq GYvuKiP7w0TGMMg6PLx+Obq/MYq1OUBijkbDFJ4OMaB2rjomFV8bg2UpEflseAPWKHus bS8+FISxA1H/xeKlcKOcqX/LLWy1QzYiTL29l0dzzghnbiaN9KSip5aftVhlC2SRhnnD cf5kxSKcgMK8LKCtRwRqvFSu0i8SPkXQEUNUAaQScaLrtEAFUgMTGrXmTzMX7eOhSCo1 qW2xVBLPPishCUoFXP1qA6u3j1vZT7dIRdtHy0MtfY+dp7pXWzMf8ClO9IV6lhyr7KZg RqQA== 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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19529-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id g8-20020a170906348800b00a2b1143466csi71078ejb.1003.2024.01.08.04.40.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:40:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19529-ouuuleilei=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=zNn54Rcl; spf=pass (google.com: domain of linux-kernel+bounces-19529-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19529-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 am.mirrors.kernel.org (Postfix) with ESMTPS id F11911F22D2F for ; Mon, 8 Jan 2024 12:40:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 693D553E13; Mon, 8 Jan 2024 12:32:49 +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 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= X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787525970388789687 X-GMAIL-MSGID: 1787525970388789687 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[] = {