Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp3238978rdb; Tue, 6 Feb 2024 11:05:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IG3bcLH/RCcuncsoojNrr5xxP0yNyGY4yHOUKSgPTJhrvysKuTkUFy0w7/aabRxYSwS9l7Q X-Received: by 2002:a05:6a00:2396:b0:6e0:4030:ef77 with SMTP id f22-20020a056a00239600b006e04030ef77mr456123pfc.16.1707246323131; Tue, 06 Feb 2024 11:05:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707246323; cv=pass; d=google.com; s=arc-20160816; b=uFzCIFMFlLimCHAhc7PXx3MZIWVjwSzgogJMzJgiByFgpCn5KgflA7Cec4JRMC2pAH gJcl28BZ9uxPZ31zoCxWM50770SDkfBilkPp/cyMKvb2Z7DlHYv6yEaLIoEd92oG+LcW 1JbK0UA5Noq79e03pg4DUyyX0hibdjNrIr+6KOA+Yyql/cYWgCeApW923fb+Rikkyjkx wye1Mylolj17LbIjXHJSmuryuuFKjsbmqm4mdZP/IcP7MVSNGDlJgFxMaR2HZ0JeRMrI CMfgvm8/amYr59TLbgH9nmoMS7RDAIJ9UgmrIRPExxKfJB17+91WpC40QM0rxj64gaBG b9Zg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=B1iY3/5e1vVwTp9GAkTk6iF085CLAD1vcMZhFA07ufA=; fh=LEn1IpreprSJ09vgjwOX+SuykNVR7e2TQg6JhW22GSU=; b=rlWtVpdeqO5u81oTxhhoqLDUoJfYcdF0zK6vTfCBRVd2PKy0Bqm6LK+evo4JwXmS40 ZBTHsHc2hIiIeP0UllJZlQFGsAzr4fB+FDo/sbl+svrJ5E5oE7W17ZWhD/2AWiXE6VNK 7SbUB0lOnfd1fIF4chxF0D2kq858F0LGwkknYbh7pdcc5PvOGhFnAWxMcQpqjodydaTI mKn16kZ7DI4oZIVGJuPoxhYLi3sLaIoutMuqdjEOpDkpkFgcUZEFi3L6Bbu6gSOum07r DuAWyAHPO8aug7687F8ltyazEgoxrTDt9xAN6DwJ8dzsQzrgUWDJbYaYPcailkYTQlmg v/eA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=euIvd72z; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-55480-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55480-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCXpZMgbZyu3GNFM8MEamCHMzmdRoEUL8MJt2hMr+7inA0Kl7KsIHieMFbCkOal4QXOFkf+9l3daOOV9k4A9NT7cY4/IUaPf2Kq8P1O5Rg== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id m16-20020a62f210000000b006dbe42bbfdasi2009835pfh.377.2024.02.06.11.05.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 11:05:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55480-linux.lists.archive=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=euIvd72z; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-55480-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55480-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 5AFA428D456 for ; Tue, 6 Feb 2024 18:46:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 046FA1BF27; Tue, 6 Feb 2024 18:44:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="euIvd72z" Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.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 456E01B946 for ; Tue, 6 Feb 2024 18:43:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707245039; cv=none; b=Kh/9/pQ7o/xVohb94AR4IMQpfI8u59Xw++aHPJBr7Ky4eD+Bmn4lZouG/SWI748c5gBuSbR4VHmbi1gVEihiCnemBAa+vbEyHJG2rPtT4MF94hQd+oOey0tbKWRv4q2cxXJpezIoabovnTSa4m/F/urdZQ/ij+DKvLbQJA2CMHA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707245039; c=relaxed/simple; bh=MVwKMyl639pfSSp12W8ZsSkDXB3e+0oIGZYQAcJEWn4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=sBwtdMRIazGeETI9dlnFoE0iXe+JHovzz4JAjF66y40VtgMqtSfWZ1tBEg+Pwg8FIhj9Rv54+LSTq4BkuENJ9rPcEHdu5d1ZyU7FxMKSOpPVrmUx31D2gg/6FvN9XAvUDpYpk9qJ+9IddVVtJQGRduw+BlmSKPNuCibEtCqcZtM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=euIvd72z; arc=none smtp.client-ip=209.85.218.41 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-f41.google.com with SMTP id a640c23a62f3a-a37878ac4f4so349908766b.2 for ; Tue, 06 Feb 2024 10:43:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707245035; x=1707849835; 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=B1iY3/5e1vVwTp9GAkTk6iF085CLAD1vcMZhFA07ufA=; b=euIvd72z37mvmr7a2/GiUUpDaQ9nvm6BKImV/VSX/V4h5tHIxf6vFgBqhIeKOi3JLW WDHZH4MjORqjEUEz8XjGkLcQ0m6ZL+q/73kx8JbxkoeZDwHUzVK5oMEHcF8Pg95tad+J /f0y/Fm5vRQtuROxH0QqvGJxxdGbf3SGuchvvpFKYIafQKPY/z2o2dZWQPkdz8t1jx4V B89Ri6oZMnIXA4yUvLIuMXBUyNQYZ9E085dLKAEN4uoWbkyAEwvRbJId9I8179r37L1F 3Ea+kF7/q4ivfX7c2W9/XJCt4utVBq5P/TVFcWXh8jZ84RZtvkQi9ZqAjy5VkI+2+gaM GK5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707245035; x=1707849835; 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=B1iY3/5e1vVwTp9GAkTk6iF085CLAD1vcMZhFA07ufA=; b=MDofnqtO6cvyIuANsh5nX0P4pH70A1TFsc9bCTprqtbjv4gQ2uASZO14hy7i8DQILx WfO53D54tpfT3QV0u6VXkwB1BJlxAZwxN26EfDIZdiEkzIHlvuixe2R8sG38Pl2NAj9v LB+9hhTWU2gxqeFzJybw0aRqygiNTm4mT3LlTw5rGUc2WCygy8v15RMguaZ7yQj+yFWv 5eiaVj8cGyYGy9OahSxT9mfXu5VgbaSjvsZ2w5EWY5+eylbEXCa23iWrMU0ozgjiBvz0 IwzgjzyL2H3Xwj8nrIHKDeujEZusklqk5gSMx+50TctemyEBBCDzKy3n8TMZXzfc863U LV8w== X-Gm-Message-State: AOJu0YyGuyA9JIIZ+C5dEHDpmNoeiwLuaozVyLPQUbx5FZ8Juf4xmHyk vZQabIh/iTgwQ0zeqDifXW7PwapbFUbGZ4IoZzdCO5r2l/KEACXIlNxY389JVrc= X-Received: by 2002:a17:906:5ad4:b0:a37:b795:264d with SMTP id x20-20020a1709065ad400b00a37b795264dmr2605624ejs.57.1707245035596; Tue, 06 Feb 2024 10:43:55 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCWMjlpNtix6mgvC3tfpf/8y/JqEIom7qxcpy55JwHa4+w4vvKy2LExr5+HSHQlm/nxjrAdoWIX135smiu6gYZVJigacTT/0S8yp7xSMspA2Bi7RjjSnIvcR6uw5Z4ynP27YM7RNhgjBDN98vXjygJW61PcX7MqbHfct2W4Mb4BUJzJFMOfWvZ5gf7OTrDmJesx69f78MDgou9fS39CeowLJvQJIO9SRokW083rA6J4DGtwI7Hm5jYlthgPJ1jwptHUyX7eIeGlo/+3NOMdW2Z6AV47R5V7xorYnuwzUEZ8pqNpMk+qH65ZMk0iMqs6yFm4zDXCdO/PsE4qusQri7Y4Lo/q9IlRjZsj4KETuMWBkcZuXp+lwSS7ihea7Xp7kxpXfFeySjWSyUD2+3Xk92zYD6Fc/nT2IekKyJWYoby5/21XWSlhySdxc40Retexm/uJHyTWiPwLg Received: from [10.167.154.1] (037008245233.garwolin.vectranet.pl. [37.8.245.233]) by smtp.gmail.com with ESMTPSA id un9-20020a170907cb8900b00a384365e3b9sm562305ejc.195.2024.02.06.10.43.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 10:43:55 -0800 (PST) From: Konrad Dybcio Date: Tue, 06 Feb 2024 19:43:44 +0100 Subject: [PATCH v2 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240105-topic-venus_reset-v2-11-c37eba13b5ce@linaro.org> References: <20240105-topic-venus_reset-v2-0-c37eba13b5ce@linaro.org> In-Reply-To: <20240105-topic-venus_reset-v2-0-c37eba13b5ce@linaro.org> To: Bjorn Andersson , Michael Turquette , Stephen Boyd , Philipp Zabel Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Bryan O'Donoghue , Dikshita Agarwal , Vikash Garodia , Manivannan Sadhasivam , Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1707245017; l=1115; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=MVwKMyl639pfSSp12W8ZsSkDXB3e+0oIGZYQAcJEWn4=; b=WzApI+i5HPCSE0QP9FS1c4W2SGt6W8PgU1ss9ttY5Ud4sBM4SP+FzyQ+ZJnXqTpM3AZyRIN7e aQQNJissTeNASVyp8/0xSbNXuTmCUQi8VVR6PhVlJREXkKx962v1QBC X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Some Venus resets may require more time when toggling. Describe that. The value is known for SM8450, see [1]. [1] https://git.codelinaro.org/clo/la/platform/vendor/opensource/video-driver/-/commit/d0730ea5867264ee50b793f6700eb6a376ddcbbb 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 }, }; -- 2.43.0