From patchwork Tue Feb 6 18:43:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 197598 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp1746873dyb; Tue, 6 Feb 2024 10:50:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IGWm0OtQ/UHnBJkVzgvLA2gqUO8MUy+f6RwuBy7p0bFGdY1ycnjofD1ezsgV2DKUjYk0VO5 X-Received: by 2002:aa7:8a08:0:b0:6e0:4be0:ab8b with SMTP id m8-20020aa78a08000000b006e04be0ab8bmr456551pfa.20.1707245405551; Tue, 06 Feb 2024 10:50:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707245405; cv=pass; d=google.com; s=arc-20160816; b=MJaeH59++O+5bDqP5UtHA0vRRGnJEx6EZx/QxdIysqkF1BwdYm6Me3LuFedJStut3L e9KsCHHe0BwvC/8qzQDewjvsPhegBi+EdZzCxbym7GWJ6IPiKnmEpTZa1OnGQUfyhuFD it1oM4uw9b0v3av5y1NDDAanZ1fZYD9Qu7AD2I3a1cZ8DaQ54Fw8c7xo1Mii8Ed65U1q 9L+VFIC9+cM5hmM2Rgxon3yzknfjmkXD4PptNKdFjSi8LHy3ewe/ewBjrYuWkalkPNB1 EjVe3ADEk1tUBcINT3scE0vrGk7pEksSH8xCxVRBzoacCSFdVF40Qj3T8HYBNYmgXq4v 9eHw== ARC-Message-Signature: i=2; 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=6JFIAAu62FuQn/HSZ5tKqmYhrMc0VqNnJVz9VNDCrjM=; fh=4nhpP6lbbO2g24maa8d7lmNQwCVB8RMSAJTPfBcZenY=; b=zMq3tejNMgioiVmZawqCJPuM0fMcUB0MpOhP5PsjvehHJn6+hBMsl37RSNZ4017dgE CKlV4qYb/iJ1uqVJXfAvHmxQvLg8YPm2PC9dKvRzGZ2DIaJatPJ1zvs2Rj82ZM2LrNV5 gNim2v3b0B9sfjxY5b1sRojxg1YPJt0cPOLNf7R/J2o8Z0xYGkkuoZElR0c4pc8M2nJO 31UjkLKtoe1iZsuKWfg7VstQmleA4FCS4crxbsEIfgW5sx3pKric+e/03na8KCxP64ih x1hx4rmUJKAazS+DuURT4U7L1rypdkhxwI7BBgmS0XvIVZYTkgJoqPPVjyBmi2+J6odH /qUg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="U8YB1/Sb"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-55479-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55479-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCWKzHtJSpYpQmNLUbCulYApA4YAiwuizd8OaW4QHlC66bdKmN2dkw6R3mLpSMH62lf2/ClGQVj9F4Qyaw86MCWcRr9MGg== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id y189-20020a62cec6000000b006ddd2c1a82bsi2044854pfg.23.2024.02.06.10.50.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 10:50:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55479-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="U8YB1/Sb"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-55479-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55479-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id AF518B26570 for ; Tue, 6 Feb 2024 18:46:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1342D1C298; Tue, 6 Feb 2024 18:44:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="U8YB1/Sb" Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (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 E9DF31B7FB for ; Tue, 6 Feb 2024 18:43:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707245037; cv=none; b=oV5m3LQI7QV085jfQzfkQhqPwRwcI9+OM0t0AmbYI7WFx9YEaW4gw6MB8DOJy40yi/az9cybdmLnIll8WSrmgdyaAmwFQxQbjYv3JzO/ALOQdrgxYetzzh+PNCIv1DWNoQKo8UIo+C2r27dwd/J/tr06WumRdns4UjbxeP7ovBA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707245037; c=relaxed/simple; bh=7ZxBeTpI7rU3/jGQrGYsBGxNSFTwMdNCV6VkV77JbJc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Hs7XXTlvg90AcMxfnbySc03+SOYPK2twuFYvfJ8uKg7EAcLGQhHX9umR3HlRZNIuEAd1OvWoWxxAcuGEFkxUp3If5rNpBd675679eCml2GLrDwpSlnD72lNCCQrxB3r1OQsrVV6wO3YOaIOKYXOiX0SMD7a+5CchDdn94ZdlY+o= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=U8YB1/Sb; arc=none smtp.client-ip=209.85.218.52 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-f52.google.com with SMTP id a640c23a62f3a-a30e445602cso197530966b.0 for ; Tue, 06 Feb 2024 10:43:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707245034; x=1707849834; 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=6JFIAAu62FuQn/HSZ5tKqmYhrMc0VqNnJVz9VNDCrjM=; b=U8YB1/SbcajaNo6MtJJPaP7bx7DCjn0g02KnCGkLTRlmLFQHGLcWP2BRhMXZfH2Tnw TG66AM7XS9/oxglXwdq2uyM714U5w3OmMoGsO2938GynQeUBPFFdTjkybPy3yfO+s8Bs UbSXSAW/OFkO5cuUl6chYgoteaBmCFKFK7Oog5ik5w/OwZ5F5hl5pSMswmShMyuCFCqo mu9T/JJqvf2V/xd0FUCX4HmNTwE+nICu1YugobOn6RUiBremDZDh6oflwcprncmeHBBG QfVbtUGKY+csQe7jhEBiuwONOHoW7RHJKEs1Tz9gFHmo65Mf2s9YNNkSlu4MQvVhpMHH ZxpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707245034; x=1707849834; 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=6JFIAAu62FuQn/HSZ5tKqmYhrMc0VqNnJVz9VNDCrjM=; b=Ni7hGe2uHG4mgQj79bCSInhkVhn9DJSzd4RTlEdb3S4/VK8uIQoRelCSlzsE3wAIhP Um2Zhn1EneKKbUHjF5z8j3RIEWlhczVWoZD6XJmxCZJv6XCS7zVi3trmQxLDlQmnR5eA 6NUdpRTNkPyP4fHsofRdmKjXUg5ManP6RWuzKZRbM6VwDw6+lDCq3Q4LjIk+Bt1aqAi4 PcakDAHcXyPq02kWBZP+2TT864u7omtRiuVANx6pmNrIdHWE7KUbWn9NyCSvbhGXU3t1 xOaS69XWFvzoBAAlXZbkBZh/DEwtNzfimEhLQxjAbTeDtVLY3d/Jtfmp/44B/G2Eltwk 1nFw== X-Gm-Message-State: AOJu0YxDEqCGXVPbACkhxVylLXxP5MBc3Vy7NAfL9S4iMIdEZFT3a/BB hqv75ZQjwW1neM5VsbzItg5NOcTy/cuhmGOz7ds5hAT2XU8vfJ8sIsRaedUHd+Q= X-Received: by 2002:a17:906:3297:b0:a35:b59c:fc04 with SMTP id 23-20020a170906329700b00a35b59cfc04mr3562614ejw.25.1707245034391; Tue, 06 Feb 2024 10:43:54 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCU3GW7DesvZfeZqzLXJ9bmcXbGuiNMy3LJq+VOD/cMGEPUlLtDY/ddOTJAliMHrcBDDAz2a6vd0Iij1ilRqUNdnK4nToxkPvOM2ID/b67mvZbZvKnSObM7cwpHAvnAUX2QwJ6AVvoV4q4PNRXNqD3ZAbpBWrCzoc9uhCY9uuzufzopIF7Pwri/sIspnjvVXd0Fmc2I0pfIgeYj0Jv22+T+oFO9p03oqvCLgpJ5LRLOIU+pvv15CuSAqna0R87VuBdR7R21jlXfGHAdbXEbeEfVh/9b61KoQjNHA33HhjYBkSXBPlZEMATZ7Nt+jSnD/V7vsH0sNLCBRLVVtlS3w9pdh6tJKLrEuEExVL4rftP3DQqIgdlP88q9AdPoxmSX6pB5FcF3jdCRRHSh8kAx4+MHEWn93+DiQKqI5NbFn9FUHGTMWPlIDHtQQ6Cq4BQwik+5GlUJRVcew Received: from [10.167.154.1] (037008245233.garwolin.vectranet.pl. [37.8.245.233]) by smtp.gmail.com with ESMTPSA id un9-20020a170907cb8900b00a384365e3b9sm562305ejc.195.2024.02.06.10.43.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 10:43:54 -0800 (PST) From: Konrad Dybcio Date: Tue, 06 Feb 2024 19:43:43 +0100 Subject: [PATCH v2 10/18] clk: qcom: gcc-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 Message-Id: <20240105-topic-venus_reset-v2-10-c37eba13b5ce@linaro.org> References: <20240105-topic-venus_reset-v2-0-c37eba13b5ce@linaro.org> In-Reply-To: <20240105-topic-venus_reset-v2-0-c37eba13b5ce@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 , Manivannan Sadhasivam , Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1707245017; l=1113; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=7ZxBeTpI7rU3/jGQrGYsBGxNSFTwMdNCV6VkV77JbJc=; b=IjZM3jN5XHZrj5wc5iXTiZuKe8lstZqNruPJ13n3kYfjb61cQtY0BWSyA+c4+SNxU5Z59zsEl FFlmLMVgijVBk9qV7fgkaVVVDBpl/9tfRtod4o1RKlRwx1jwkHM0HHx X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790176558391794370 X-GMAIL-MSGID: 1790176558391794370 Some Venus resets may require more time when toggling. Describe that. The value is known for SM8350, see [1]. [1] https://git.codelinaro.org/clo/la/platform/vendor/opensource/video-driver/-/commit/dfe241edf23daf3c1ccbb79b02798965123fad98 Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/gcc-sm8350.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/qcom/gcc-sm8350.c b/drivers/clk/qcom/gcc-sm8350.c index 1385a98eb3bb..df4842588a24 100644 --- a/drivers/clk/qcom/gcc-sm8350.c +++ b/drivers/clk/qcom/gcc-sm8350.c @@ -3743,8 +3743,8 @@ static const struct qcom_reset_map gcc_sm8350_resets[] = { [GCC_USB3PHY_PHY_PRIM_BCR] = { 0x50004 }, [GCC_USB3PHY_PHY_SEC_BCR] = { 0x50010 }, [GCC_USB_PHY_CFG_AHB2PHY_BCR] = { 0x6a000 }, - [GCC_VIDEO_AXI0_CLK_ARES] = { 0x28010, 2 }, - [GCC_VIDEO_AXI1_CLK_ARES] = { 0x28018, 2 }, + [GCC_VIDEO_AXI0_CLK_ARES] = { .reg = 0x28010, .bit = 2, .udelay = 400 }, + [GCC_VIDEO_AXI1_CLK_ARES] = { .reg = 0x28018, .bit = 2, .udelay = 400 }, [GCC_VIDEO_BCR] = { 0x28000 }, };