Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1597774rdb; Mon, 8 Jan 2024 04:42:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IH8LoYCPHgnBVBUrRgmL1OIjTU6iVz8RAcVPNQ35twWRVMnIQ2lrs2GWOq9RCfPO3AsI9fi X-Received: by 2002:a17:906:945:b0:a29:91c6:1a1 with SMTP id j5-20020a170906094500b00a2991c601a1mr1520864ejd.26.1704717726118; Mon, 08 Jan 2024 04:42:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704717726; cv=none; d=google.com; s=arc-20160816; b=xK04vPp9tzIzefcc6RozgNGPX6DLVSepNmsh/E9vnnZ2kxsrP/ZFRTzF2dtHQZqqcN GCkvtE+ME+CG+mzrxIME4VnaNYJixILo185DBQUGSXP3ZCvN53TaJakrE1Onvo3zJF61 7861l5q/uyF76fkopFiMxsdnipF9E6H+vpv+YmJPJkaN8Fc6XtKOK3ti/sr7/USmsG8O 5IPKkfjomFWiUroWtWYmBHOdDnKhK9HjXjoqsjTjSbZmmdizL3o5rwUkpy2nXGDAQ8TE pidwDL+dxO9BFkdlSokjsZ2OVMwqkd+BQQ86NxtVZhz8tiYFRqG5lvZIp+mC2WMrBAK3 MVdQ== 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=muMibjVOlrdUaMKZav4q1ZM93Uv09LtyKsx1ZeFf7Ds=; fh=xaSuZj1ajbxHn52v8M2SiBWQNwlImHP6rQYKWo0AWtU=; b=kdKO3hcj6O7zmOwhS3dc0y7Bx7fxqaIU6Gp3xbvU9p9FV42mrV7eCVkkQ7OAibvGLj 2CgrzSx48n5UGy8NDx1GNRDKkSxDiC1mcEYqYu3zMa7BAepA8tbeThe87ZSmWgknspkH GGtxkNZeeJOqSHQ3YpUHJQbnmgUYasPNTZedozjl6EsbcNnFxsyMsFbxAL/PhaDNnS9y iv9xTJPu8+kZz0BN3M2vdb/J4q+tblfK2TJT8ns7IVD6knrAsfCpP4d7yVuXtPT7BU0W 31oVLuJbKzR7jKMm/OLrVVJl33GuGXSYD7Mzbgva1iByDqWu2Vve8b1RLpFCF8ZjDkHg G46w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=b0xjjUrj; spf=pass (google.com: domain of linux-kernel+bounces-19537-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19537-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id x6-20020a170906b08600b00a28b7fc45casi3145997ejy.897.2024.01.08.04.42.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:42:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19537-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=b0xjjUrj; spf=pass (google.com: domain of linux-kernel+bounces-19537-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19537-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 8ACAD1F22C1D for ; Mon, 8 Jan 2024 12:42:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B42CD5577F; Mon, 8 Jan 2024 12:33:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="b0xjjUrj" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) (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 81C7C54FB2 for ; Mon, 8 Jan 2024 12:32:59 +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-ej1-f46.google.com with SMTP id a640c23a62f3a-a271a28aeb4so167406966b.2 for ; Mon, 08 Jan 2024 04:32:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704717177; x=1705321977; 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=muMibjVOlrdUaMKZav4q1ZM93Uv09LtyKsx1ZeFf7Ds=; b=b0xjjUrjL9DFSFXL/wLA/LY+j+ceplfKfYGxRZCWSSkf4KrFMByto3tQAnWG7WF3Oo qNhgxVD626dYQBqeGeTAs0JjZXeT92kdQ7M8BNh8Encuaixa8170JAJi8DJboQ15/GK+ tCFSvnSCRPHBsON8SwxHpHxgE4XsKOgVtBee5LEk9o2xIZY7HWvccu8bRGkohnO7EFZw g3QMEM3XGTEFBnpV0EipkLSmhCVhGKvcNuJbaVsUN3umiavj6C02+hd8aXwkk+SuEIx6 zm2sC5DiZMVAZgEZH6fGe1ZmeWO9VYExp4LYfuu2owfKE7vs+3KCHcxfCDjGwc02i/mD U9tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704717177; x=1705321977; 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=muMibjVOlrdUaMKZav4q1ZM93Uv09LtyKsx1ZeFf7Ds=; b=whODemHDdGo9sWJfHIdkxc/nkdTMEWYSw6yAUyH0U1SzmPFmugmtTNyM1cx394YexA jfRg/ViZmMCE7PM3YR7u+5MItHJdQ7boQfiWESJ9w1wd4iOhKFeEVcP3NrZdAE0mZpVl y1s3Q4nFvILrvHjSOhXw8QohQvLYJB8uT4VA5Qp8SUhgLT/5HOjuFx3v+Z8d4JURlvtq TRnH5etpVTBE/h2Te80UDbuau4U8mxeISNXwozyebgqNco4CC0hwkDpSEPTnhiOrfLNT R/30yOBdK49LN62OHLD+1Y9qzFldIqOtE4jJkR1e7Wr+47qvMxAHYOwwno1Jzpsf/pw7 0rsA== X-Gm-Message-State: AOJu0Yzr6gOm+aHmqkL6mGOjur7o6p+hm7aTBewaBgmsUWVLLqObxAFy 5mGTfz1kn1dEA1F/h4kHQ+EqEsPX1KgcrFiWvEADj0rW4Vo= X-Received: by 2002:a17:906:d9c7:b0:a27:5343:d3e8 with SMTP id qk7-20020a170906d9c700b00a275343d3e8mr1565354ejb.97.1704717177663; Mon, 08 Jan 2024 04:32:57 -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.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:32:57 -0800 (PST) From: Konrad Dybcio Date: Mon, 08 Jan 2024 13:32:32 +0100 Subject: [PATCH 15/18] clk: qcom: videocc-sm8250: 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-15-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=1037; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=2KXDcxNc+90aqcYluynodpAmNWUtQOGZRI7j2BxqGMQ=; b=WN9XeTGGuiUfbvj4nBcDQjejD3CIJUS6NiBRUbn2FemiDEACbGE4J96REq+UinjEvvWivtYQu 602fsQTEwZlDE93JNX8sWGYvvf9MY83qr1tEbqLarWRc2WKK42w+u6U 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-sm8250.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/qcom/videocc-sm8250.c b/drivers/clk/qcom/videocc-sm8250.c index ad46c4014a40..51b9816ec458 100644 --- a/drivers/clk/qcom/videocc-sm8250.c +++ b/drivers/clk/qcom/videocc-sm8250.c @@ -323,10 +323,10 @@ static struct clk_regmap *video_cc_sm8250_clocks[] = { static const struct qcom_reset_map video_cc_sm8250_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] = { 0xc34, .bit = 2, .udelay = 150 }, [VIDEO_CC_CVP_MVS0C_BCR] = { 0xbf4 }, [VIDEO_CC_CVP_MVS1_BCR] = { 0xd94 }, - [VIDEO_CC_MVS1C_CLK_ARES] = { 0xcd4, 2 }, + [VIDEO_CC_MVS1C_CLK_ARES] = { 0xcd4, .bit = 2, .udelay = 150 }, [VIDEO_CC_CVP_MVS1C_BCR] = { 0xc94 }, }; -- 2.43.0