From patchwork Wed Jan 3 20:20: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: 184837 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp5243127dyb; Wed, 3 Jan 2024 12:20:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IEVuwssG4IynOrF9Wnplz3JdxGPHyrYX+rrn3pQBtO74A/9tQ73zFpqhN57BJd/L0l8GjeQ X-Received: by 2002:a17:90a:aa84:b0:28c:8929:8df3 with SMTP id l4-20020a17090aaa8400b0028c89298df3mr5238939pjq.12.1704313259272; Wed, 03 Jan 2024 12:20:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704313259; cv=none; d=google.com; s=arc-20160816; b=t86wCTO5DSEo4nkkQhM3dbtMUFlFKpvvDmb720VhfRaocRo4W7Fc/FYVQcB1jfBXDW dLFsP6k+cxZNMeTOucK1GTp6TLdpsmEmzDOgnOKdQPfguXlkGJ/JDNLXRgpbyClgMywc f5Zoht22D6N6ymJkUpt1EFa8wNFSg6QPoUQQigW6ZFgHK0fruwIhi84ntb3dRG3xuKog ICXfXcsKa26Q2qXNcQWtacLUfGooPVRxkEkqlOVDy8OyPGua4Fn+S8tWTn3VPGgEYsc9 CwMgSVHRBGxBOeSu45UtrBk+8a155P64qRakvmXyUTKBFxcV297qPG7SBim0G6jhsGAc qJ7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :from:dkim-signature; bh=k4tbVTuBseaOKe6F2sTtNlV91d7o5NJbIEDEdAscPJY=; fh=sTnM3XTaUJbF4nRVshlC24E/ldqK2f3Hk7MANO8S7dA=; b=kH/uW0A3pL86jK7dy7LRXv5iwQye7S/Gl9u7QtnK+DLtgpvv2dJAfre2+bGOAdBRKA QHCcjQQ4KtUgfSSFF3NoaGTnqkTQ/WmWONUCX2EOszIoI/LkJyfyXGauO3l69SZwfD5Y BwxIq8JD68EOolupyjNRteeprIlPiEHMB086qTBWWvT2Q8Xa7IwNpPjEFZA3Vx4AzxUo Wok0nLab7WNylpAlbUCoSIgAps7QDErDBxdG3dNysFTkhHRkw0DXfBNltt5btJ7Kv4G/ KR+Rctig1PnV5nQnLf1aTLcMrH6yhZvsm3hIGpO3XIs6ohRcR84hvw7OJE9YCX2bU8uW /i0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SUHljg8X; spf=pass (google.com: domain of linux-kernel+bounces-15969-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15969-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id t6-20020a17090ae50600b0028ce966d638si1722792pjy.174.2024.01.03.12.20.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 12:20:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15969-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SUHljg8X; spf=pass (google.com: domain of linux-kernel+bounces-15969-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15969-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 13C27285A04 for ; Wed, 3 Jan 2024 20:20:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7B7061D54A; Wed, 3 Jan 2024 20:20:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="SUHljg8X" 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 3E50E1D522 for ; Wed, 3 Jan 2024 20:20:35 +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-556c3f0d6c5so1316741a12.2 for ; Wed, 03 Jan 2024 12:20:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704313233; x=1704918033; darn=vger.kernel.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=k4tbVTuBseaOKe6F2sTtNlV91d7o5NJbIEDEdAscPJY=; b=SUHljg8Xu5t0qPZOLOtvh1AbJ9YjzY8qtrqVOxQ98KU4eSvn2RFSQmomU87up7AsNu /SluexvlNFlUZKos5putj7CSXaC3pGtihIu5okxsBlMfiLjvWWJ3C+x2Q9no07RD4UTR v+ukp5hSXWjf34YCQEKbhIjw6TW4F5OCXCcutnzprLqD9eLHmmbIZsUmnV1qdHdf/emj yE5UPuuVbKCSCcGeL24+ykGSOHADO2zz2WhxQOIurTjLilZkgxMEvrgBMRvOdXKsZcKV 0w517u13Zl/wUni76RM56JXzi4ZtL43PjnHCy8H2uE6Y5WNw4XpdfqNss/knooXC8Lri enIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704313233; x=1704918033; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=k4tbVTuBseaOKe6F2sTtNlV91d7o5NJbIEDEdAscPJY=; b=kAnVDThqMT5Ak2MBoPhQDEnAOJYNYBxLeow9zwORipcP9hhI9kao82fybZJ/u70rM9 zLm7ARIBrqOC0HKXUMEFsjkxKVheuwJUcG+ygUtWs1fE9Enl9FkGg6Qnr8Vlkm/1V5UU S9Zs8xpyOk2OTHd1jqotqU+niCiiHRMA0loectko1gy+V4wtZVQapOf0LyuWDQsc6cnC 1LgmUKIDQEHOCY09LdMMyuVqc3NzneAzCW8kzjKcdV3WOirqOfxoCX3uQjxoPXNl8cJW 5rI41djD13Vy0qT39BL3aV4SXZCba4ChgRHIK8FfIOVR4C5O8Ua9zFRbKfOuu0hvi07/ R6NQ== X-Gm-Message-State: AOJu0YyyQQAmMuPzELi4COjVmjcIcIXiOl5CpkJnbaFkQE0yLmSEA61x FpBrchSROgG1vltnul8z7SSQgHqjFIcj2A== X-Received: by 2002:a17:906:b103:b0:a28:46fe:77f1 with SMTP id u3-20020a170906b10300b00a2846fe77f1mr1147886ejy.179.1704313233637; Wed, 03 Jan 2024 12:20:33 -0800 (PST) Received: from [10.167.154.1] (178235179036.dynamic-4-waw-k-1-3-0.vectranet.pl. [178.235.179.36]) by smtp.gmail.com with ESMTPSA id y15-20020a17090629cf00b00a26af6e4604sm12143136eje.107.2024.01.03.12.20.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 12:20:33 -0800 (PST) From: Konrad Dybcio Date: Wed, 03 Jan 2024 21:20:18 +0100 Subject: [PATCH] clk: qcom: dispcc-sdm845: Adjust internal GDSC wait times Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240103-topic-845gdsc-v1-1-368efbe1a61d@linaro.org> X-B4-Tracking: v=1; b=H4sIAIHBlWUC/x2N0QqDMAwAf0XyvECrLcz9ythDm0YNSJVmjoH47 wt7vIPjTlBuwgqP7oTGH1HZqoG/dUBLqjOjFGPoXR+cdwO+t10I7yHORQkzlbHEME4+DmBNTsq YW6q0WFWPdTW5N57k+588X9f1A4n/lZR0AAAA To: Bjorn Andersson , Michael Turquette , Stephen Boyd , Taniya Das Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1704313232; l=944; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=5toqP0lFGtj9eNNbeiZrB9TS1y8+JkIhCriQKhK2LUk=; b=ayQoYDpiVHvtozAgvHKomd7CluAQM7F94qyU8j7sy+4nrpzsXjPt/ujoyuxJrGSHwDDQC1mVt 8NksIbLJ9CTDO1iUdff+iznJOuCKAIPlzBfE9u5l41ncxcBOXXjEzxH X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787101980046955107 X-GMAIL-MSGID: 1787101980046955107 SDM845 downstream uses non-default values for GDSC internal waits. Program them accordingly to avoid surprises. Fixes: 81351776c9fb ("clk: qcom: Add display clock controller driver for SDM845") Signed-off-by: Konrad Dybcio Tested-by: Caleb Connolly # OnePlus 6 --- drivers/clk/qcom/dispcc-sdm845.c | 2 ++ 1 file changed, 2 insertions(+) --- base-commit: 0fef202ac2f8e6d9ad21aead648278f1226b9053 change-id: 20240103-topic-845gdsc-bcd9d549f153 Best regards, diff --git a/drivers/clk/qcom/dispcc-sdm845.c b/drivers/clk/qcom/dispcc-sdm845.c index 735adfefc379..e792e0b130d3 100644 --- a/drivers/clk/qcom/dispcc-sdm845.c +++ b/drivers/clk/qcom/dispcc-sdm845.c @@ -759,6 +759,8 @@ static struct clk_branch disp_cc_mdss_vsync_clk = { static struct gdsc mdss_gdsc = { .gdscr = 0x3000, + .en_few_wait_val = 0x6, + .en_rest_wait_val = 0x5, .pd = { .name = "mdss_gdsc", },