From patchwork Thu Dec 14 10:52:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 13492775 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 4B1C4C4167B for ; Thu, 14 Dec 2023 10:53:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Q0tWB2YNI/hzsKkt7J4STBJfgZAP8gpnuNgjRpFtffs=; b=EA1TXL2Ah9styJ Ew4PQYJiDKmq2wn0X0o1SvT/NYoPXPafBOIFN6m9B3vz3TAESKBzfjRp1DV8ZyhjXls9wLOz/N+nJ FGkVAfHw9CE2Q0tUvMTnwPgwiOwQeN43YLYXiZga2tXu41a0MOiEA6c2ir1nxM9IPurYjfe8P8SD3 TsjJLSBDtHT50LnnrL0bjkF6980C1oOORLd306gUuK+fiCpXXVQRa9qjPhcJkjkSWhiaPHZeGLZW8 hYnRIhU1Mtu78bs0Qp6o4clGO2aRjSigw10531ykOeAVAoDb/hJ/oRb6bgxt2PbLFWOSy4TLaB7Rj h2AabVVkEH/xEBBrpOTg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rDjL1-00HXe5-1U; Thu, 14 Dec 2023 10:53:07 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rDjKt-00HXWQ-1F for linux-arm-kernel@lists.infradead.org; Thu, 14 Dec 2023 10:53:00 +0000 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-40c256ffdbcso81749685e9.2 for ; Thu, 14 Dec 2023 02:52:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702551178; x=1703155978; 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=yuS+45h2ga3aQkPKsayipRVsQ8w0E+s5uDXU4i8VrWg=; b=F6Krf288tpWV3H6smk3XnMU1b7qWH0qMIzidEHU5ffFkMeh6o5RArelfRzu6eY4zti nsLRKNoWil485nE4n0pcgzaYGEtBS6OZwklaTMGuJzVkR1bLqSMaXC6ZkP9Be1PSTmrI q9Av3mpNfWmqBhL8Dep2kedYCrxHcctdHVUt5XCmD9coS6SQRVMMZXsD8r42Dc9HHXFr +y4BCVW3zY3Yed8Ce6B94F00Xan5GCfqH/zm0uIfQTkmtSupGXwMyJ/RAAi7HDwtrUP6 cF7KtCS1iutqe+4oBISzKVXRUcdQKDA18LohG6xfuxSS4l/4iogwwQiRjoMnjc7Bp1cc nhPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702551178; x=1703155978; 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=yuS+45h2ga3aQkPKsayipRVsQ8w0E+s5uDXU4i8VrWg=; b=DL/WZOzQIboq5IigRC4Rf0GCLGPXfw1frIwrYJPRMQEKgS66+Yp7FLFTncqO1A2IBX fZAe9i7wxntcnZBsEnfW76NsevpaWzZ/NKWYkhv26/Kjzez76qyp5ukYoGLJbijKBfXa rippwlSbUZmfNLgbvPIL6jrW0qA29SjvLviBaCHk18ZbMPunqQNA4bJTcpkHgJRchyo7 WHQPLFgNzPg9FP/ZijopS7vg200Xc7trSto0Epk0LqL73+8jEuvyIZT6LVr9rWVzxgj8 25vDdql2+hqEbgDIiYMzvuzJ+XnCcb/ksIKCDjsc+KKm2ivRuDBa6WK5F7x84tUdEmjo im8A== X-Gm-Message-State: AOJu0YxdnBLY6qAq3rPPr2XHSDf4wG2eHvQcjLi8jEpCXsYzGP9P6XIf IiDYMqZpkHbgRbtagY+h/+QUvw== X-Google-Smtp-Source: AGHT+IHAGC45+JA4KfBfVBo5MvsdcmfG4HWD//LZLINpHkMirvEDnQf0FMXjRjvFzd5QesYIFv2g5g== X-Received: by 2002:a05:600c:2113:b0:40b:4520:45a6 with SMTP id u19-20020a05600c211300b0040b452045a6mr4416373wml.8.1702551178174; Thu, 14 Dec 2023 02:52:58 -0800 (PST) Received: from ta2.c.googlers.com.com (216.131.76.34.bc.googleusercontent.com. [34.76.131.216]) by smtp.gmail.com with ESMTPSA id p7-20020a05600c468700b0040c420eda48sm17614854wmo.22.2023.12.14.02.52.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 02:52:57 -0800 (PST) From: Tudor Ambarus To: peter.griffin@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, conor+dt@kernel.org, andi.shyti@kernel.org, alim.akhtar@samsung.com, gregkh@linuxfoundation.org, jirislaby@kernel.org, catalin.marinas@arm.com, will@kernel.org, s.nawrocki@samsung.com, tomasz.figa@gmail.com, cw00.choi@samsung.com, arnd@arndb.de, semen.protsenko@linaro.org Cc: andre.draszik@linaro.org, saravanak@google.com, willmcvicker@google.com, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, linux-serial@vger.kernel.org, Tudor Ambarus Subject: [PATCH 07/13] clk: samsung: gs101: mark PERIC0 IP TOP gate clock as critical Date: Thu, 14 Dec 2023 10:52:37 +0000 Message-ID: <20231214105243.3707730-8-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.43.0.472.g3155946c3a-goog In-Reply-To: <20231214105243.3707730-1-tudor.ambarus@linaro.org> References: <20231214105243.3707730-1-tudor.ambarus@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231214_025259_447495_1046B924 X-CRM114-Status: GOOD ( 10.71 ) 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 Testing USI8 I2C with an eeprom revealed that when the USI8 leaf clock is disabled it leads to the CMU_TOP PERIC0 IP gate clock disablement, which then makes the system hang. To prevent this, mark CLK_GOUT_CMU_PERIC0_IP as critical. Other clocks will be marked accordingly when tested. Signed-off-by: Tudor Ambarus --- 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 3d194520b05e..08d80fca9cd6 100644 --- a/drivers/clk/samsung/clk-gs101.c +++ b/drivers/clk/samsung/clk-gs101.c @@ -1402,7 +1402,7 @@ static const struct samsung_gate_clock cmu_top_gate_clks[] __initconst = { "mout_cmu_peric0_bus", CLK_CON_GAT_GATE_CLKCMU_PERIC0_BUS, 21, 0, 0), GATE(CLK_GOUT_CMU_PERIC0_IP, "gout_cmu_peric0_ip", "mout_cmu_peric0_ip", - CLK_CON_GAT_GATE_CLKCMU_PERIC0_IP, 21, 0, 0), + CLK_CON_GAT_GATE_CLKCMU_PERIC0_IP, 21, CLK_IS_CRITICAL, 0), GATE(CLK_GOUT_CMU_PERIC1_BUS, "gout_cmu_peric1_bus", "mout_cmu_peric1_bus", CLK_CON_GAT_GATE_CLKCMU_PERIC1_BUS, 21, 0, 0),