From patchwork Mon Jan 8 12:32:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 185943 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:37c1:b0:101:2151:f287 with SMTP id y1csp988702dyq; Mon, 8 Jan 2024 04:38:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IFocdhMGdhDzCDw27bHEujBBckApi5/kfdpHg+V+m9eKs9I4BSMYjbybOX6C9bBZtcociIt X-Received: by 2002:ac8:5742:0:b0:429:8ced:b88f with SMTP id 2-20020ac85742000000b004298cedb88fmr3631160qtx.77.1704717498740; Mon, 08 Jan 2024 04:38:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704717498; cv=none; d=google.com; s=arc-20160816; b=mjYOLh2ILZWPK3xmw4UV5ZNKpmDbcebnLAZXfRPEx4q381R2q/1Rn9YvFuVqWOeSlb R1RUce2U8IdoLPsssJRqDAgcJmfr5IKvwykUocU+Rs4KNqCe++IGNsUSj72CASTz41zm 5IKh3Fk4AWostrodMeQQCz4K75A3IEoRPARuIaghjPuBaOrzJMvu7atISN84EzgULkzk uc/f2UqM8iefkyPfcgtFlfPtDrtQi5E+JLd+lYPK1PAxP9Wlhi/VkfSJzfR1EBNNmbfR yJTR8LLEgeBn9081c7h6WahO/h1Sg8OrVmr3QI5D0EF2DQvQ0eVAzwiKRHqNVdHCKBvm iUUw== 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=blk0TwokTQ2HtT8cgpJRO0PrfE8+QaeuA8KuyhDefVY=; fh=xaSuZj1ajbxHn52v8M2SiBWQNwlImHP6rQYKWo0AWtU=; b=QoAQtm9jpJTOJi+3AtzvjuzkvAXZOsXt2yQFRYT2se3fjgG4KpfcUvqUXwn+wH+4Qc RhiQ0e+KCm7Np1lkprEsnjM54iPrMWbA+g4lxxZEphCxH6tt/NatGtGYMeWEwf6ET8cN gAwl1ZYZT+Nu4TsrE7jJr6niHfKfvHSztLKSYOWaq6si8q8J4cyYHd/n89of5B7IFVTD ByRnoU9PFydJ1H4EbUC99ao3cD0nU7NoevXRGhtl5L+h11UjtfWDQ2PoPyd88LXe5UZF dPencS+lD7C5zuvUIrUbwWONu7QMe7oswymoV8h2H7X+NpkapPgkJOBws21WxBH8oQx1 JIkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZhvIyCH6; spf=pass (google.com: domain of linux-kernel+bounces-19523-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19523-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id s11-20020a05622a178b00b00425a114df71si7612149qtk.681.2024.01.08.04.38.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:38:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19523-ouuuleilei=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=ZhvIyCH6; spf=pass (google.com: domain of linux-kernel+bounces-19523-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19523-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 895261C225C9 for ; Mon, 8 Jan 2024 12:38:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7CF57524AA; Mon, 8 Jan 2024 12:32:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ZhvIyCH6" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (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 329165100F for ; Mon, 8 Jan 2024 12:32:34 +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-f51.google.com with SMTP id a640c23a62f3a-a26ed1e05c7so182787166b.2 for ; Mon, 08 Jan 2024 04:32:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704717152; x=1705321952; 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=blk0TwokTQ2HtT8cgpJRO0PrfE8+QaeuA8KuyhDefVY=; b=ZhvIyCH63z/uWj7keQyAJHzLAR4U/TTAI4k8PCAuEuoHTIzRcHiQV2kg23sjz8tUpI 336lid2YLy40Jb7toduHkZmVfLPp9gi0UFu1WbY2sgKfRGapiQ5hYJSvSznhn4GG0Q7f Qrc+cdBlOmfixZS2bSANfX1LSa4N4attWKgFBXG7IleeofHZfXrw06HbRrODLcXY60wD 6gh+ekcGRXIoGWTl5S7m+hLPIOp8li3chb9eS9eAMTQwW+mE3R23oxiSLiTgK4N2I4g8 wBWd4NHauun+9u9MDnmljaLvhCCMGSeLXFSIuHfee1lzE8BweZoW5gfIniiRWKUrC5EI X9VQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704717152; x=1705321952; 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=blk0TwokTQ2HtT8cgpJRO0PrfE8+QaeuA8KuyhDefVY=; b=JbJhGwvsPf1PR3i5gIA6VbCkYJDKT2IzXNoylTti6ahoLjtEkdEZ7XkAEtIcKkL94l XCcW/v96MSP4LUkRZU8lU9y5BIS3de+vdrW6q+25iyUCXujDkL8Slxo/BvMXwaT2A7ke Z6PCoxRTc7LcEQcA0eUE8nKc0E5UtV/LvHOpg0a5ipBmi2lAH2drDjxW6njgtacOlsL+ ohLppRNQ1KtHI3xx6fritBJzeqDPhFXUWnaDgdbsXJ8mUjZ+/RzvTnBmgyksXk4n7jwZ oQ92Of74uqav9vDRO909dYOi9++Z8AEkawvFTQzdWlxLBx+gYiJ5GH6gi7SOfJJ0tkk3 0hjQ== X-Gm-Message-State: AOJu0YzvPhKrj+9AUiHtEZ5hNiBfTETJDUjE1LddbCA34Yk8aRPpvmsG yrzGLMrhqZ3nRbp5iqkCwrpv6bP9MqaOA76GLRWKdcIUJ9E= X-Received: by 2002:a17:906:2210:b0:a2a:4b04:167d with SMTP id s16-20020a170906221000b00a2a4b04167dmr736131ejs.27.1704717152274; Mon, 08 Jan 2024 04:32:32 -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.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:32:31 -0800 (PST) From: Konrad Dybcio Date: Mon, 08 Jan 2024 13:32:18 +0100 Subject: [PATCH 01/18] clk: qcom: reset: Increase max reset delay 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-1-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=566; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=JX51EYp5JFQZ08l/6cPLk6AJNuyWClVT+Ndq0orY4H0=; b=Kyn4473DA3WvcmrlK27CvnoOgbeEzf7Yehx2lnAVswUVpL8pCGzd4qG7+r2x3hTw7Gwb/Okt4 o1nXY+mCXs5BVbXAbVZX26YcwyHtpMVg/aCFQE5UuRkkd5OpcgaiY0g X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787525855802779512 X-GMAIL-MSGID: 1787525855802779512 u8 limits us to 255 microseconds of delay. Promote the delay variable to u16 to hold bigger values. Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/reset.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/qcom/reset.h b/drivers/clk/qcom/reset.h index 9a47c838d9b1..fe0561bf53d4 100644 --- a/drivers/clk/qcom/reset.h +++ b/drivers/clk/qcom/reset.h @@ -11,7 +11,7 @@ struct qcom_reset_map { unsigned int reg; u8 bit; - u8 udelay; + u16 udelay; u32 bitmask; }; From patchwork Mon Jan 8 12:32:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 185944 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:37c1:b0:101:2151:f287 with SMTP id y1csp988883dyq; Mon, 8 Jan 2024 04:38:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IGyzeeB5ODdYRPy/YCmESg73k2YwrT7NobXCLgHWErJvulQ0+xJmxUwMg1rlGmm3tjOkjXp X-Received: by 2002:a05:6214:246e:b0:67a:94ae:7d06 with SMTP id im14-20020a056214246e00b0067a94ae7d06mr5362262qvb.19.1704717522545; Mon, 08 Jan 2024 04:38:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704717522; cv=none; d=google.com; s=arc-20160816; b=oNfdWItsJVTqPm/jB0yAfcZhZ75NJgCRaNWE+VCae8UGSrqHH+6G8/sav1+LPNXHMx wByJa5nw0bFz/11kBEzjymjmOFI3satYouMUY6tfm2uMsfLCi4GmoKvNxpv1AC41skfs zR2Ql3TVzi4i2JlDU3PEQscroPIdXUPDtYnopIUgzlyVH6U0gJKZXhlYurdVDjsIbgeN Oz9EhQXgiRRHC2X7Hz/y970i+2jbEAPGU1sPmd6P89A9bhtHRkPp2Ou+KCnODTAO4via qF9IC2TVR9FVsGOfWKFRvtaJMPNvgFzVcjMEvpAHCE+GY/VbxOJzSs7jLC8IUDkPUwMV qrSQ== 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=HUvQsMq1PbRCWmoeSPQnQVBbz3tj7l9AsvjXF5PvuL8=; fh=xaSuZj1ajbxHn52v8M2SiBWQNwlImHP6rQYKWo0AWtU=; b=VTNAbjDVaCarqxb+STUe57RuwbSwqjcR1XS1PM1+MGmP/fsDamRAOXkLE5FKxKz0aX 2VF8QmxbfjntmyIikrr6W9vN6Topy0fG1/TH4tKXqGSG3gaHZAu4q2MOl7FX4WJrAQdA HpzPFle4oZduMSYZeOO7sHiGadQRkSaSLJJKMdQltALS3Pq6QJl2CCXZrAfu2tIfXSEL IgC/rNs0JHLm4pdQrZUEy+C/Q+LQy/3h+Bpeq4P2WRJ3Sgo8bJuTCLTfeEBLaUU0HEXW k143RGYosCsA8F8uDoAOneI1x9UeCEajmKJ0jGyGgOzDoiJD4kJsPZi72a2hvBYefIzd 4d6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=h7QwnjlZ; spf=pass (google.com: domain of linux-kernel+bounces-19524-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19524-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id z19-20020a056214041300b0067f7a01e3a1si5318257qvx.600.2024.01.08.04.38.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:38:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19524-ouuuleilei=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=h7QwnjlZ; spf=pass (google.com: domain of linux-kernel+bounces-19524-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19524-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 581D01C2259E for ; Mon, 8 Jan 2024 12:38:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BC82052F63; Mon, 8 Jan 2024 12:32:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="h7QwnjlZ" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) (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 6E3EE51008 for ; Mon, 8 Jan 2024 12:32:36 +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-f43.google.com with SMTP id 4fb4d7f45d1cf-557bfc7f7b4so890309a12.0 for ; Mon, 08 Jan 2024 04:32:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704717154; x=1705321954; 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=HUvQsMq1PbRCWmoeSPQnQVBbz3tj7l9AsvjXF5PvuL8=; b=h7QwnjlZyyhDWs/H8McSNX+DYKnqEum/fUWlJdHaDzUYIISABMWnkW17lkNBbjpTaQ vWQaSRAKrx7u67B6DBHKGjQ3GnbS2ar55MgawuILgdQYoQD+yjLLtieIKU8HhWAb+X2V 4wro+Oi6IZO60hkplN9McWaDPxK8GLjchZg6FZJfcpmG6VN/AolQudlAwkUToMsrfd+c sGFEYbhB5ZYsvAB72alNC+3YKjb226TkA9iWGFZJHUa7k+omBFYLCi86i4I2GuIHp1Ij 55eit7KqE5PkFXnOaqaJ9ahN9NY/5mzHnV/OL0iIpgVHz7wqZsvP5SCyWH3wWywQmdqP k4WA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704717154; x=1705321954; 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=HUvQsMq1PbRCWmoeSPQnQVBbz3tj7l9AsvjXF5PvuL8=; b=B1eqbPHMUzBQnhqxjIEgqPHyzQ7iwil9dB62kG1ngCxJKdovN3L4zobJ6q2Au2DuId H1G5o+qdpR8Zl/5+baDhjhC4O2c21/D5Qn3kuQN9TyZn2nVNgixy/19RzO5A0YWjK3HJ VwFLMD+Srl3IewUPL7K96C16IYEjR4gDElA78F6OsZNyxHKonaZ/uxug1vQjl784pbwF fZR8v91tgkbPiloxzB34GRtB+Q5gQMeWzum9YHXLZ+E9BMGQeZAfBpyUGXpCO3U3vd6c G5pVS+hyaypAcp4p/PeQmD18AKn5cDzhIx/gq4HwJC4RBf4LMmKzeALVGkvNYJ/mEgl8 xXzw== X-Gm-Message-State: AOJu0Yz4U51mRGOS+CwfIE0tFcdyKLDOE4LrqW87JA2w+2exajtQlURO yAEr86e5vrNzCLP9M29uQdmrA0150mmExskGF2FxTg8K3fo= X-Received: by 2002:a17:906:4f8f:b0:a28:9546:f92a with SMTP id o15-20020a1709064f8f00b00a289546f92amr3213285eju.67.1704717154382; Mon, 08 Jan 2024 04:32:34 -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.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:32:33 -0800 (PST) From: Konrad Dybcio Date: Mon, 08 Jan 2024 13:32:19 +0100 Subject: [PATCH 02/18] clk: qcom: reset: Commonize the de/assert functions 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-2-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=1900; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=8Ln08zwOLxxs1oCk9D1EV6KlVNtzHvoS1MgmoKMR/Vw=; b=uiBlXQSeveo6OYtgybsM4Ijx6cJYCnikHYLQARjmmvJSPRoT7VQNpExbZxFteGRcrSkoV7nIV k30jOX8wJPNAfiTklEPXntTjteUaycuNfblwmHzLXT7OokZFEvnvC+u X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787525880917333539 X-GMAIL-MSGID: 1787525880917333539 They do the same thing, except the last argument of the last function call differs. Commonize them. Signed-off-by: Konrad Dybcio Reviewed-by: Bryan O'Donoghue --- drivers/clk/qcom/reset.c | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/drivers/clk/qcom/reset.c b/drivers/clk/qcom/reset.c index e45e32804d2c..c4ac4d18829b 100644 --- a/drivers/clk/qcom/reset.c +++ b/drivers/clk/qcom/reset.c @@ -22,8 +22,8 @@ static int qcom_reset(struct reset_controller_dev *rcdev, unsigned long id) return 0; } -static int -qcom_reset_assert(struct reset_controller_dev *rcdev, unsigned long id) +static int qcom_reset_set_assert(struct reset_controller_dev *rcdev, unsigned long id, + bool assert) { struct qcom_reset_controller *rst; const struct qcom_reset_map *map; @@ -33,21 +33,17 @@ qcom_reset_assert(struct reset_controller_dev *rcdev, unsigned long id) map = &rst->reset_map[id]; mask = map->bitmask ? map->bitmask : BIT(map->bit); - return regmap_update_bits(rst->regmap, map->reg, mask, mask); + return regmap_update_bits(rst->regmap, map->reg, mask, assert ? mask : 0); } -static int -qcom_reset_deassert(struct reset_controller_dev *rcdev, unsigned long id) +static int qcom_reset_assert(struct reset_controller_dev *rcdev, unsigned long id) { - struct qcom_reset_controller *rst; - const struct qcom_reset_map *map; - u32 mask; - - rst = to_qcom_reset_controller(rcdev); - map = &rst->reset_map[id]; - mask = map->bitmask ? map->bitmask : BIT(map->bit); + return qcom_reset_set_assert(rcdev, id, true); +} - return regmap_update_bits(rst->regmap, map->reg, mask, 0); +static int qcom_reset_deassert(struct reset_controller_dev *rcdev, unsigned long id) +{ + return qcom_reset_set_assert(rcdev, id, false); } const struct reset_control_ops qcom_reset_ops = { From patchwork Mon Jan 8 12:32:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 185945 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:37c1:b0:101:2151:f287 with SMTP id y1csp989023dyq; Mon, 8 Jan 2024 04:39:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IGVVbUkLxeeam1Hdx0+SkpbrxaR8Vc5Q1zglrhfhaOrw1eaC4lxVPB4qTbncmDljYs635zP X-Received: by 2002:a17:907:1b16:b0:a2a:98d:d9ae with SMTP id mp22-20020a1709071b1600b00a2a098dd9aemr1781221ejc.84.1704717540368; Mon, 08 Jan 2024 04:39:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704717540; cv=none; d=google.com; s=arc-20160816; b=ddD3LsPT0fMsG/7pSUqaqgX8LW88+hK1rbkoLQSfV38SxWK4GOGkGIyhFvOKOI0O/8 PiBd+me0j+XMpcvBVQyA2cvugWrbUKlAcq3JOoIcQrOVMCfrwLp9gqvxhAXfzj4QYm2w dTFzA8I/FP+AlEsIYI75/hg0wM75fu9HKJv7ODB8QSYHQQoOU2bhjZEn15drRfPKfBDy POE3C4jmHD2QkZuycZRiNs0uq9x9GhrbYG/wAmOtkPL6mWPbIHq9WIQyV/9rCLvwyNYi 2YAlutMWpVgLi2DC13uh6h1CgtIJsS0vv7ctL5SE/VVQCz0fBqCzWqz1QSmvj3OX44uv 1Rqg== 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=Da5WEFJ7Rox0nWyoU5Lxh9Tri/61lPju+1E7YeaEqkE=; fh=xaSuZj1ajbxHn52v8M2SiBWQNwlImHP6rQYKWo0AWtU=; b=rGXHqAxWfBsxi/wEg164iNdu7ANONpllYnDWzs7qdNyAICeBmA9otLfbTiJ1Ybja8X 7Q8tKog15s9mJrFWLOheqp44bEbex6nHXqR9PPUQT1298Fu5hrQXl2jbXKAEcL5tdwY1 NDx8LjrfcDikBP+YSX/WBQ0XIYDgTHGw0enjcBp0Wi/TiwbQxVHspDsQOipS+7Wl5Dg2 NNcvagEoPawWCrpmxZMDjQpUw+0fvvy3t9ZO6mKusanz6/xIZT/PBtyWpmZ/cHf2Eyx0 Zsmpb0jrNGfMPYAn7+yOTWhc/GhwAB1SNkInQhBPnKMb0M76Tgx0itI7L6FXkHTR2tr2 bszA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JxNFTI0M; spf=pass (google.com: domain of linux-kernel+bounces-19525-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19525-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 bh20-20020a170906a0d400b00a26f5e38a09si3135057ejb.892.2024.01.08.04.39.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:39:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19525-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=JxNFTI0M; spf=pass (google.com: domain of linux-kernel+bounces-19525-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19525-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 031361F22D03 for ; Mon, 8 Jan 2024 12:39:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5CBEC52F98; Mon, 8 Jan 2024 12:32:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="JxNFTI0M" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (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 25FC35103D for ; Mon, 8 Jan 2024 12:32:37 +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-f51.google.com with SMTP id a640c23a62f3a-a29a4f610b1so178359766b.3 for ; Mon, 08 Jan 2024 04:32:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704717156; x=1705321956; 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=Da5WEFJ7Rox0nWyoU5Lxh9Tri/61lPju+1E7YeaEqkE=; b=JxNFTI0MZuhNAVbfoZLQu7P9FvabwFbf6Q+AfCnt24bj3tVdIGjrxcLcB+fBuOWR/+ uTL9ska02NIoiiEs2R7Nqp3FbWZN0YP3UoYTCDCAqCQYzlR8sANI8t/1epKGMnTE9EUd y2x5TDg5QiCJcd6BLP8OC4kWRGpZg2KC7/54XzVrDHgKgSBnwwL/UvJk6JJ4myMoykXZ keANuGLvt9XwG23Tz53SNIMjyTWtWeFf8b91OphWO6PtG38S8DDtkVH3HPQSa9lRsgeV doVA1+gswN/WnfDKXXRLBCoi5X8J0vuhcHlLs8i00dnhVPM2nF5TybxLOVefi2WP+PuK JKsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704717156; x=1705321956; 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=Da5WEFJ7Rox0nWyoU5Lxh9Tri/61lPju+1E7YeaEqkE=; b=rnFOc8GRhMO4NSXdRwTuZawvwNgbIqPHOh8eEFp0Tjmtb3hApy68Wa7rOu5rF74Rus 95BAx7dDF8n3m6UApXM5oFs8U8StGlDfzQHLKxg+37Qoe9OIWO3ACEWeZl9trn0FIZ+W ZArnl4Gb0kp5YZ2snI8oBRVHKc0LXVrtr0Puxf6O36+5ZFwgBbN6pB1/G39OrlHz5O/j fv/5oTZYIdxftxBblFKr7jCmABMjwVvEmxABTJ20AOESJ5Zs+1eBfMNlrbLeXBVjIiYf umOv/cJMTW9RvH2l2FYf6D6WxpqRhxr/MeHQaItWrg7EJ/BP2gDNs496k32y5/FW7M6E VL1g== X-Gm-Message-State: AOJu0YzV+f1+FXPSovjFlpHNEbOB7EzlEqJHPNY7AGakqQIUzQ/51JQ5 QO4MrWH6Z+1c1M7/eU5v4H01Pqy0T5PKbolRynbGfkrhfjg= X-Received: by 2002:a17:906:260c:b0:a27:f7a1:2ad2 with SMTP id h12-20020a170906260c00b00a27f7a12ad2mr973815ejc.69.1704717156067; Mon, 08 Jan 2024 04:32:36 -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.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:32:35 -0800 (PST) From: Konrad Dybcio Date: Mon, 08 Jan 2024 13:32:20 +0100 Subject: [PATCH 03/18] clk: qcom: reset: Ensure write completion on reset de/assertion 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-3-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=1265; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=JNyercWD/irj0WnMZM+/XNK5jH058/unr+ghbvtjtsA=; b=PiEP2x1LKi1nXUSfujrMpb2rsufCxzBXzXIuwd/XKExri1mGJnHEXZM3mYML6D2hNcbfCq9s1 DnonS2BI0z8AfP+XkIRhdNm+Z1N1OVN22WZJpK8p9rxnLjRjT4QpIxh X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787525900115852797 X-GMAIL-MSGID: 1787525900115852797 Trying to toggle the resets in a rapid fashion can lead to the changes not actually arriving at the clock controller block when we expect them to. This was observed at least on SM8250. Read back the value after regmap_update_bits to ensure write completion. Fixes: db1029814f1f ("clk: qcom: reset: Ensure write completion on reset de/assertion") Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/reset.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/clk/qcom/reset.c b/drivers/clk/qcom/reset.c index c4ac4d18829b..57024d1a0524 100644 --- a/drivers/clk/qcom/reset.c +++ b/drivers/clk/qcom/reset.c @@ -33,7 +33,12 @@ static int qcom_reset_set_assert(struct reset_controller_dev *rcdev, unsigned lo map = &rst->reset_map[id]; mask = map->bitmask ? map->bitmask : BIT(map->bit); - return regmap_update_bits(rst->regmap, map->reg, mask, assert ? mask : 0); + regmap_update_bits(rst->regmap, map->reg, mask, assert ? mask : 0); + + /* Read back the register to ensure write completion, ignore the value */ + regmap_read(rst->regmap, map->reg, &mask); + + return 0; } static int qcom_reset_assert(struct reset_controller_dev *rcdev, unsigned long id) From patchwork Mon Jan 8 12:32:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 185946 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:37c1:b0:101:2151:f287 with SMTP id y1csp989178dyq; Mon, 8 Jan 2024 04:39:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IGT9L1pIj+lDrvi4xJDTUEtbL3QGhG0j4s9z9c1gfLNLdq4uaaty3mgLgHytLnqhUGlbJoG X-Received: by 2002:a17:906:3848:b0:a26:f18a:b31d with SMTP id w8-20020a170906384800b00a26f18ab31dmr1692351ejc.13.1704717557611; Mon, 08 Jan 2024 04:39:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704717557; cv=none; d=google.com; s=arc-20160816; b=1CwGLXB+mgj+T01tWL+FbVVK9Ss8+jA+pvmJwiHwzsnJzibl6p9nC+IKlBkugFR9+S A3p2ngB3eIZp2fXptgP4piZLWxtFj5eIddqpwbvffSTdiTgjymf9/+Nce9x0dt66vUBo D+KxOzCvoYhqFJLMpUrS51ORZYSq6fYDARsx1V08w45T+v3WOZJjmkDMqYS3N1o7nAOZ FzLj/3+Gj9Cvxf2U+E5vIvQU76LkrRRgYaezjFQLHoUgFQyCEax9kkRzQsvjCLldISZ6 olKt+QOemBmZBPF8NbYZrFbw2fsLfHSojmUNJLoFCLcgHFqkJZVaorLnHYSWPjU/DsN+ 8B8Q== 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=ZbqxBx0E5dp1fRCBtciunv9V8jUa58umzYW7Td8kFyw=; fh=xaSuZj1ajbxHn52v8M2SiBWQNwlImHP6rQYKWo0AWtU=; b=Jn5w+/D45ejUr4+w/COLkZwjy0MeMAH9iStzp0J4hZXgzkqou3SgwPQjRKF63SjfR5 H3OVgZ82ru17pjrHpGrc9PVrFrqM0K6GCR4DVjxE+xTE287Y4/GTiWqRSgZFE2idBNKa eUMy77q65J8DeLnLKY2TUWLzn91mGXONzhLEZXQXHE2ozIvSctcIqe141eQ9D19yaYaV nkrXdZ5+NBPvs+skUv3jdH4oG2JmsMzID4yRKCsu/6XAtbSAjj2zILQ7dcaqTM+Xhbtm O8ZbpV19SetT3FWo5n1Hr9HjhIiwRDtd2u1Q/WekwP148s92ENeQTZ0D1JDEOo6uppHa KO4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nDxKYr++; spf=pass (google.com: domain of linux-kernel+bounces-19526-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19526-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 t21-20020a170906609500b00a26b291147csi3048868ejj.329.2024.01.08.04.39.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:39:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19526-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=nDxKYr++; spf=pass (google.com: domain of linux-kernel+bounces-19526-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19526-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 37AF41F22CCD for ; Mon, 8 Jan 2024 12:39:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1414B53808; Mon, 8 Jan 2024 12:32:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="nDxKYr++" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.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 DB0CC51C51 for ; Mon, 8 Jan 2024 12:32:39 +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-f49.google.com with SMTP id a640c23a62f3a-a27e323fdd3so162580866b.2 for ; Mon, 08 Jan 2024 04:32:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704717158; x=1705321958; 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=ZbqxBx0E5dp1fRCBtciunv9V8jUa58umzYW7Td8kFyw=; b=nDxKYr++N46UfBavf7faB/nd1xncr7a1ztJaPW9xU5R08WYcWj5/iGdDfpP6xZLEVP i42H+MNKBRyWLnviFqywrQfUoC9+ECFlyM91DOkLWRjHnd0iMQedKbFnvKmAEw1yes+i Dmx6W/fbki1GLgyrp6omTSmwJcLBAIdDKa7HO1vZSixidk53C9Jzks/wxNLg6CtqdFUT Y3YpDZObByajWjPb8msJ0pgCpS718RB17+QiQcYw7Gc/27ERjnCYtTRLUQ7xN2ir48/8 /+1O29+XvYz/2om82FlgFlCsNUiBFLuRkbv1n1eK4UQar/Eogh3CwLo+fL460N9w14F1 mPUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704717158; x=1705321958; 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=ZbqxBx0E5dp1fRCBtciunv9V8jUa58umzYW7Td8kFyw=; b=TarF+eL5fU2Y82WDafMHvN/of/h5HiBo61r7/MBmKKPfnL61fQhlAbGoWejb2GTYIf M+nBZ+m9gO84er4oAdSSft3WCNYuo68D3gr/8tqKojC9tHnrQOFYK729TPjxtdCdAWqL Lpu3gnswc6T9VSB3fzetMOo9J+1MD2tmK9EYPGjtE7rBte1IHY0p3Q0dijM0isQJVKmf 78ySpfcpOqUNgk2ZAletH6uM8qPXu7vApcjx4BN+zEuU+QLohWzlmhsFeX2cGH4x2RoP g+0DQfDfjdLqPJ5shPI4hjYUHUReyCHroP0RAj7l2ebtyYKDtEifitp8f50e9MUtdLdd 2vvQ== X-Gm-Message-State: AOJu0YzNJYuU6Wjc41hPcMGNsm73rGoJhMK5eGKsCvQe1GHT3ToR0Htg f2U96XbheRYb4k0ngLWh9nFALvZlQYkwZmANqh4r/4wyzcQ= X-Received: by 2002:a17:906:2bc1:b0:a27:8953:a710 with SMTP id n1-20020a1709062bc100b00a278953a710mr1177702ejg.155.1704717157969; Mon, 08 Jan 2024 04:32:37 -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.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:32:37 -0800 (PST) From: Konrad Dybcio Date: Mon, 08 Jan 2024 13:32:21 +0100 Subject: [PATCH 04/18] clk: qcom: gcc-sa8775p: 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-4-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=952; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=k1+Llq4BWFORa9650sktN+7i8cGBVSjipUz4DricPxc=; b=qh+MgjGLec4wTm3sS0J/P6R79UqhgmLB2oNC3ezUghgrAjRXOWcqOwnzrXWD5I4dbii67gwWN 7yFkUe/Q9rhB+qxsGu5U4ipZTLb3di0Wk+wmjNkj25tSHiwQDNEFye4 X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787525917444921812 X-GMAIL-MSGID: 1787525917444921812 Some Venus resets may require more time when toggling. Describe that. Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/gcc-sa8775p.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/qcom/gcc-sa8775p.c b/drivers/clk/qcom/gcc-sa8775p.c index 8171d23c96e6..c2b403cb6301 100644 --- a/drivers/clk/qcom/gcc-sa8775p.c +++ b/drivers/clk/qcom/gcc-sa8775p.c @@ -4662,8 +4662,8 @@ static const struct qcom_reset_map gcc_sa8775p_resets[] = { [GCC_USB3UNIPHY_PHY_MP0_BCR] = { 0x5c020 }, [GCC_USB3UNIPHY_PHY_MP1_BCR] = { 0x5c024 }, [GCC_USB_PHY_CFG_AHB2PHY_BCR] = { 0x76000 }, - [GCC_VIDEO_AXI0_CLK_ARES] = { 0x34014, 2 }, - [GCC_VIDEO_AXI1_CLK_ARES] = { 0x3401c, 2 }, + [GCC_VIDEO_AXI0_CLK_ARES] = { .reg = 0x34014, .bit = 2, .udelay = 400 }, + [GCC_VIDEO_AXI1_CLK_ARES] = { .reg = 0x3401c, .bit = 2, .udelay = 400 }, [GCC_VIDEO_BCR] = { 0x34000 }, }; From patchwork Mon Jan 8 12:32:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 185947 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:37c1:b0:101:2151:f287 with SMTP id y1csp989291dyq; Mon, 8 Jan 2024 04:39:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IEXLNn4CqwffuG4AOREbuwovE91wkC7UCXrvopmUumxGGomdT2GGvlLlM+U+2ZWD6dQu0pT X-Received: by 2002:a17:906:6a13:b0:a28:fab0:d89a with SMTP id qw19-20020a1709066a1300b00a28fab0d89amr897408ejc.12.1704717572944; Mon, 08 Jan 2024 04:39:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704717572; cv=none; d=google.com; s=arc-20160816; b=GR/aT/a+j8mg8f3mlZIFS4TzmPpsp08G6UfNhm2w5WpOKOR5cFYrFg8cdnOK3isq8y zN6r//rScNLZ5zBupH/KMJp7Cn1XvHdn2toifM2aal89iGdO0HkmWtZNBf5V1taIspBe rDTgQN244lly1jSdY0dDFJzafuUpY/quqKAlhv9Ztfutf9iRKqeyLhJ/gh1e+QdMjKa7 dCH/bkNifBU+QNA0EFyXztdEUqASTS02OWjj8JlLf+QULFaVg6p5YGu7kAkatVJ4KTUP AUT8CY53oSTY1dVSNdFbwBUvjAHDB/bXebcpFxyuXaJKEaD7HquaDcU+sIgfH8cTK3Hq bGxA== 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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19527-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 x6-20020a170906b08600b00a28b7fc45casi3145997ejy.897.2024.01.08.04.39.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:39:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19527-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=QpMMIsN6; spf=pass (google.com: domain of linux-kernel+bounces-19527-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19527-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 8065D1F22CCA for ; Mon, 8 Jan 2024 12:39:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A572053811; Mon, 8 Jan 2024 12:32:45 +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 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= X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787525933576622791 X-GMAIL-MSGID: 1787525933576622791 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[] = { From patchwork Mon Jan 8 12:32:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 185948 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:37c1:b0:101:2151:f287 with SMTP id y1csp989436dyq; Mon, 8 Jan 2024 04:39:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IGP93yCqVnKxyr9/FKEElIeYxLjS07UtGZUygCVHngtPKfPuvsF4aodAXSjO4cO/K02VEpX X-Received: by 2002:a05:6214:76d:b0:680:3ac:2415 with SMTP id f13-20020a056214076d00b0068003ac2415mr4863588qvz.120.1704717589839; 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=qwk2a4eFmsUxHnxP0e85Y4BPok/CKZJwIW8Pd3HnGoo57xKn+hhGTcmsCAHb5RyfRr IH47EVR/EPdSAZbrcrmKG4H5RvGsfvB/so2tntAgQCOKMZJiW/0xGq4rdmHdT0TnAo2A Yq6kp1rsRV3dB53VDibNi/Xpxx2atnxjIkXy+CwjgXo+cbi6zEziL6r/qgxmx1G0R5zc aQhu0fGbPaD3FnUsBUx8DNgPFougXQ83jpmAU0MvzkRYlvdiY9P7lJwmW2o3LZyayv8z GN4hRPO+X+avyOgc0rATq2PRbsvwAkaHy0OaAJBX2rFeDBI10+nJQrt6VVo2aiMMddef twIw== 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=OybVnChzpZZd58R6Wja2qOVNRv7BNYmPnvk8rkwqm98=; fh=xaSuZj1ajbxHn52v8M2SiBWQNwlImHP6rQYKWo0AWtU=; b=VUEJ3Nu8wEkkFbxIAEFCEJzQL66Uhkn3LHgVw5PBsyGFFsrjqodlz1hp2PzKViOe3B ys6RibcwvWhspzy5/2bWESHgGYxvowdmxZtSFBLf3IsdqPfHA5HciI+xITViFmI0nUzN 25IzyxOt3BRWyXdGa6DhOtyrL1SWDfWpKg/DMoV+0G3FTu2WcWQtzM70VzGesqRKGcea dxxXrjJ0xZhwFobv9CnhJY/waRK+xwpo9MG7kd7+JppsCfgYE6CQ4ciYSKzhdFJsG2wj MjEbbf13+hjyLaH6ECjzofxW7YtAYHzfK1nJLS/r76C8rdArx9ZVnPxehJS+QkRIQBLB wl/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tMsofVPx; spf=pass (google.com: domain of linux-kernel+bounces-19528-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19528-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id m9-20020a0cf189000000b00680f70d3984si4761289qvl.539.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-19528-ouuuleilei=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=tMsofVPx; spf=pass (google.com: domain of linux-kernel+bounces-19528-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19528-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 9EED61C22475 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 8F4DF5381E; 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="tMsofVPx" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) (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 62F16537FD for ; Mon, 8 Jan 2024 12:32:43 +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-f44.google.com with SMTP id 4fb4d7f45d1cf-557a3ce9942so1129770a12.1 for ; Mon, 08 Jan 2024 04:32:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704717161; x=1705321961; 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=OybVnChzpZZd58R6Wja2qOVNRv7BNYmPnvk8rkwqm98=; b=tMsofVPx9JKk721Kx6as/ycjkkPSJYqNsJPCKZYLiqw4wwhHnbv0PRc7z2LCu5oond 9JHMDKKwIAUIl9fR3ZtxGME26AO4yR9HjZANf8dZUurnPDyklC4l0IV1uXCWAQad6Kwe fuA8v4fOKGpVgHH0wbgaPShfoFL2AIWkkxW2RsZ0br7PkybA5pCBo3hADCc0HhjlWjU6 YSzWfxO/7i/06HQpcV8OCFeCTATxgtcQH7UNjKrincHcXjvd+XmLiJHgNN5SykwMhNih MAljMYhfUIvAst2GE1Pf2kzhrnUOyvu2S3l2K/Wz8R6SLTJZ/hq+1TO9Nvab3cOYruc1 asfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704717161; x=1705321961; 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=OybVnChzpZZd58R6Wja2qOVNRv7BNYmPnvk8rkwqm98=; b=e8jzQUmPkFIDUa4nD/ULBZiKSiirjZqYrYf5D0sEoSnlcjp0Z7f13l0NXkRkYJWTsa 7PUPp0X00w3us2n1Pzpcx964+E1pb3A4Q9iupHbqhCS3DB1Xy5GBrAxWSEVnypeaYVI4 RBXrA6PHXRX26FOmy8hkPdpfAAVv9GScwmRd4wdhaHC3sxuRaPIkEglb8G0Jn59gyYkI zEs+Vj6aUuS8jRA+F86fES2J16KzFZxV8neBRzu6PACrkR0eYkGscoOqVoZXA4+dL1yw XSNgMNOEgva6ZT8z+OhLHUrXqpsz2LArRKFLv1PaeTZVFBApNH5yx9oIjlxnnoruRMwN GhnA== X-Gm-Message-State: AOJu0Yz1R5+rLqM8m2BenEJUBAtpeaNH28KHZgywpmNvy882U2oc7QJc NtLuAGZV1s+iPWk8MS4ME7BC+Sd8wYpnXC+t9uC0RYD0IDc= X-Received: by 2002:a17:906:6cf:b0:a28:e6b3:800a with SMTP id v15-20020a17090606cf00b00a28e6b3800amr972675ejb.89.1704717161537; Mon, 08 Jan 2024 04:32:41 -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.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:32:41 -0800 (PST) From: Konrad Dybcio Date: Mon, 08 Jan 2024 13:32:23 +0100 Subject: [PATCH 06/18] clk: qcom: gcc-sc8280xp: 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-6-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=956; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=kXhMR6j6x8UUPoTkNpGBdxTOTiabGpXywak8UVlAUas=; b=IjUluzegb5LfVJy/+4amSn52zp1EhChG57OqSJNaJN8oBMLAufCdz4s3KuSnwAiO7mJ1ndEs0 2/qagJFYxJ3BqAu7SLM08MGEyfky1JlMorpYZn5nO5Ek4+xB0UvOl7g X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787525951428771724 X-GMAIL-MSGID: 1787525951428771724 Some Venus resets may require more time when toggling. Describe that. Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/gcc-sc8280xp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/qcom/gcc-sc8280xp.c b/drivers/clk/qcom/gcc-sc8280xp.c index bfb77931e868..9f4db815688c 100644 --- a/drivers/clk/qcom/gcc-sc8280xp.c +++ b/drivers/clk/qcom/gcc-sc8280xp.c @@ -7448,8 +7448,8 @@ static const struct qcom_reset_map gcc_sc8280xp_resets[] = { [GCC_USB4PHY_PHY_PRIM_BCR] = { 0x4a004 }, [GCC_USB_PHY_CFG_AHB2PHY_BCR] = { 0x6a000 }, [GCC_VIDEO_BCR] = { 0x28000 }, - [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 }, }; static struct gdsc *gcc_sc8280xp_gdscs[] = { 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[] = { From patchwork Mon Jan 8 12:32:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 185950 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:37c1:b0:101:2151:f287 with SMTP id y1csp989757dyq; Mon, 8 Jan 2024 04:40:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IHRGMeDk65VGbtGxX7ilk16hYWU1YHzrCrp9dgI0kctFZN7m5m4qFXQLWncXjkz2zYGmnAY X-Received: by 2002:a17:907:928b:b0:a28:db16:ddf3 with SMTP id bw11-20020a170907928b00b00a28db16ddf3mr940511ejc.73.1704717625818; Mon, 08 Jan 2024 04:40:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704717625; cv=none; d=google.com; s=arc-20160816; b=xpovY8CeEZtNDi2MEgRbbm7buRhZcnUzyrB7dmKpXWMZ7SonTFCjhSaLMvist71a2D gx87FHTEy6Ya5/J6yGSPAUNTQUoxrFAj+kEVOVLrH6MA8n0aTugTFwAX5MXZQp0ftEdi 3HwmxIxZzKzvYkqj1CmE5NaAdYecwOeS8wQ9Ws0vfJ48DDzxNWkFLWiv+CTYW/TMr5Tm 5btjPf3rRcHxohCn8USO01pkWVdZ+D7kYx/TCzqxLM68hKgtJOvuCu1JjQPOuOebXHll BCCYixowh+zpYO0b7PbUMCA5wsRaneOOTItirRyU0PWDLU7+JhfD0atOdFLHW5L81N2N 0S+g== 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=jNQmxSUZglVo4SGjDZ7CSwXshCAzDjDtd35drvc52JQ=; fh=xaSuZj1ajbxHn52v8M2SiBWQNwlImHP6rQYKWo0AWtU=; b=Xp1rLVgvkhTR8gZ/4mUqnDj0q4k0sDU/tOb1yYLKZbKKa7RwZhmof8M7bnUoQpqh6r VOtH7rEehVOZJgTLFCeotAeiEcsS/kT1xEiWYUPYYi6rYIcnkpQnjsUx9/dBHW9JnwPN 0zH4bRFypuCW5xPexCMqXzGPKAx1gzWzKFWJl7nGzIRLES77wbE2B3HGZh7Hb1MSZ8hd +XF+mdGqNg2+B1WTD7TylqBQ3BdwCC8Mha/f/Dr9P2Ektji4KTIScpV8FzQddNN9WI0/ CPolSLRZX1QtIPunuBXOU0HovOVSsKJBAGlaziAQRUKGCCUhUuKEwbUFXYKMz3GgpH9V mfUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wI77nr0f; spf=pass (google.com: domain of linux-kernel+bounces-19530-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19530-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 bh20-20020a170906a0d400b00a26f5e38a09si3135057ejb.892.2024.01.08.04.40.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:40:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19530-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=wI77nr0f; spf=pass (google.com: domain of linux-kernel+bounces-19530-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19530-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 6FDB71F22D40 for ; Mon, 8 Jan 2024 12:40:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6D79454673; Mon, 8 Jan 2024 12:32:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="wI77nr0f" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (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 34CE853E22 for ; Mon, 8 Jan 2024 12:32:47 +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-f41.google.com with SMTP id 2adb3069b0e04-50eaa8b447bso1583594e87.1 for ; Mon, 08 Jan 2024 04:32:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704717165; x=1705321965; 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=jNQmxSUZglVo4SGjDZ7CSwXshCAzDjDtd35drvc52JQ=; b=wI77nr0fG/M46zeUKqMY1KCm8rmuT4OmbGZZI9NALFWkY0PZ0A8eg4Ua6SOrb2rVKq bjNv2FpCoLozb1fetGQSyKKdPO5LDW/0LC6xuy83x/aPrZnOrpdn3XRGwaiWBX/FBsnm J1wt6q2En+uEk+eoymmtAHHfj+eb37r85+ZJL3c7XqqR77omFNqiL4xw1Wdnr7Qcrkgz GwrWMoEIvXaeIV43pvL8oPCicFlqqXOGUao0LUxYNuieVLaWL25LNsjJx/m6CmYY+eXS ksbb1nLdiWUlfcG5HNY4b/CHYUrUD34yHQ8O5RIpktPZkRKBQwykCwJO5tye4kr82quF DnHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704717165; x=1705321965; 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=jNQmxSUZglVo4SGjDZ7CSwXshCAzDjDtd35drvc52JQ=; b=Ag6hP72dxgc/hWPbiHFhgYXZ9nr7Jcj4hnOyeVi9hzmwQMj2IJi9HBlvIDIF6tpmLI +72K5UUG5nVksiLHwEzGOiPFgNh447tRXq68SGHDsaobQbgT687pVE7FA5Ays3j4RjyZ uR7YSVJkMdVFwjF4vH5xJlgt37N/YiN0gxyk4qpneEG8aZnpyXfPo9HsG2/lfC0zOge4 47RnGmMWY8eSck+exPk3qq8H5qIV4sYQDDo8G1FdbIUnqmcoTI2dTal0SRbk6u2jQvWx QWBWrYraErcwrB8MOtqP3fZ6+/jeoksbolLXlwdQkDKL/yWL5ReLcws9s/Z+beCMgNfX 6oSQ== X-Gm-Message-State: AOJu0YwtWKfEN8I4ReIesUstjd+kYxn4sH3xXSJ4n9lwVckPJlCoODKz jhBufq9cX2WuhMbWsEMflvy7jwmHiaAYW5GxyuIH+PWA3gA= X-Received: by 2002:ac2:58e4:0:b0:50e:62b7:153b with SMTP id v4-20020ac258e4000000b0050e62b7153bmr654345lfo.184.1704717165011; Mon, 08 Jan 2024 04:32:45 -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.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:32:44 -0800 (PST) From: Konrad Dybcio Date: Mon, 08 Jan 2024 13:32:25 +0100 Subject: [PATCH 08/18] clk: qcom: gcc-sm7150: 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-8-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=827; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=SneXieVlJPscW7pjYlUwK7ABSP0X3okszmbJYTG0dt0=; b=eaRYkxYRjkbNuCEQzJUl2KGLBnwFikuQ+kTndvPt1ihUlqeYTs6qwdLG9QV2IvrDzqz9pYK34 tN2D+vF6ovjC3xSMoXGUr24x7nRRf36hu06P4J04CMVqVGP2glA/1OY X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787525989055447641 X-GMAIL-MSGID: 1787525989055447641 Some Venus resets may require more time when toggling. Describe that. Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/gcc-sm7150.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/qcom/gcc-sm7150.c b/drivers/clk/qcom/gcc-sm7150.c index d9983bb27475..7c5596331c30 100644 --- a/drivers/clk/qcom/gcc-sm7150.c +++ b/drivers/clk/qcom/gcc-sm7150.c @@ -2918,7 +2918,7 @@ static const struct qcom_reset_map gcc_sm7150_resets[] = { [GCC_USB3_PHY_PRIM_BCR] = { 0x50000 }, [GCC_USB3_PHY_SEC_BCR] = { 0x5000c }, [GCC_QUSB2PHY_PRIM_BCR] = { 0x26000 }, - [GCC_VIDEO_AXI_CLK_BCR] = { 0xb01c, 2 }, + [GCC_VIDEO_AXI_CLK_BCR] = { .reg = 0xb01c, .bit = 2, .udelay = 150 }, }; static const struct clk_rcg_dfs_data gcc_sm7150_dfs_desc[] = { From patchwork Mon Jan 8 12:32:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 185951 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:37c1:b0:101:2151:f287 with SMTP id y1csp989908dyq; Mon, 8 Jan 2024 04:40:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IFliXgm1auuB6gUW6ybGYzp4TxV8J2FH2ExDG4hUihikeDKNv4vyEeE9iHYNsG5X7HH+FXw X-Received: by 2002:a05:651c:1044:b0:2cd:2c8d:b48d with SMTP id x4-20020a05651c104400b002cd2c8db48dmr1542304ljm.63.1704717642480; Mon, 08 Jan 2024 04:40:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704717642; cv=none; d=google.com; s=arc-20160816; b=obBkJxlxDCeddYtqJQuqv1TfTzYEhQedne46uVw4j+e+odM2z5qBp09aIXSMo67XdG vXMJwj5CAW7va8eucq8VPMRU0IdAmJKYN4ex7XW+GEjZHJ2pFQdnfviL0bCL1MRcMe0F CmVVRrsuOsgU7DoUvhEqFQCHL92x8rHvOFYt3+0oYg+rvHmVL5Fluc89Ey5K+XFLU422 Gu+v5Yj3jWjacvZanBlCSU/ra35UViyBqsGcdPXIM3ybMTrGbKUJlK6LOFA6/jR5eb3x /gSjXyzcCV0rNIlL+z8vsC7NKOk03H/V8bz4Zxdey29AU06+CEMhzDfyG4gVHXNVEfdd J4+Q== 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=es3sIhlGDf1CuQlkkc00Zg/vTP/uCDGZfoPs9xEXbjI=; fh=xaSuZj1ajbxHn52v8M2SiBWQNwlImHP6rQYKWo0AWtU=; b=t3zN9ObN1SaR+EuMr4E5dhry5apEh/oON4KlNf7p5n3ZZoXVVkioXUPJBjrhf5jxQE qgyDYwxNzYKRMC73FlZnuOfpjFXbEXBHqAO3dJeriAs4oUy4hTPsDNrt5kIjFGhs4UPu oklGTt+/rVmQDp6p8m+q6XiOSfFlB9DCs+ftXvuEGJFWY0+hyFCYU5K8dqLpqJZyw+r+ Mw70QE8EACzN9ULLV4Jp73WEwfrB6mCR5jwWN5FBsqC7ppLcaIuhE6oRqYCFP648y1nV zd6Ms6Ybs5q8pauu+YWdPeKVXfjprgWkZltc1CEbjMalkMWZ73sg/9k+f0ih682xHssU 4IkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Q2ID4Rxz; spf=pass (google.com: domain of linux-kernel+bounces-19531-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19531-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 u9-20020a509509000000b00556a77ae452si3224952eda.215.2024.01.08.04.40.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:40:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19531-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=Q2ID4Rxz; spf=pass (google.com: domain of linux-kernel+bounces-19531-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19531-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 D65FA1F22D25 for ; Mon, 8 Jan 2024 12:40:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0A14754780; Mon, 8 Jan 2024 12:32:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Q2ID4Rxz" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (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 E5FF153E3E for ; Mon, 8 Jan 2024 12:32:48 +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-f42.google.com with SMTP id a640c23a62f3a-a27cd5850d6so177026066b.1 for ; Mon, 08 Jan 2024 04:32:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704717167; x=1705321967; 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=es3sIhlGDf1CuQlkkc00Zg/vTP/uCDGZfoPs9xEXbjI=; b=Q2ID4RxzZ6T6ylVPGYVLhBhURr2F/lPM5rRIX/jYlh+Qyxp3Pi9u3N60Ljuj3Qti/A qNAqD1dQV046c6E7fPOL3ECv1QZgvll8hoDHsdDTulWiuRLMSB/czU8xj1kPWCzxYsfl 9tLAd+nZuCtwn68pJUC2CIRcLtXEK5UpiA9gIdbpW3ef9Mq4MfeTTglkDoObm7hgWj7z aPof2ZNlOHYnD0cKtI/IySdVsSQBMifHiDYkps8HSMXgqE5qWtHCQ8GDPuHDHmeZbzZu Bqh7/FCvWJijjIcH3aWqEcKC49wyw4fsRcQoI29P239TtBV++dXYorGppzC8b029UNSA aG8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704717167; x=1705321967; 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=es3sIhlGDf1CuQlkkc00Zg/vTP/uCDGZfoPs9xEXbjI=; b=oIDHYz/cv4hiXdTLUx5kiJxtLafa6oBkw2TiS8YAXb8SVnPPMLGqtqiYdY0h6/Tv4l Y1jDk6DrGp5vFJ8c8T61+2X1QxpGKCO1YkDf3GR3I0yjEbUZMhhfQY3GL9A1JD28uHW2 TyNG+FZ+XcABmzEm8Z6mps9TdQpCZPC+F9C0kRWFeh5djfTiqPD6OwskGvbUJ4KQKkWv ODbZsk9Yulor0lU0YV7BHa9uylkE+9AAFz83h4HjaCABEKjEM4tYz4KfnaPRhFj2x9A8 t5jkFdkNpeCLsDu3pTf00qAgOolNryZ6BJS+MPOgqalaVXb62oNe1AmGKS3V3ExzSwBd QpuQ== X-Gm-Message-State: AOJu0Yz82b6SAIZWMiXgqdDolZ0JE7swZT9CHcePid3nHeQ2o5ZVvIv4 mruazmBaF9HH+A+pmwxc8/Nd3lNmZyY1f2wVETgwO7EqTEQ= X-Received: by 2002:a17:906:3084:b0:a23:4c5d:dab4 with SMTP id 4-20020a170906308400b00a234c5ddab4mr1767674ejv.62.1704717166898; Mon, 08 Jan 2024 04:32:46 -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.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:32:46 -0800 (PST) From: Konrad Dybcio Date: Mon, 08 Jan 2024 13:32:26 +0100 Subject: [PATCH 09/18] clk: qcom: gcc-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 Message-Id: <20240105-topic-venus_reset-v1-9-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=949; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=SFFzxNcr7/jZTP37CQ/Z62GhXmTvaQlLKwbcTSRc9QY=; b=JD1Ygm/Xmp1VCRjGkFFYdUi08P66LYvPhYSD9nD6DerU5BdQtANblM/wlcB2XJSAU0MyNlDV6 Ic41jLf55iXDsAPp4NfdHZ5KRJG7c7eT5jpHYi2n7njSawy2F+EGm+X X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787526006751842071 X-GMAIL-MSGID: 1787526006751842071 Some Venus resets may require more time when toggling. Describe that. Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/gcc-sm8250.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/qcom/gcc-sm8250.c b/drivers/clk/qcom/gcc-sm8250.c index c6c5261264f1..61d01d4c379b 100644 --- a/drivers/clk/qcom/gcc-sm8250.c +++ b/drivers/clk/qcom/gcc-sm8250.c @@ -3576,8 +3576,8 @@ static const struct qcom_reset_map gcc_sm8250_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] = { 0xb024, 2 }, - [GCC_VIDEO_AXI1_CLK_ARES] = { 0xb028, 2 }, + [GCC_VIDEO_AXI0_CLK_ARES] = { 0xb024, .bit = 2, .udelay = 150 }, + [GCC_VIDEO_AXI1_CLK_ARES] = { 0xb028, .bit = 2, .udelay = 150 }, }; static const struct clk_rcg_dfs_data gcc_dfs_clocks[] = { From patchwork Mon Jan 8 12:32:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 185952 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:37c1:b0:101:2151:f287 with SMTP id y1csp990037dyq; Mon, 8 Jan 2024 04:41:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IEeGHI49d1Okc5Dg16t9A6qCti98JI861noispBUyGkDfRvFQIc6KJfbJ+G5KmsjEcfCDXz X-Received: by 2002:a05:6402:1c97:b0:556:c753:9cbb with SMTP id cy23-20020a0564021c9700b00556c7539cbbmr1845525edb.56.1704717660748; Mon, 08 Jan 2024 04:41:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704717660; cv=none; d=google.com; s=arc-20160816; b=Cfc4twynmN0K4CrTyNjfiqDNYjOgG0PVLqh9516Xdvn7q+8QmeGYv26aW4SUqZdwRp b6QM2tjRjjeu8MTEip02GZYFngdwT/p1tcpDGgvtKtu/h/CqJMWl9hBrMZw3zJBh+S6R B4VfLfAPgneRAREuv4EdedwkgcacH2Og5CiRKnfDWYPOAxtNgnF5OenNu8o/daNlcxUV 3DjLUqnaTdE4fptOeuS3iDjDOJSTz3l96o2g0dsWONBwGn04jNN5UwQZuzvdvE//azpS GfO+GIrDatM23/i8aCdyetBTMjKR43/xxas1xZDgFiqKw2MqPn4ImHxSSDmk7b58zQ9V GhDw== 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=5z5yUvqcicNviZoQ1keoobP6j7WXXaRy5LaqfnUo/lw=; fh=xaSuZj1ajbxHn52v8M2SiBWQNwlImHP6rQYKWo0AWtU=; b=w79FBL5rC7T0e4JQFbIFDPX+jjOFKExM/EB55SR+TtLLxKsvII+x/oL09ELLH9KJ6g bgo7+IIx2KXP6t42U8P+iwOFQ1B37ekrr6biCRiJPKJiI9SD7tLYY/pAR+5OA5+8cvhu zSuy/kuNqJE2Hl8Hh4D5WZKEgNQfVt7VBa1PndxRYtMw0q8pawbFnIm2gYwnGlsX+Svw MNSOEJZNo9unJ1UhnQykCHF+P7zcwyw3oVIo8cBCZTNF8aXMHoRiLhBzfWTQmAatbwXP gBgu6c56MFRO5gzaipiUAhde6gJr5b9YDgXCesdU/VpuYv3SxkFKtjQcXPkXMWyOw7Uv n6nA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fLBEcKd7; spf=pass (google.com: domain of linux-kernel+bounces-19532-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19532-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 u9-20020a509509000000b00556a77ae452si3224952eda.215.2024.01.08.04.41.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:41:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19532-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=fLBEcKd7; spf=pass (google.com: domain of linux-kernel+bounces-19532-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19532-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 A90401F22BD1 for ; Mon, 8 Jan 2024 12:40:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A03CA54BE4; Mon, 8 Jan 2024 12:32:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="fLBEcKd7" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (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 6F19B54669 for ; Mon, 8 Jan 2024 12:32:50 +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-f47.google.com with SMTP id a640c23a62f3a-a28b2e1a13fso172276866b.3 for ; Mon, 08 Jan 2024 04:32:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704717168; x=1705321968; 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=5z5yUvqcicNviZoQ1keoobP6j7WXXaRy5LaqfnUo/lw=; b=fLBEcKd7Fq7C0IKeAxplyYrLyzgPj2NU+MTyaWm/02rMr4HWV9EfvzkQ5QqzsljemL PHm5psUcByiWJ5rUbFgtrDUf9OwXDzuFIlBdTZtdsVfur+wB585qDMoe1MXcBWIdLPNa QkiCszoWq+go6CeiGLUIGOfJEk8DasnuifTca+EfsD+xiBdGP13NxuBqSVXmteMIlV31 SzROCM3OrGQ7l7jHGSYP+xsMphc315li9qhp9QjQeXtI5C2lkrKFDUQWgGB1Rr7tAp1E mDIE6+LDjcxAF4cmzN7ty3qCcHsPZPzv6hbS5s+3Z3XJxz49/KFbfaSKG9e8qH7H9Vwf BFQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704717168; x=1705321968; 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=5z5yUvqcicNviZoQ1keoobP6j7WXXaRy5LaqfnUo/lw=; b=BXQ2c7FBRSLaHRMX4g24Uk+X5b802GPzywfUtjSQf0sLryYe4ogLZbTjttHjbhGSKG S71vlexYUO+ijVmRLNbZnkqBkApgNntMfjnj7xza+w6NCPbmaMY8TiJ6onztkZ+pRdk9 u/XEElQSxyW565TWMk46HUxph9LAs38vvpMU0RFpx7REIPv9o2WIPZkzCjt99YXBMpEn Q7UUuVnyq1INv+rYE9NV+Sg1NBOZifP44GxSu3UWZec0rVDF5uvwzsxcQhht6ALFzWGi GN36x886JKwKXh3dXMqsQXBArqb5urWWzgfL71/L1aNBXpHp3cwjtNfFQi90qSbsL6ft PcsQ== X-Gm-Message-State: AOJu0YyrZiOrhc4WIeEBvvcOFmNUW1q4jP7sLc7wuilPBddTmY8zC6Xk tE8ad5/b28m2J+1S//AFuVSJUtm/qMzFCBiFSAkXHaMbHRs= X-Received: by 2002:a17:906:51c2:b0:a28:fb5:4389 with SMTP id v2-20020a17090651c200b00a280fb54389mr1477784ejk.0.1704717168568; Mon, 08 Jan 2024 04:32:48 -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.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:32:48 -0800 (PST) From: Konrad Dybcio Date: Mon, 08 Jan 2024 13:32:27 +0100 Subject: [PATCH 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-v1-10-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=941; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=OLPxtvXqfSyhCTWcq+01XHn2DaYTX7g8uZCGKb6FcxQ=; b=6TL92acn8ty2HTUqvb61CLEe8msKXhlTDJUT1kf+Uz4x2+Im+mdbxiGKI++huH/CS3MYX3Wvw wKdKTkNJxbaCXwScNGqE9rqj1mJ0hVcWk005hsHdGlFe1lS/+kAP2Ku X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787526026028833757 X-GMAIL-MSGID: 1787526026028833757 Some Venus resets may require more time when toggling. Describe that. 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 }, }; From patchwork Mon Jan 8 12:32:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 185953 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:37c1:b0:101:2151:f287 with SMTP id y1csp990185dyq; Mon, 8 Jan 2024 04:41:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IG8mI9FGSE+Cn56GsW9PXngpr2ZrvVIpEXal1ML41QBsedeWb6mgIXrzPkf36o/RcsUg3DP X-Received: by 2002:a17:90a:9281:b0:28b:f9fc:6cd0 with SMTP id n1-20020a17090a928100b0028bf9fc6cd0mr946785pjo.51.1704717675470; Mon, 08 Jan 2024 04:41:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704717675; cv=none; d=google.com; s=arc-20160816; b=aQHGgQGHdJ8b9tknO5OPPAF30KvWMPN3CSumw+GfzeWTT5RFlKnzDyiOqZiT1RLCSB GViMDgS/gaouCeRca3ssuWTM/9+DKvwTrw2+wWKqjwCwgiyMRneJNBf7OIgM+ojNhw7I 56oIP6ERTq8bbQLc3G4W+DJkOM18wiBRepIUFO55c5ZnrKTWXebrGSglysHt3uwjJATz UXSXye394xcdXoTxn9vIHsdJa+gER3OegTyPxJb+mrgb3gyYBy3Q7/SP/RDnBcEgbKOv dSGUZc90g2pExxCHb9kYH7p8JENUIwquI5vq1pdaLyr+Onmu3H9R3kbS1O3cfnTXuWvp HDGw== 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=htl20WivVJFeJAmwM5KBpciVYSbljcJAemXWAsEgyN4=; fh=xaSuZj1ajbxHn52v8M2SiBWQNwlImHP6rQYKWo0AWtU=; b=0OsoUM+u2YOUg9eNrKQNiwJnexfjfAqQKPMFm4zI5aeTHWnXBayUfbfbzPzSwLQN1X fQH7XcHScxSu+4AS3dNQRvs1JMrh4GOfMBiFfPapFzHBbgzzBXJ1oPCxAZ4vwmerq1CD OeeFhz78SX+nQ1SB+GgHLG1vmK5gMSD+8D/HOxAZqd6e6T9KyL0Qmx+DBeBkZA/dMOEA XCHqcyhgKctaF6QD+Eoh2zDTch/O4nivemTL5hyr1eT5RgRY2h5yGJYQ3xz1DfU7MUxO uLu1WblgS8UN4UaK3k3hahTAbmGnpVJXjn5AXTHex5Evpj4w+qpArZrbThdw0fKH/vDd fkxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="R8zcL/6l"; spf=pass (google.com: domain of linux-kernel+bounces-19533-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19533-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id x4-20020a17090a9dc400b0028cd9049885si5586683pjv.67.2024.01.08.04.41.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:41:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19533-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="R8zcL/6l"; spf=pass (google.com: domain of linux-kernel+bounces-19533-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19533-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 1D123280A60 for ; Mon, 8 Jan 2024 12:41:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 51E8154F86; Mon, 8 Jan 2024 12:32:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="R8zcL/6l" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (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 4189E54677 for ; Mon, 8 Jan 2024 12:32:52 +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-f51.google.com with SMTP id a640c23a62f3a-a28d61ba65eso183217666b.3 for ; Mon, 08 Jan 2024 04:32:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704717170; x=1705321970; 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=htl20WivVJFeJAmwM5KBpciVYSbljcJAemXWAsEgyN4=; b=R8zcL/6lzyjaQYwEBD7zWnhnUffj9o2lP8II2DVFe/pEGeSl2p1/BWMT73+RdQwcT8 gaxhsZyc5C1BONXnwP4xp3ktAWBx49AZdWrcUre+GedzjWB9SbVFvS+g2WFLgtcInupl RIqTa/ckRFv8huV2QEACmr6w89vif2LwG/JuPzkn1mfknAOkZb5rpRg9wM0+A5PSk3gH b5JatJwzlj+RY24oLrNBRYjMg/AItpGUAiDuSxA9QSSXvGBXAg2LQrZBdnMmAmdGewjU zfw2KIXOLFdS55/3CVNPduXibVRlaJv4x+ZlzQzYZ7gUDjFgkwzc7BeI4JhmHclH2T2T 6TDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704717170; x=1705321970; 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=htl20WivVJFeJAmwM5KBpciVYSbljcJAemXWAsEgyN4=; b=SHTkEi+Gom3cKWtHkVFajb1RwYINtZ7ktA4+moPMfrLwymUX7bbPWRHOstYWjc4XeX Kr3KT9QhkIlb2OR1ruqhUYtVCY5BbHWhaADxxdm/SYSq2kqs/JY/gWCcnE/YEUVEUK4V kQyNIIix33cevEd+9eyfWsN48W2WvHtA4dObkLyzGCRH7GtlQH7IG0vHO8QHnXkNTQjh fnQtX4JjKo3I5jCqP8luWoBAyClKvI/qofJfgeyxSh/mt3+8kMZsvZEs+dqLF7aR9ywn rkTDHl+UwyS3+bkNDTRs1dGz7CWWy1/8LfhBtc8be7s+Kh1lPgq1feKWU9dRMR132Lka rHYw== X-Gm-Message-State: AOJu0YyGyIzEbBDUgfZHE/bQkQlhjMmEMZBk8UZEwOf5EX1Wzx7ZA0Ot O3hMd3f56QLlBLixQqoUO3O77WDGYn5G/N9x1LwuVbJOcYs= X-Received: by 2002:a17:906:a41a:b0:a26:9876:ae88 with SMTP id l26-20020a170906a41a00b00a269876ae88mr1024074ejz.73.1704717170374; Mon, 08 Jan 2024 04:32:50 -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.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:32:50 -0800 (PST) From: Konrad Dybcio Date: Mon, 08 Jan 2024 13:32:28 +0100 Subject: [PATCH 11/18] clk: qcom: gcc-sm8450: 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-11-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=943; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=U2C43YGEbbHUs3MA9UmdBCau40b0NyWHab0tGfzoC9s=; b=A0rKhsuGQQOZcx5LAU4J/wUenj8yoazvEda15d0QtsVG79rG6nzGGVk/I/qtfYpoN5kkA9f3K dZHoWC06ChrBZUjUkiweRsC3GELH3oRNazgR5apzZLciYG8MmCclcbl X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787526040853279616 X-GMAIL-MSGID: 1787526040853279616 Some Venus resets may require more time when toggling. Describe that. Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/gcc-sm8450.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/qcom/gcc-sm8450.c b/drivers/clk/qcom/gcc-sm8450.c index 563542982551..1825b3456dd0 100644 --- a/drivers/clk/qcom/gcc-sm8450.c +++ b/drivers/clk/qcom/gcc-sm8450.c @@ -3202,8 +3202,8 @@ static const struct qcom_reset_map gcc_sm8450_resets[] = { [GCC_USB3PHY_PHY_PRIM_BCR] = { 0x60004 }, [GCC_USB3PHY_PHY_SEC_BCR] = { 0x60010 }, [GCC_USB_PHY_CFG_AHB2PHY_BCR] = { 0x7a000 }, - [GCC_VIDEO_AXI0_CLK_ARES] = { 0x42018, 2 }, - [GCC_VIDEO_AXI1_CLK_ARES] = { 0x42020, 2 }, + [GCC_VIDEO_AXI0_CLK_ARES] = { .reg = 0x42018, .bit = 2, .udelay = 1000 }, + [GCC_VIDEO_AXI1_CLK_ARES] = { .reg = 0x42020, .bit = 2, .udelay = 1000 }, [GCC_VIDEO_BCR] = { 0x42000 }, }; From patchwork Mon Jan 8 12:32:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 185954 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:37c1:b0:101:2151:f287 with SMTP id y1csp990362dyq; Mon, 8 Jan 2024 04:41:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IEIMEippKRyuTxsTDyNJOhr6VP+k0qItDYPugulhDtWJXPPC/sQ7I3qvVZBisLEMX0Uc+9F X-Received: by 2002:a05:620a:1204:b0:783:25eb:e049 with SMTP id u4-20020a05620a120400b0078325ebe049mr645927qkj.141.1704717692059; Mon, 08 Jan 2024 04:41:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704717692; cv=none; d=google.com; s=arc-20160816; b=u2Ir4G1VHFLl3BPzNmqjC2lG1QoRZrFv8xMrgu1wKn4cvZjVhBlK6NmPq4GM2ZCSqQ agsaI8ij3NYxrjhr2+W96y049asPCoFLmw+fkKzlym2RO6eqn1J8AjiEZUFiwX1GrKHq 0rU8Nz4yA0yPF3gkh3a7aEW9oT1WOIs0qOkJMV5xv6rlKHRANkwcKxsXH5Ud0z75tC0B R922BeFFGfQovYrvKSV7z2fqoASIWpnlQs6Curu+xx3BARL8U6nOFHm8prYb3iyPxLEx 6R1w17kPpGtSoJoeFdhuLC+Ge1JTbabytOT2koNhiD+sdodjYMo6Oq3FXRA+7gbGSbzG RJwg== 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=1vLhCr+SPstjxHdQZgARLGaDcWp07I/chnTOLHwQLC8=; fh=xaSuZj1ajbxHn52v8M2SiBWQNwlImHP6rQYKWo0AWtU=; b=k+cVNpm8TisxmAlUS9qYHg68Yt5tRT+cW5AeNkPKlAP6EjudZfh/MfAdpSGyCsIkO5 roQVIfzpPm+07IgI1QE5EEJpxMITkOn463pKXpf91s01N0nmHPwjCV9rHwQ3rsLbhb0s X9F9pb4fFB8IQSjt2LEtKMRJfnN4ZIDv5vFB5gdI7pTjH9HFW4V8I7WjqmhAc+jSRARb AkSdgmHycq+fmlBkZcWb2vEjUrfu46l2vJftTGWkxnONmqDzTq6nnLEs084a2K1/Tx/y meHMha/UPqUF7nvLVdlPd6p1YfFTLSx8ggMlVO2uQDcPP7VDKK6Hdsc3HVOZgBmvIcIo O4TQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MJqwYxlw; spf=pass (google.com: domain of linux-kernel+bounces-19534-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19534-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id sq6-20020a05620a4ac600b0078317b4ef86si3934699qkn.741.2024.01.08.04.41.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:41:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19534-ouuuleilei=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=MJqwYxlw; spf=pass (google.com: domain of linux-kernel+bounces-19534-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19534-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D4C441C22384 for ; Mon, 8 Jan 2024 12:41:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EB2E254BE0; Mon, 8 Jan 2024 12:32:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="MJqwYxlw" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (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 E87BF44C7A for ; Mon, 8 Jan 2024 12:32:53 +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-f53.google.com with SMTP id a640c23a62f3a-a28bd9ca247so162865966b.1 for ; Mon, 08 Jan 2024 04:32:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704717172; x=1705321972; 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=1vLhCr+SPstjxHdQZgARLGaDcWp07I/chnTOLHwQLC8=; b=MJqwYxlwQygICwyVIB2pu3VTH5MFmqVCWq8hkuth7T2a8+ujfvLLtCoGDQyA88jgtc nmUDc0h+H+M2WsOtRcUSS1XplzXgXEUnZMoJVLBSO5BI0NMG4XeShFSekKfGRk4pT4WT qjorgGo6HPAG65Vu2JhHVYNR1s2jN33M6Hj719rnPSFEgdJGxl9XcIFrwWB1TqjJa2WT G+e/pp1edVfe1JgLYb6LICUlS9l2TwN9zifymKKh1Nv0I5b4u6/rZAyaKzcFAM8Voer0 Sq1ORYYplNd+HDvQWijWfgPJr7uIEvj/62MRnDWNI/zjYg2wjoJB+Mk7TDn4xSRgUiaT 9XHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704717172; x=1705321972; 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=1vLhCr+SPstjxHdQZgARLGaDcWp07I/chnTOLHwQLC8=; b=v1x32rKn9QtY9ofhILmUF0VXiddfj9QfmqYKONNctLnPJPJ3Is8h40ujQV/a9E7tka al1CQtNCiHMp9q75PA5r/kVRJns57pNOQCjzCGc3kI+eFCUhwhUGxWs9OzLYD5PNsbbP l8bpzaPAxSLXWc+ia7Tb9rRj35r+BE2A5Mk09tDpLLYXiugOPVa/smxTpvzlUqWKXcb9 XgG5AW2HWzpONqgZRnd/sac3R01N8bju2hb5nGimXCetOq0Jvdq+i+7oSTAcvXwzETOK a/276PanMgVFSUQIpCvLWESKSFsyEt70RC3RKOMBrw5IZCHIOmivYE8WM0vWF1ZrMG+1 18Cw== X-Gm-Message-State: AOJu0YySo7f3/7wTmOsvctrAMrkHkGxiMSJ0JMIAY+Z3xLz/Bzm0p6jo ljmapfFnfiWW/vFbtLPKafpCHeTdIX0gKHvFts1JcTD0U9c= X-Received: by 2002:a17:906:b04f:b0:a28:813c:78d6 with SMTP id bj15-20020a170906b04f00b00a28813c78d6mr1478830ejb.45.1704717172099; Mon, 08 Jan 2024 04:32:52 -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.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:32:51 -0800 (PST) From: Konrad Dybcio Date: Mon, 08 Jan 2024 13:32:29 +0100 Subject: [PATCH 12/18] clk: qcom: gcc-sm8550: 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-12-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=943; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=P2t9CBXAvKAGt8inkQzH2zUbbJBDolk9ICGghkJynHQ=; b=trSwEIKyVfYX+RmgqG9/jg+Bid1vwLiLuUErE5laeeYrWo3QeO7mqYAZjK4zgrz++ge4kPk7X x1AS523fSMHCvrTR6Ya9NawJ3K2ddAIKN4MLzF1SNMorHbbAUvZiAgM X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787526058583290699 X-GMAIL-MSGID: 1787526058583290699 Some Venus resets may require more time when toggling. Describe that. Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/gcc-sm8550.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/qcom/gcc-sm8550.c b/drivers/clk/qcom/gcc-sm8550.c index b883dffe5f7a..4cbc728f5c72 100644 --- a/drivers/clk/qcom/gcc-sm8550.c +++ b/drivers/clk/qcom/gcc-sm8550.c @@ -3276,8 +3276,8 @@ static const struct qcom_reset_map gcc_sm8550_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] = { 0x32018, 2 }, - [GCC_VIDEO_AXI1_CLK_ARES] = { 0x32024, 2 }, + [GCC_VIDEO_AXI0_CLK_ARES] = { .reg = 0x32018, .bit = 2, .udelay = 1000 }, + [GCC_VIDEO_AXI1_CLK_ARES] = { .reg = 0x32024, .bit = 2, .udelay = 1000 }, [GCC_VIDEO_BCR] = { 0x32000 }, }; From patchwork Mon Jan 8 12:32:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 185955 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:37c1:b0:101:2151:f287 with SMTP id y1csp990493dyq; Mon, 8 Jan 2024 04:41:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IHyGq5g635WOv9RAomblGK9/xdLxBGRsHn7LembQEWwtIruO0aZtORveyBxJgDx9ShoiDaE X-Received: by 2002:a2e:be28:0:b0:2cd:577b:6c9b with SMTP id z40-20020a2ebe28000000b002cd577b6c9bmr312891ljq.213.1704717708355; Mon, 08 Jan 2024 04:41:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704717708; cv=none; d=google.com; s=arc-20160816; b=VJnno7N0a+VP8AvzSNvuWCLN0kPhtwWIQ9/5f8wCbTjYGLZ94IcBeH/yZ2h2kXx+tI 1V+31MdBILXYPdgmRyMXFlpx+43WyBfxpGpA9EfrY+wbG1/iahlRmuBxhRFFaJLcXevC idZdXJEopZbeH/GVzBDF0jVlRkKI8r8WKnNPWqTnbSjL3f59QvxTV36tjskcWRCyZ4dJ qqdBUxQOMDoLYnF3MXERJUiLEOyCOv4F0nt+mBbgpVclEBOLIG1L2MRJqW09xwY3T08Y cD+XaXo7Qofaq+orXeeQsW2tLzhBMaZgjrkjJTNkwnUYJ2FEvX4szr663zDUDbRCwinp vkjQ== 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=O2jFsk8miEcGzRv0SVas60MpuNUWFzdzdQXxQ+W+fTI=; fh=xaSuZj1ajbxHn52v8M2SiBWQNwlImHP6rQYKWo0AWtU=; b=EV/TMWheM10hzgpeTmwjat1fCCmFoPSQoX4X2ddVY7B3LHIGawURE7KoXkPnFCKH0q VOmAI6D15tbjK5gBVbStsjgIyZa/kVfBJ9mPKui/XRbcrSxnGjLUH8qQMkBQgNQmj/8G RjeuPGl/vvLLiAPTi/iW8AZNDbR2kAmMNJIfH35YkSkL0jEWpbkEfjDPbvE1ut0+WJgW oEpwkncn7gcxmGJQGGedWGJJt+54aaoLfj3vzqXQhAZB2dVS26MvwlA7WsYO8Dl2erao smL4mR9VcW3a5w/WyLr5JLR+/J6C1mF+57Te7vttjXQw00Sq9X6HHyHK0kEtqd8AP8DI yz+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=n6AE8bUR; spf=pass (google.com: domain of linux-kernel+bounces-19535-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19535-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 v11-20020a056402348b00b00557ab3b5e62si967345edc.233.2024.01.08.04.41.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:41:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19535-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=n6AE8bUR; spf=pass (google.com: domain of linux-kernel+bounces-19535-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19535-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 ED2411F222E1 for ; Mon, 8 Jan 2024 12:41:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9FFD854FB9; Mon, 8 Jan 2024 12:32:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="n6AE8bUR" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) (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 9857F54BF9 for ; Mon, 8 Jan 2024 12:32:55 +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-f43.google.com with SMTP id 4fb4d7f45d1cf-554fe147ddeso1978094a12.3 for ; Mon, 08 Jan 2024 04:32:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704717174; x=1705321974; 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=O2jFsk8miEcGzRv0SVas60MpuNUWFzdzdQXxQ+W+fTI=; b=n6AE8bURieBlyr6+kAOYhpIhlhCJqx1tV4EUIAl9CaXQ6UrgNJtGz+T7t+9I2BVKos yfrb0Ak3+8wKlHt5KjmxCQXSQmYOdAU0HPEW/i1nwqMEZb4jFiZx1GR2LW1bMAw0BIQw MWdOFiAmu9B9oNFGrlcJ8my2M0V712AjJr0EK2yTYQk2AJWJLKhO3kXCs2PukeEEtBPL r+a4at7aK4n5+GCBVLsXjYGXtE/Pfq1HS3O26bygIvdfSDMPwDBJZExQPEdQp/1MGxpI +f2qlD3tfKvmQ4qfOnMdo5F/Vw4F06bI8Q2kin77K96j9ymLLNS36lOgrHdrzd777HPK G9kA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704717174; x=1705321974; 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=O2jFsk8miEcGzRv0SVas60MpuNUWFzdzdQXxQ+W+fTI=; b=nJcq2upeuLctzBJlETGGnh7Dr+fw5BxupzZi9qh1UPqZJ+5La3xUxFsSxkYkWGN7RA 9zQuzalbq3rTliLi+e9i/SUK3uC10PHkGo5GqTY1ZJiJoOqDEEowTyuBk5OdEhgaK/wU LheUHwDrWOTn28yMr7DVqoBUF4drSZWS8lJjH4WDI9UZtxA2Wyl1MnBekeUDH+AHKE0L npFVjPdgH+H3wxnuLxqzfdnjJdcwjTyiYMIx5NdyzEoIxhAsouBdLycr+gT6dBV0lsQI TpoiP57vOowRcq/gqyjLqUHDCRTgwUwJ72W6lwE2JxFZf56ce6JKGELK3k6CxdZfPKTw JZ4Q== X-Gm-Message-State: AOJu0Yx5n5BQ9woj+EXIvT8EGRKDtK9F2bVw5br0G/yMTbEFeUY+fhSQ vtv64c0ieSbx6sF2Z37bauyE8tYRJRRxGqZ62YJiHKMUdrE= X-Received: by 2002:a17:907:9444:b0:a28:9d0b:e5b7 with SMTP id dl4-20020a170907944400b00a289d0be5b7mr968685ejc.128.1704717173869; Mon, 08 Jan 2024 04:32:53 -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.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:32:53 -0800 (PST) From: Konrad Dybcio Date: Mon, 08 Jan 2024 13:32:30 +0100 Subject: [PATCH 13/18] clk: qcom: gcc-sm8650: 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-13-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=936; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=dafvtEWyd3ePEI1J3OalDI7TTuNFzH14q4snLe82PJg=; b=NI87ryvzv//26vUgahL2fypxMM744QQUuJQUfZUCGcZmzgWGN6CDcXr3QEvKfQuvcpUunnYTc 4Mv3h4PQDSCDfaHI/kaVMhPgTpKgl/5gErEXGmuFmOHKNBB5GBu05K6 X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787526075908637752 X-GMAIL-MSGID: 1787526075908637752 Some Venus resets may require more time when toggling. Describe that. Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/gcc-sm8650.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/qcom/gcc-sm8650.c b/drivers/clk/qcom/gcc-sm8650.c index 9174dd82308c..63becb03cd90 100644 --- a/drivers/clk/qcom/gcc-sm8650.c +++ b/drivers/clk/qcom/gcc-sm8650.c @@ -3734,8 +3734,8 @@ static const struct qcom_reset_map gcc_sm8650_resets[] = { [GCC_USB3_PHY_SEC_BCR] = { 0x5000c }, [GCC_USB3PHY_PHY_PRIM_BCR] = { 0x50004 }, [GCC_USB3PHY_PHY_SEC_BCR] = { 0x50010 }, - [GCC_VIDEO_AXI0_CLK_ARES] = { 0x32018, 2 }, - [GCC_VIDEO_AXI1_CLK_ARES] = { 0x32024, 2 }, + [GCC_VIDEO_AXI0_CLK_ARES] = { .reg = 0x32018, .bit = 2, .udelay = 1000 }, + [GCC_VIDEO_AXI1_CLK_ARES] = { .reg = 0x32024, .bit = 2, .udelay = 1000 }, [GCC_VIDEO_BCR] = { 0x32000 }, }; From patchwork Mon Jan 8 12:32:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 185956 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:37c1:b0:101:2151:f287 with SMTP id y1csp990617dyq; Mon, 8 Jan 2024 04:42:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IGY6t2SZKopceWsMfK9qU0XgLk1hH8hK59So7fRvQHm9SZOpkbh2Jth4XJ7ndNwRVUlUN4E X-Received: by 2002:a05:6214:c8b:b0:681:a12:2afc with SMTP id r11-20020a0562140c8b00b006810a122afcmr879914qvr.61.1704717726341; 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=iOK4vMtR7YuIBspTIhLF9JjpLjSnWivrU84FbSNcIwprGlOfIoynrpljpUhIGWaynV HROWpTvjNqnN2NSwXaiFi8Gd0W4AA/7d1zn5IFkbcYelUAdp3EhlGur1hESbBemloBoX 5yQnMdk5NmyDB15qn2xdIC12EMDa5I7B0ZM12kPJUP2vVdxPf0Beb2KxSucUb7qgtNVw Xuv3SEW7uowfkUQj4fNmek0gTAJBaFbuiS+DK+QYHSQKcb7ySkBxaZK2yOA/hPa0PJft SA8Qnjx/RKdMcKhpZ4MgJ5nIMrYtIa819BZgGYx0FCPUbyZ0Rk2LHeCszEKydghlT59v 4eHA== 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=orEW3CZzVxt/2JDSHmVp7zXCvhfiQJb49HDxyFFsS+w=; fh=xaSuZj1ajbxHn52v8M2SiBWQNwlImHP6rQYKWo0AWtU=; b=j+DYG9499eVcLrb7QUvUFBf7eazG5t5XsRMu34rANY+2H2rxRQrtYbJYWIodDcA8kL ADPSnDj1Znh3K3yIU9fP5ttvz5wWApDSt/pHJwaeN5SiccBqL0eqt4dovuNdh8u/aq2Q b8MVjZEB2VbAIeR9VfWs1rQO+FvbTnvm12yBTSL4tZ7qVJ3M2lKhFHqGPWLBKley6U8B 8v8ynlxVnVahTA2oH3PcS1r5iiATrCmfLObUu+bfRoSE+sGkdG/77gFgEomeq7yOW5RT AWYSnTiEJdx/3MEAmPNLo4yji5OxT/hORG0wvCO1HRBXwpSHd29vHTvcHKoRsfBKpVpY g1WQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IQs2puFS; spf=pass (google.com: domain of linux-kernel+bounces-19536-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19536-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id m9-20020a0cf189000000b00680f70d3984si4761289qvl.539.2024.01.08.04.42.06 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-19536-ouuuleilei=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=IQs2puFS; spf=pass (google.com: domain of linux-kernel+bounces-19536-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19536-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 2409B1C223D8 for ; Mon, 8 Jan 2024 12:42:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E0E9855782; 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="IQs2puFS" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (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 B632454F9D for ; Mon, 8 Jan 2024 12:32:57 +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-f51.google.com with SMTP id 4fb4d7f45d1cf-557dcb0f870so299634a12.2 for ; Mon, 08 Jan 2024 04:32:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704717175; x=1705321975; 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=orEW3CZzVxt/2JDSHmVp7zXCvhfiQJb49HDxyFFsS+w=; b=IQs2puFSkLIAfaVGiSRp30E3ty/fn0NFSqNNm523ZwDf+y1hJGIniyx83JF9NQkQcD q5I2WEGZkLWa6aYIrM0TzvjIle1mOeZRygRNFTJFHiOKcR+z82GDsXoi6J01Exh+68o9 h2TuZWm20LT2Pox0mRgjwTT0qjBOP9VVn3JAUvwIJ4m9mcSpc0ZpNMvSpUFaDnAcB1D/ XSVhZYLw/fSsLRWasq6RboSfdSlYrGjUBh2j9NvExvmNVxQJ6IT8VP7hz/6M5Y68702y Kj8ikk09VcqegxOaXCC03gz7YuW2xngZ1wjVvnUuoGFeLZnXIHa9gKeMUsolSeIagvu9 gSLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704717175; x=1705321975; 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=orEW3CZzVxt/2JDSHmVp7zXCvhfiQJb49HDxyFFsS+w=; b=VRTup5WcVdoGbVNUrQbMsD4LNFLsVjKf6O0ObJYLjfZbH3wukdFcUwzEobLOqEkRGb mSMphi3rl37exEKvhtGe6S3jRzmokjM6ghkg+NHD3Tts4UJlWPiCIJ5WeMGilCeY5xb2 zdmxhI2Pk0d7bnw+V8OMz6kvXH8/aIXDJxbBMO9FIqUAWfa3kKw6TwNUFA5seTFrUUfw oPHw2UVqKNGtHz/tcoPCGO2t38xdR7VWnu13U3JBMMnnwu23KAEQ89cK4wLxCZJUghxG dAW/j2YWY54bi1AK69eaEGnmgXYjTUVwyq9kWK2D5eByoDT9qWF0kGCkkKVggG2vpQma vZjw== X-Gm-Message-State: AOJu0Yytnz0jm9w144OKLkYKcSvH9upNAkcuR7e0+0+SqG0CREC5oxUs iFkfuVkozzjTJutJgLBb/sJ29bK85mxwn1ZolepriAD8tsA= X-Received: by 2002:a17:906:7c83:b0:a27:a236:8be with SMTP id w3-20020a1709067c8300b00a27a23608bemr1735438ejo.3.1704717175772; Mon, 08 Jan 2024 04:32:55 -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.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:32:55 -0800 (PST) From: Konrad Dybcio Date: Mon, 08 Jan 2024 13:32:31 +0100 Subject: [PATCH 14/18] clk: qcom: videocc-sm8150: 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-14-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=851; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=vIWWe4F0QFAfFwANwsubp7EQt8hjOIin+CjR28FQWLE=; b=389KJlGYvuA+BfdullvLtbyrqDDJmucrxQl7l9ry810m5jTGduSrtabxXx2licUEVOwJZYSK7 X4b0VokWRZCC1Frf0C0nHnc7OtfKmRYHp/dEeMz5wCKdo2kVK+TB+J2 X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787526094482316945 X-GMAIL-MSGID: 1787526094482316945 Some Venus resets may require more time when toggling. Describe that. Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/videocc-sm8150.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/qcom/videocc-sm8150.c b/drivers/clk/qcom/videocc-sm8150.c index f1456eaa87c4..bead5186a5d6 100644 --- a/drivers/clk/qcom/videocc-sm8150.c +++ b/drivers/clk/qcom/videocc-sm8150.c @@ -215,7 +215,7 @@ static const struct regmap_config video_cc_sm8150_regmap_config = { }; static const struct qcom_reset_map video_cc_sm8150_resets[] = { - [VIDEO_CC_MVSC_CORE_CLK_BCR] = { 0x850, 2 }, + [VIDEO_CC_MVSC_CORE_CLK_BCR] = { .reg = 0x850, .bit = 2, .udelay = 150 }, [VIDEO_CC_INTERFACE_BCR] = { 0x8f0 }, [VIDEO_CC_MVS0_BCR] = { 0x870 }, [VIDEO_CC_MVS1_BCR] = { 0x8b0 }, From patchwork Mon Jan 8 12:32:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 185957 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:37c1:b0:101:2151:f287 with SMTP id y1csp990748dyq; Mon, 8 Jan 2024 04:42:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IEvkp69PPIKz8+kwcsYuGMVwd27EkZuszP6OnmJIc9Gfn4km+/ESKyWBU5yhM2r0QBNZoBI X-Received: by 2002:a05:6808:b38:b0:3bc:238d:cc41 with SMTP id t24-20020a0568080b3800b003bc238dcc41mr1204661oij.118.1704717743398; Mon, 08 Jan 2024 04:42:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704717743; cv=none; d=google.com; s=arc-20160816; b=E11oTIRXQY4g6PdfdEvm7ZHZLjv0PjNNO+Wykbpqo6rL7XMUU9qh0kIR2IdzWkGa3N dPaOjb7FfQLyVbyh+BeTj+mxtoEfUTWjlrlFej8rLPJbNQwUNcwpU22yAwI6vFDVmD4V PQk7JdS55syc8KBHWZF4v4RkYS6DN15d+/5CA7NRMupuXeUVnvfyiLxlkh3bmPXw4otG o0iIkoFNADhyaR+RkpFMsphHanFEG9aqNZWmaugSVL1TtJdqyioc049Mj+VkxVCRGNoq DxIVR68gy5ouzpATmBV6ChYG7pXgDIuQ9W/pOrAdjdO8eZJaIj4AzUiy989xAAZEP1IY TPQA== 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-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19537-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id r3-20020a0cc403000000b0067fb9bb71bcsi7468216qvi.529.2024.01.08.04.42.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:42:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19537-ouuuleilei=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=b0xjjUrj; spf=pass (google.com: domain of linux-kernel+bounces-19537-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19537-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 311E01C21200 for ; Mon, 8 Jan 2024 12:42:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8A4C155791; Mon, 8 Jan 2024 12:33:03 +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 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= X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787526112206516442 X-GMAIL-MSGID: 1787526112206516442 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 }, }; From patchwork Mon Jan 8 12:32:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 185958 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:37c1:b0:101:2151:f287 with SMTP id y1csp990890dyq; Mon, 8 Jan 2024 04:42:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IHcuJkHm9GFGJ+oZycqGS3Wc45wJLk37ogUVf+pZZjVOpuniNmHT4aj7RNkDXP2iAvIf7Cj X-Received: by 2002:a17:903:25c2:b0:1d4:42aa:fe6b with SMTP id jc2-20020a17090325c200b001d442aafe6bmr3629418plb.132.1704717756481; Mon, 08 Jan 2024 04:42:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704717756; cv=none; d=google.com; s=arc-20160816; b=dVHsf2dvmbrUhIThKpWMrwPkZxpN71bVSap04+sXtiYoyy4q4WupcaZr9S2o73gv3f d2LtUwlmrhyjd5Qse/bLaUiAQ3Pxma0eLslFkpKY1El+EFCHrVX/CnKI/lxKQRQYizJn q8AAyunlgctlqatUMaNysdnocj5TZOwPSx5s1jJPX59LqUnHaRwhghYB0e1hwd+FP5LG uKuf9oVrdrtrfNCGyR0LVQfOpkhLWN/ehfgZd7FEShogovY9+V1RNopK9eal4XjHuWk5 DeZiBqw2aQRlSsemki3/IVzkGCOtHHtyemOsHzXOYN2IO/230u0UiMGACSPbMc5cvDdZ d8HA== 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=hKgbs50b7sIEW9nFRau4m3gBJckeCz0KQ2ZMPeQV9lQ=; fh=xaSuZj1ajbxHn52v8M2SiBWQNwlImHP6rQYKWo0AWtU=; b=ymNpflmigf1pFCgRMz81lTSeJkRIMexhwegizbM2Dm64edJCoV7MFeBFL9IL8xG1d5 KgQVe0VZp4QG8IYu12I228fqTPMtQwiHBtfndLMwvqLcJhxkoJOV+DdvvVwJgYyUpqBo xVz4h4YL/nkflSs4SA8V07kW2PI95BESOPOd42Xw0Yv5LFMLuGktpVuTakORte/AYxHZ b5WfDEga7qz1+w16tz5L3di+9juSmS2QtFQjA+SWG5/CWDV/ByY8rVvcifIYwEIgCLSC msWkKr71rxZnq6Ov8egXYVne8jtCkzu+gooCog49oYgmDdqKP8FwGUpQcNspmeDGtqjK U5cA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yHs6JNJq; spf=pass (google.com: domain of linux-kernel+bounces-19538-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19538-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ja10-20020a170902efca00b001d3f68ce021si5981259plb.501.2024.01.08.04.42.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:42:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19538-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yHs6JNJq; spf=pass (google.com: domain of linux-kernel+bounces-19538-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19538-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 44AA4283415 for ; Mon, 8 Jan 2024 12:42:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 07D7955C0B; Mon, 8 Jan 2024 12:33:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="yHs6JNJq" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (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 E8D5654BEC for ; Mon, 8 Jan 2024 12:33:00 +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-f45.google.com with SMTP id 4fb4d7f45d1cf-555aa7fd668so1894764a12.0 for ; Mon, 08 Jan 2024 04:33:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704717179; x=1705321979; 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=hKgbs50b7sIEW9nFRau4m3gBJckeCz0KQ2ZMPeQV9lQ=; b=yHs6JNJqreTfwQFXcptzh+zSgV/ejuNvgeG8QiVOX2gLPS7UjEHn6YtLQnDdoY0X8z Amk1wBV6KpyehJzDjoFbJngH6+zjonTIBM+mwdvUfgjeo4XCiS0dSdOjeT1ix2+xhWWg bRCc/vs+w/ZZXt7rW2CQgIK3MN1iK2fgtHEmfTFRSq4ZMIiPSzS9a1e3krhqfgjcPjj2 D8xohC81qulaEWgipt7Z2FTFgRX/HHl8I9rEuzYMpkySEUiPAYMbPnJpe3j+69VPVvKa t4briUognm5+qcfeGrezO6IIH+w+Ho7kBP62L8QSVpkFcEA9sFMutSC9FgDAe1So3MqF BBww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704717179; x=1705321979; 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=hKgbs50b7sIEW9nFRau4m3gBJckeCz0KQ2ZMPeQV9lQ=; b=m45Z6dJOMQtTD/GtkB9lUjaXutdT4KfZ1MPlLHAaYo0XnLg46MTSgXxQhNCSo8QgLe bDjG9DQF80HIP504I2MxqyEU+J6a6PqASTfYmGc/HEoxs2tUNwc3GCoODRxCR2GIW+yV kOII4qK7eJSojSt62K4xsQwx2n1cbLDHBKdec8S6CsBicrFLI69HzroSgdlZHlXk+ZaL 6gHv6Ep7E5e6F+3jm0UxBOPGuO61QwA0458ZHzMzmuplA57y7i4O75O9YV6ODkrric70 lYWmZ22YEUZuPjy/JL03owjS/KFfaZus1iNlIfCV5cNcx4U8L0KpOeL0B6qs+H/Hqh2n CqNw== X-Gm-Message-State: AOJu0YxQfM0C3tr6R416woHjuA6Q+kOU/nhIR7pBegZQJIwdIPHsfBZY pXDF2fIeAI27j2gCs0LPB94JmQsTeJYj5qPZ0HTy1JjJJQg= X-Received: by 2002:a17:906:a254:b0:a28:fd6b:7acf with SMTP id bi20-20020a170906a25400b00a28fd6b7acfmr1674828ejb.36.1704717179191; Mon, 08 Jan 2024 04:32:59 -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.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:32:58 -0800 (PST) From: Konrad Dybcio Date: Mon, 08 Jan 2024 13:32:33 +0100 Subject: [PATCH 16/18] clk: qcom: videocc-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-v1-16-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=1051; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=AdVr2Vo+gKTKy1lOaf9tWddLXbATgKX8KeFGJ/zSkw0=; b=wIi+5K4T1WvVGh/iD46R12XlclSx3BIGbgYBU44VJXW0beQIKu4GsbVtmqKDbAhCc12MiGkwJ tByulC6Qr8fBWo03C+KT6ixJj+rF1wnViPqH+f7CUr+dGrPvwcpcw0/ X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787526126428958021 X-GMAIL-MSGID: 1787526126428958021 Some Venus resets may require more time when toggling. Describe that. Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/videocc-sm8350.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/qcom/videocc-sm8350.c b/drivers/clk/qcom/videocc-sm8350.c index 7246f3c99492..8db2bb995558 100644 --- a/drivers/clk/qcom/videocc-sm8350.c +++ b/drivers/clk/qcom/videocc-sm8350.c @@ -488,10 +488,10 @@ static struct clk_regmap *video_cc_sm8350_clocks[] = { static const struct qcom_reset_map video_cc_sm8350_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] = { .reg = 0xc34, .bit = 2, .udelay = 400 }, [VIDEO_CC_CVP_MVS0C_BCR] = { 0xbf4 }, [VIDEO_CC_CVP_MVS1_BCR] = { 0xd94 }, - [VIDEO_CC_MVS1C_CLK_ARES] = { 0xcd4, 2 }, + [VIDEO_CC_MVS1C_CLK_ARES] = { .reg = 0xcd4, .bit = 2, .udelay = 400 }, [VIDEO_CC_CVP_MVS1C_BCR] = { 0xc94 }, }; From patchwork Mon Jan 8 12:32:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 185959 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:37c1:b0:101:2151:f287 with SMTP id y1csp991039dyq; Mon, 8 Jan 2024 04:42:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IG6s6lPcIPl58bXcUs7lA5eCt0hXFpfnjDW1yprWJLam+keOwE+FpsLBe3bk5FeJGuFXT2T X-Received: by 2002:aa7:d70e:0:b0:54c:b88a:7a69 with SMTP id t14-20020aa7d70e000000b0054cb88a7a69mr2092973edq.73.1704717774369; Mon, 08 Jan 2024 04:42:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704717774; cv=none; d=google.com; s=arc-20160816; b=OMzIIoee5jWixPszlSiU+AxbiZL2LGxBTGDb06SDWQGUlmGs8YVlutmnMj/ksDFxpo cPF2VzLhO9K/xuqEYQVvRj2jGwf1DRx0pXvjvPhiajYK220+CRl7yeM6fjEanIFsEaID Nn7p28y3LucNShvXVqbZNEK+w1BmG0a9k4QQSvsaGd6JrGbfavPq7L8KcZTdHS4g30mJ YR5LLrYVdNR4HP7cB93NsRgEH2Yodi81pXKgH2OREczre/48GCMsv/cn9aA5iaCcgQ+F OWz5EwLX2yDqhNlkKyzTwGnPyxh5uLjZYnD5e/XjrXr21s3O9OjX/+XW4G59nRudPj2A pNVw== 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=SK26HotwUpgahbJ9EX5x/C3bT14krI/fYq92tviseyE=; fh=xaSuZj1ajbxHn52v8M2SiBWQNwlImHP6rQYKWo0AWtU=; b=JnK6Pjfp2GcLbXDoB6ImQzHxmhx4D0lT9lMcz+NtBZSS7V45LT4bXBAfzLx6kpiHAR YTlqSeS0Ay4H3clGjd3nAS9/F5FlC65JrW6X80Jmnm91bGnD54i/1LYHnh8fiaHNE0f8 dgARO+KUbyuPpnA1JxPGD7vk9ny9tFZCVqLn/qK8lw8FrtUUsyW3ead29eZEQyAz660A HVneyJdiOPWMd8swvjvvRPBNuJnJMeC5eIOmmkCjKobja/g8l25tTtnN9hdKhf8mQ887 MJQG+y9YL0WmSMUfmxIt6TbwfGmo9oaI53zrRRX6PxtX6Px8InKZpRlIWRqRmZtrtNby LNxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WZvfrBL6; spf=pass (google.com: domain of linux-kernel+bounces-19539-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19539-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. [147.75.80.249]) by mx.google.com with ESMTPS id w9-20020a05640234c900b00553522e101dsi3222083edc.313.2024.01.08.04.42.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:42:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19539-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WZvfrBL6; spf=pass (google.com: domain of linux-kernel+bounces-19539-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19539-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 011F31F22D77 for ; Mon, 8 Jan 2024 12:42:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F0B5355C19; Mon, 8 Jan 2024 12:33:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="WZvfrBL6" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) (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 E827B5578F for ; Mon, 8 Jan 2024 12:33:02 +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-f44.google.com with SMTP id 4fb4d7f45d1cf-55642663ac4so1886904a12.1 for ; Mon, 08 Jan 2024 04:33:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704717181; x=1705321981; 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=SK26HotwUpgahbJ9EX5x/C3bT14krI/fYq92tviseyE=; b=WZvfrBL6Ae9YuubkMjUU6Wv09BGnSh93kpR3MR58rxNpwcB+JUe/GPQJ7crZRfjqtX Vjj49pVg8QWqG05DAI4V8/x1bys8v8+e4vd+2Jeu7PViSazrbXIfHzcbSzZd9MwtE6i5 UwbWy51tUVyNmjTO1qA2ru58U2VOYeJkZozOzEAO+kgTAWX9OVYxN7CloYcdeGeMjyAn JGsDdwiCiyqFxF7ypU/ady+hvLTFxGW991yIpDkar8YNT/EObVFGjzGhqHPbB0kg1d74 UNe4HL+xwIpIrJ+v2xUc6rMDtWq+NMp4F3+vkd5gg7yyXfA0y09a9TDTGM59VnIPmIWQ HY+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704717181; x=1705321981; 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=SK26HotwUpgahbJ9EX5x/C3bT14krI/fYq92tviseyE=; b=mDpm3N9I8USrXUpKwHPowNlsCFADEn0o2sfvRWS7UGkKHBzwzl7QXVhpuxou5fSVDl rsN8MkDazcDedXTr/2oqel/W0c4JZfgqZ9yvxYkEpJoicPoEr+1NryNVwKviQUCCLnQM cazu6sqN8AeAqKhj1SRgTPEpMn5a3laHJRwNa0O+e/pxEbER2LGKNlCJGCvzrzm47aFE 7ZWbWL5yYeUcw+bGJAylGQLU+I/ETBChznfBhrDfE+nfehzpOqxSSRSf1lGh/bPpUqeZ mTqJm8h3MiLuenr8I7ypilltwQkvOUdrivj+3Xsjyv6JP847h1/LNH9mxJ+RRUKIs2mU DrRw== X-Gm-Message-State: AOJu0YztrJt+sI63E7n7+CsP7tZox7tkrBAuG4MGZN4N/pB6hbpU5GFD V4nMYQjfrVen+FgyCgPfqlZElUO9HDz1WECcbah6IkoWe5Q= X-Received: by 2002:a17:906:c00c:b0:a28:27cd:966f with SMTP id e12-20020a170906c00c00b00a2827cd966fmr1365932ejz.66.1704717181156; Mon, 08 Jan 2024 04:33:01 -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.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:33:00 -0800 (PST) From: Konrad Dybcio Date: Mon, 08 Jan 2024 13:32:34 +0100 Subject: [PATCH 17/18] clk: qcom: videocc-sm8450: 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-17-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=986; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=feC9+GWvv8xnYn7InxxSn/5ZFRq5Aoh8gmZgqG+eDBw=; b=OPV3N3uzB/vrUgOyJfIOwt2UGKoUYpVGHHCkKZ+OpReIfDnf163UoQ4KTPgw/s9RjIpwPFhU4 uO7lSiA4A73CXaZcJNFOfcwIDYDGpzGxS44UDPUUEk8dTeZf0putT0I X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787526145293873420 X-GMAIL-MSGID: 1787526145293873420 Some Venus resets may require more time when toggling. Describe that. Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/videocc-sm8450.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/qcom/videocc-sm8450.c b/drivers/clk/qcom/videocc-sm8450.c index 16a61146e619..67ca302a0737 100644 --- a/drivers/clk/qcom/videocc-sm8450.c +++ b/drivers/clk/qcom/videocc-sm8450.c @@ -373,8 +373,8 @@ static const struct qcom_reset_map video_cc_sm8450_resets[] = { [CVP_VIDEO_CC_MVS0C_BCR] = { 0x8048 }, [CVP_VIDEO_CC_MVS1_BCR] = { 0x80bc }, [CVP_VIDEO_CC_MVS1C_BCR] = { 0x8070 }, - [VIDEO_CC_MVS0C_CLK_ARES] = { 0x8064, 2 }, - [VIDEO_CC_MVS1C_CLK_ARES] = { 0x808c, 2 }, + [VIDEO_CC_MVS0C_CLK_ARES] = { .reg = 0x8064, .bit = 2, .udelay = 1000 }, + [VIDEO_CC_MVS1C_CLK_ARES] = { .reg = 0x808c, .bit = 2, .udelay = 1000 }, }; static const struct regmap_config video_cc_sm8450_regmap_config = { From patchwork Mon Jan 8 12:32:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 185960 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:37c1:b0:101:2151:f287 with SMTP id y1csp991118dyq; Mon, 8 Jan 2024 04:43:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IHEm2U4mRZdxfzotDnq93LYHqffysLix6Wc0x5bLTMUkQ13aVVKH6xyJZsxvIiFOcP+4epE X-Received: by 2002:a05:622a:510:b0:428:1dd3:9b0b with SMTP id l16-20020a05622a051000b004281dd39b0bmr4702116qtx.125.1704717784808; Mon, 08 Jan 2024 04:43:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704717784; cv=none; d=google.com; s=arc-20160816; b=ZUcsHoZ7It0NyzyfA5tPr5eoXFRBLQCZwEhzlPXZXVE4gQLaNmmG/f5KtZL69UqrXC JWsGOLqeixeC5IW5jSz56Itu3WO7OzvuAuc4S7wNUMQ0H13CACzbgaEYlfsOFyR9OB32 Deh63xW6ca+N3jqcJnlrt5tRwwuBajId0NT5YlHxbLxY7T7WuOIkuA8oEQqMrpM+dg0I YVSbBThiSW3VsL4BPcn5lWWebFEV/38P9uOOeFtO4LVeP/tuS1O/2rO2/JxSrigJItR/ Bo6EHgIn8DPcy+Uk1lcN0pbETMTE8b/O6OQwI2NbZZH0EWdNUO4nbU2BQeLpe5Y3Wa7c B3SA== 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=qAbsh2raT0T0gFCQooD4qLMuLwM2nwWqes0FR90GOPQ=; fh=xaSuZj1ajbxHn52v8M2SiBWQNwlImHP6rQYKWo0AWtU=; b=KdUt+aO0cVuke4wLBtyeYGYYfKw2wT8nJ/ARcQWdLBudYqJ2TzZYomONzyU8D0G666 6q5MNTTIzwHQSvrXznD+uqNhI7aeLv1+fykblavxU9v+l/8ku1NqBXVFzcX08TiyPz3E V5DwDWsf2cD2xCW3w/J8+8ve7yMVLOjMkioFOf52GibW8rt6I7dohz/3pM6Nt8vERB/d oHrllQd/FNoSTY+2B3QSMgPfVfmSwTwI79T8ned+jwXwpU/OMIFRGyE3q2oEq4rphi+c ewHuy3lobkfSAViA2Y/YS8V4R2hD8HT7Iox9TxnHmuK3ta2YYSPZua0dNQVeZeikuYD9 /wtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jwHWKG+Y; spf=pass (google.com: domain of linux-kernel+bounces-19540-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19540-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id x20-20020a05622a001400b004299a282df8si977034qtw.609.2024.01.08.04.43.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:43:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19540-ouuuleilei=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=jwHWKG+Y; spf=pass (google.com: domain of linux-kernel+bounces-19540-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19540-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 985421C21301 for ; Mon, 8 Jan 2024 12:43:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F2A0C55E40; Mon, 8 Jan 2024 12:33:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="jwHWKG+Y" 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 0F51A55C0F for ; Mon, 8 Jan 2024 12:33:04 +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-50e7f58c5fbso2016913e87.1 for ; Mon, 08 Jan 2024 04:33:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704717183; x=1705321983; 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=qAbsh2raT0T0gFCQooD4qLMuLwM2nwWqes0FR90GOPQ=; b=jwHWKG+Y1RX6AMZO0dHmwAJDlr1y9JaKKeEa8R7rJ4uN7tmIoEmJQ3IoS8Z589VCdQ Gq2UqbkXRU8qOqFKPLeIfyE7M+a+Qpi2S+72MdZeMo3Ljj9mjSrtj7MLcayVb/UbZW1e bJx2nfSBEPgphgbDid0WJm8wYUQE2HDsZWUYn9dcZ4Bs178t6Zi1FP1dad72LR8FPsMa IljsWX2HbhfBWj7IcfGNylFQTJ32FMuXH/z0LxXJoG7AAMSG7KnCYjMyv3jc6H8r4vQm yi8qpXSEHuPgOSl4w4rNcJS4Lg9+1RKNZbMWva/wQmeoL7lQZtxWCY7YVoQuVXVn9VWz 97Lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704717183; x=1705321983; 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=qAbsh2raT0T0gFCQooD4qLMuLwM2nwWqes0FR90GOPQ=; b=kfRIep6ypUDa8nzvB42C+RK/CqugxrHmcJvuHmUfpjaPO9Q45odCa6CVRzPXNzt/BG WtD7x7vTCn0Yv/rJFK64V/IVnuaU8t/tKmTmcFY+bv5rcbmfODD3BCum9pFD5Hu7XAw2 93rpyO5K/BOYYW/IGku7EEV31K87E+L53z1j65ATLGpiW9yfxOuozJCHYNq91t0sbN45 vZDSXdUAgU1mtB7RwgSBRk5zlt/Xsn/MpcKRSUaWaiYLrDTAbYgbVG6oJfKeLiy9+72o PwnliV5Id8tM5rmQCg9Ewk7XVJln1K3TPhWY6oWL+YJaxKYUQkk8dxr8X3k3Qo27WnqS hgKg== X-Gm-Message-State: AOJu0YyGfB9RPWn07VfTRIiIifAjFZx/qsWmjgtpCkU+G6GAoJCAUcWl bVP74WAfG1wollpTfgxtpZNGK1ozK8qtPXXEYrMh1qxcXNM= X-Received: by 2002:ac2:4822:0:b0:50e:6ddb:551d with SMTP id 2-20020ac24822000000b0050e6ddb551dmr1300789lft.73.1704717182919; Mon, 08 Jan 2024 04:33:02 -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.33.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:33:02 -0800 (PST) From: Konrad Dybcio Date: Mon, 08 Jan 2024 13:32:35 +0100 Subject: [PATCH 18/18] clk: qcom: videocc-sm8550: 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-18-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=986; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=nUkji27joUy4z7sSoyVsNLtQaWjmCqTk31+xfHWXM8I=; b=w4g8AeDrPElFZuWnShULIUezl/D8Mown8pWJMvSQi8+U6rX64xETD1nQ/r4IjQuIvmP9ljfUk P7na2O9tyb4B4xcuvQv5tDQcZWCiODy4K8z0qMFVpLRR81QOZKxrfOy X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787526155993383714 X-GMAIL-MSGID: 1787526155993383714 Some Venus resets may require more time when toggling. Describe that. Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/videocc-sm8550.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/qcom/videocc-sm8550.c b/drivers/clk/qcom/videocc-sm8550.c index f3c9dfaee968..e3f146347da7 100644 --- a/drivers/clk/qcom/videocc-sm8550.c +++ b/drivers/clk/qcom/videocc-sm8550.c @@ -378,8 +378,8 @@ static const struct qcom_reset_map video_cc_sm8550_resets[] = { [CVP_VIDEO_CC_MVS0C_BCR] = { 0x8048 }, [CVP_VIDEO_CC_MVS1_BCR] = { 0x80c8 }, [CVP_VIDEO_CC_MVS1C_BCR] = { 0x8074 }, - [VIDEO_CC_MVS0C_CLK_ARES] = { 0x8064, 2 }, - [VIDEO_CC_MVS1C_CLK_ARES] = { 0x8090, 2 }, + [VIDEO_CC_MVS0C_CLK_ARES] = { .reg = 0x8064, .bit = 2, .udelay = 1000 }, + [VIDEO_CC_MVS1C_CLK_ARES] = { .reg = 0x8090, .bit = 2, .udelay = 1000 }, }; static const struct regmap_config video_cc_sm8550_regmap_config = {