From patchwork Wed Jun 26 19:43:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 13713318 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 42914C3064D for ; Wed, 26 Jun 2024 19:43:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=vZg0Dan8dZ1cJlzdkxx9g6a64AyosFvjL+3niLEIVTM=; b=1RH/tZuOHIakn331K/18dRuICU mPB8y1BTQahZFdZ4pLD6m3PKHI/TItAmaV8slHIzrL6ruG0HC3fXohypqBj7xgVjtjuo5GlazDQml muRHXYiCc+TL5Q/1wotwFaRZow1dA8O4CTULqbKRmQL1+bE4Hefbbid3Ww1svFgtD9ER1cY6GfME0 vxWBmVmhayKSvY1rGI5AeUv18u7TU1syKc90CBodrWH+HxdAyRuccvp0u/NtfOs/On1qWF6Nz6Gys nYI5Mw/QC6eY9v0wide7tKzNNgORZtShxUnERf4B7Pr+jAtabL+483dvbDD8JgQTNuECM/y0sLgoZ ulEEzeGQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMYYL-000000085Q9-3Nm6; Wed, 26 Jun 2024 19:43:37 +0000 Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMYY0-000000085Fq-1F4m for linux-arm-kernel@lists.infradead.org; Wed, 26 Jun 2024 19:43:17 +0000 Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-52cdfb69724so5341923e87.1 for ; Wed, 26 Jun 2024 12:43:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1719430995; x=1720035795; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=vZg0Dan8dZ1cJlzdkxx9g6a64AyosFvjL+3niLEIVTM=; b=thwfbVnvP+sjLdRbhT3kb4dncvnrw6BWvFH/BQVURDdZI6InVYX1jOG2B5rD9Z9O17 MAihhmjCIVzutK6SagrDReSsUZPhTqfsvnQ8KzjvKglpGfxRMjxQkG525Do2/UaCWdIC NTr8oApz3+kazelcXOJDjJKL9g+ltHEKrd1zRtoKoAB2Hf41d9+sdVE95uFCOvRWi4OO SlgLeM966eemwkFbtvBEuJ3tYlTAGJSC+jjRhoJ6dUWdD0XTD5aRBsGWxGryPiZgdlIB XQAfxxplARNd+GVNunBml+CEbcl+oRmKRp0Bw4FF1keTE6NDRspxwgVVden9aLZvBuJ/ Ksow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719430995; x=1720035795; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vZg0Dan8dZ1cJlzdkxx9g6a64AyosFvjL+3niLEIVTM=; b=Oiiy+LslnQGAqF4U8PZYFVT96PzD9TgbzmefcGIoKZelfjuX+vPHam9wgxrjDcgotI 8yX4H72Kb/BVL3Blc1WKyQOamFghhJZCFjkvohkhyxNzWnyLYNuHhV6J9Bmp6sjT/iRi ng0GiYOg8X6a+r0wnp1REgrae0/HKVzac7htGTYZU7SKtSXJtjSG6Odp11/YZypTEtxF n3ibjdOY0+giyLiSdffM2LLU9gKiMjOufmYx/hgud4NyHuHryF+nLUOskkC248MgEHmD TlfJWF5fgyyRHCLDH48Hjcbsc/qGYXZ1qZatkewnIPL/PuiDt3uKFHG2D8nFqLW8fee/ SmCw== X-Gm-Message-State: AOJu0YwuO6S9xHNoHxRLiqBZqRV/Ku22l5I3qpE/WEyWA6z+qN63L1U5 35p7aBBDpez9tcskY0Yvi+3xkJuNRcYqsLcflwdJ0q7mcupGCHiRDwf/Em4426KxZYOfFKiCId0 R X-Google-Smtp-Source: AGHT+IF5TBKDZODftqTmo/Y2LCMw2rq2sjADo9zE73i9eab9HhHgjvgOrzapHeP3tI3ZKFHbYrq1dw== X-Received: by 2002:a05:6512:3f0b:b0:52d:215a:5071 with SMTP id 2adb3069b0e04-52d215a5162mr2982937e87.62.1719430993614; Wed, 26 Jun 2024 12:43:13 -0700 (PDT) Received: from gpeter-l.lan ([2a0d:3344:2e8:8510:24d9:a20a:2de5:8eda]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-424c837eb2bsm36728905e9.39.2024.06.26.12.43.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jun 2024 12:43:12 -0700 (PDT) From: Peter Griffin To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, alim.akhtar@samsung.com, s.nawrocki@samsung.com, cw00.choi@samsung.com, mturquette@baylibre.com, sboyd@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, tudor.ambarus@linaro.org, andre.draszik@linaro.org, kernel-team@android.com, willmcvicker@google.com, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, Peter Griffin Subject: [PATCH 3/3] clk: samsung: gs101: mark gout_hsi2_ufs_embd_i_clk_unipro as critical Date: Wed, 26 Jun 2024 20:43:00 +0100 Message-ID: <20240626194300.302327-4-peter.griffin@linaro.org> X-Mailer: git-send-email 2.45.2.741.gdbec12cfda-goog In-Reply-To: <20240626194300.302327-1-peter.griffin@linaro.org> References: <20240626194300.302327-1-peter.griffin@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240626_124316_373102_7CE8B626 X-CRM114-Status: GOOD ( 11.93 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The system hangs on poweroff when this UFS clock is turned off, meaning the system never powers down. For the moment mark the clock as critical. Signed-off-by: Peter Griffin Reviewed-by: Will McVicker Tested-by: Will McVicker --- drivers/clk/samsung/clk-gs101.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/samsung/clk-gs101.c b/drivers/clk/samsung/clk-gs101.c index ba9570f7a5fa..85098c61c15e 100644 --- a/drivers/clk/samsung/clk-gs101.c +++ b/drivers/clk/samsung/clk-gs101.c @@ -2846,7 +2846,7 @@ static const struct samsung_gate_clock hsi2_gate_clks[] __initconst = { GATE(CLK_GOUT_HSI2_UFS_EMBD_I_CLK_UNIPRO, "gout_hsi2_ufs_embd_i_clk_unipro", "mout_hsi2_ufs_embd_user", CLK_CON_GAT_GOUT_BLK_HSI2_UID_UFS_EMBD_IPCLKPORT_I_CLK_UNIPRO, - 21, 0, 0), + 21, CLK_IS_CRITICAL, 0), GATE(CLK_GOUT_HSI2_UFS_EMBD_I_FMP_CLK, "gout_hsi2_ufs_embd_i_fmp_clk", "mout_hsi2_bus_user", CLK_CON_GAT_GOUT_BLK_HSI2_UID_UFS_EMBD_IPCLKPORT_I_FMP_CLK,