Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1596403rdb; Mon, 8 Jan 2024 04:39:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IEniypyuePi5aTv4Ot9nTXjVfe11WRjdzyVq2TBb7nVM7ADey61PSeYBTuHn3eZLOtTyuW6 X-Received: by 2002:a17:907:928c:b0:a28:f013:27c6 with SMTP id bw12-20020a170907928c00b00a28f01327c6mr803978ejc.59.1704717555789; Mon, 08 Jan 2024 04:39:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704717555; cv=none; d=google.com; s=arc-20160816; b=HZwXo4hCbeZYSocJMbIrVwyY1Ezs0ZW2NDoKXwJP4BNOCxXWL5q19Hqs1GM0UWHMFx UkYX185iJYiI+NHbMKY9O7wrOnyMX75sswl6A2QkuKBWnvSi9LPYRMQh5rmeOsTa+XIh RUliUSYmQBGsZDgg+e7zt3y2nrNVJBgXsOZQh1tr3thHHNGzsN+CaaSGlJ+MNMNbGpSk 2vMLJzrzwMa8ttFXfShvGc2yMc0+vtLyQHbUXa3qmkIctdm7ab8zFFlzKnn/me8fT948 1r9WmG6ybIy8q5jbx5EuqroV43Lc/NrMgRp9R+yUPf7Fa7nxdz/Ee7VvpUxIp5M61pPF JFog== 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=ZvojekarEa25/JgD1GVRTc3l09GZdvUZ3Rwwz29QpBs=; fh=xaSuZj1ajbxHn52v8M2SiBWQNwlImHP6rQYKWo0AWtU=; b=Y02DpRWZgF24LBhmaXQTutoez5UihBxJ1og1Us707NRlizo5Oj6m9H8LJjNxuW5jjv PU+qwpupCJGPXujNqwomArBqwl3Lw8ojwE15fmzyCF83nmCiJZwaLzVXnS00MSQVDzcy KjkgFchao/DVf+NonA0LaAG9vonwSoduo2ze+8tT6UHlD1d78iFdjGRJpB5UxJTrNzMb 1mhTi3AY/EowGo+OCuoHQDtAyGVVEEk103iYHcesjmTmskoFknAZDq3PFXrIRlL7ra17 VE9Issc/BX8WZunLm6dS5PKZZPLxGwyeM0PN2g1+ZmfmnuXQEFvxDWi/placuTVI6UhQ 1GKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QpMMIsN6; spf=pass (google.com: domain of linux-kernel+bounces-19527-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19527-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 cf5-20020a170906b2c500b00a26a5f8cd6asi3023100ejb.145.2024.01.08.04.39.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:39:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19527-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=QpMMIsN6; spf=pass (google.com: domain of linux-kernel+bounces-19527-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19527-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 88FCB1F22D09 for ; Mon, 8 Jan 2024 12:39:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CC32B52F8B; Mon, 8 Jan 2024 12:32:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="QpMMIsN6" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (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 7BB2E52F79 for ; Mon, 8 Jan 2024 12:32:41 +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-f48.google.com with SMTP id 4fb4d7f45d1cf-557a318123bso1128955a12.2 for ; Mon, 08 Jan 2024 04:32:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704717159; x=1705321959; 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=ZvojekarEa25/JgD1GVRTc3l09GZdvUZ3Rwwz29QpBs=; b=QpMMIsN6T82nKrTdcaAHT1AKq+0rdshq9sdyyp8Sy+AMbvmAjJCUJ0/XE7wlj07s8h 1EJNHdjGXiNx+7IyVLFXf/Twz+dNSCRT7O55/+MFVB0jK74fM9gclZmLPY2+X45uB1R9 336IXwXvESur0UgC+2RCxdXBhQDqxyjK96JHcKzfhUO/4lPUr43r6lXDgg4npOX7U0qA vATK5Eoi6SBUQh6ExJDcCIu7wjRryGghuJcof3p1DvjrlH2S4h4MP56lnagXuT44IWTO dUnHpeMgr707PhXwgR8A6uOZ/wvO2kDc0DYB5zSYeEXiKEH31Uv++JHo8SCasEyI7iQ+ Sdmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704717159; x=1705321959; 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=ZvojekarEa25/JgD1GVRTc3l09GZdvUZ3Rwwz29QpBs=; b=qYhXfUqLjZCT/0YEg9OVn0pHfoqiUAOt6v6nWTOLZBsqFvZ6XVCqat3Pw/ldM4e2G/ gNmI/a3cWlVY6FhcT7MgMxzYzO3cqCzKDbOmwk3uC5XF7WiZy2LCvb/4nd9tM9n20z0H 7p1WAOHmo62IqxZPKfBaUNsrMUEikEGQLsCTbMNwxJeUXiC1OuiPuUdcZmGuDW1B67Qd +TeVM5L9gmrTLZIq83Cx5HQzpgzUwli99HjC3Ai3PMcrgkW9FbKLz+PY9Y3yJFk+JoEC e46BMkUu0llGNkg54O8KNrm40I2SuAAqJuL1Y6LQcFrQBrutyM5yfTwCypI+N6avqdsQ Aebw== X-Gm-Message-State: AOJu0Yw/gzpZ9PkJugNblofEtAFMiqnGNdct2ym0MWwukucGsT1ORih6 I0orO8l6KumCcTMYWj0RVntUTl86+MPOAnNv/QPsNexsI0g= X-Received: by 2002:a17:907:701:b0:a29:a65c:4f7f with SMTP id xb1-20020a170907070100b00a29a65c4f7fmr874487ejb.63.1704717159539; Mon, 08 Jan 2024 04:32:39 -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.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:32:39 -0800 (PST) From: Konrad Dybcio Date: Mon, 08 Jan 2024 13:32:22 +0100 Subject: [PATCH 05/18] clk: qcom: gcc-sc8180x: 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-5-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=1059; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=Hx4TRbgTScKyTQxQMgBp7A3R4IUgEVBr0AkzhL3Atn0=; b=bZ3z/L1OPEYXX/zph4gQh3yJaeAlA4Yi/IQb2KOqQafVyejTli11awJnLnReDOeuv6h8Bo/gd GHwJ13oO3LUA7nNF2VizjUJa8h9v7txjaPhTULJi4eVKSk0XrDrXfOw 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-sc8180x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk/qcom/gcc-sc8180x.c b/drivers/clk/qcom/gcc-sc8180x.c index ae2147381559..1351c52bcacb 100644 --- a/drivers/clk/qcom/gcc-sc8180x.c +++ b/drivers/clk/qcom/gcc-sc8180x.c @@ -4528,9 +4528,9 @@ static const struct qcom_reset_map gcc_sc8180x_resets[] = { [GCC_USB30_PRIM_BCR] = { 0xf000 }, [GCC_USB30_SEC_BCR] = { 0x10000 }, [GCC_USB_PHY_CFG_AHB2PHY_BCR] = { 0x6a000 }, - [GCC_VIDEO_AXIC_CLK_BCR] = { 0xb02c, 2 }, - [GCC_VIDEO_AXI0_CLK_BCR] = { 0xb024, 2 }, - [GCC_VIDEO_AXI1_CLK_BCR] = { 0xb028, 2 }, + [GCC_VIDEO_AXIC_CLK_BCR] = { .reg = 0xb02c, .bit = 2, .udelay = 150 }, + [GCC_VIDEO_AXI0_CLK_BCR] = { .reg = 0xb024, .bit = 2, .udelay = 150 }, + [GCC_VIDEO_AXI1_CLK_BCR] = { .reg = 0xb028, .bit = 2, .udelay = 150 }, }; static struct gdsc *gcc_sc8180x_gdscs[] = { -- 2.43.0