Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp663204pxj; Tue, 18 May 2021 11:17:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzj2ewIIdsNXbauv/OizPFI0OzmulbTksLYjuS6vmWwL6Lv+CZL7C6Mjno1cf91LOpzP729 X-Received: by 2002:a17:906:4c54:: with SMTP id d20mr7398189ejw.513.1621361858417; Tue, 18 May 2021 11:17:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621361858; cv=none; d=google.com; s=arc-20160816; b=eghQC+Ok6++vLQzu3jS6NAtTmXw6nR5Hv8luyU7Q2mPDr1P7K6w9tx4doQ0abHkZlP KlSlw3N2wd+7OqkOBSxSBPIFxMJTyNP5E3rKDj76eUbzD+gfFwpe8xq+1/k/Z5oBiLrR rziagSmmBE1ItByH7vFEG3OvOQcyt8b4oYqpqjG52wHn6x/3omuVvqNgIxfxkww4MxJD Q+2c0tzvDOt/2bCegmixbXMcDI/0xlMFzWJSy/6U/H100CsA2Me78eD5xFcZqGzI0uPt 8o3tBDUamCI3KVCFSCBk7HeOLHZUNEcviYYhSQr3oOuFtx3cK8gEeoWdKGMS9aKaNwdj DHzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=HFKKaD38ONBP06ZbEo2Y8poAW+gctypGN3p5hr/sLlI=; b=DkQajRlRzSKeQo0Ce/tfayeuNdYNHt6lHSD60Jt5Plg/vaus2Xf6WKwtydS5yPy00m WjGJry5l394gTjZ16OIAuE2V1aKU3HTK/VMsYbzjz92arYmeDEUFxcBnorwlhpDD25tC t9qUToeMV1aTxpS6hdL/P3pqRw21RFx6EGkODdf2ihK/TQ8ljdF5k4mydM7s/L0oyQZS DLJyDvc4HvKq8Q9H4zLtwh9acVJQjF4Gm59YUENfIv4y3xWywLAs7O4sRtlAdCRglpbQ hcO0kzRwXDZq5riIgNonxjP2aM4RPAtXuQE4SdowP2WxdY1o/20ioCSTfWzP2QKP6QaQ NhHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="o3rI/VZU"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j7si21815226ejm.280.2021.05.18.11.17.15; Tue, 18 May 2021 11:17:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="o3rI/VZU"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345611AbhEQQNb (ORCPT + 99 others); Mon, 17 May 2021 12:13:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:36778 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343988AbhEQPtp (ORCPT ); Mon, 17 May 2021 11:49:45 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id AA71261960; Mon, 17 May 2021 14:45:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621262726; bh=P2EqQavx1rP6XcL6iz3KrATM+pJWU8gQ3J8eYh0pZXE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o3rI/VZULBRI2jM4q092RdV3HIQ1wJkuDivh+rZFTP03tngelUR1/+dnfpfHyIIOc HezEaAhnyKY7O4jLIM5GFWPsowtn+mqYH2DyHNIr+Thio6wTjz5tq8fIBR01XoaOSk k2sqbF4BMFIzZCjSITos6wstnU576gSQvysySB40= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Pawe=C5=82=20Chmiel?= , Krzysztof Kozlowski , Sylwester Nawrocki Subject: [PATCH 5.10 281/289] clk: exynos7: Mark aclk_fsys1_200 as critical Date: Mon, 17 May 2021 16:03:26 +0200 Message-Id: <20210517140314.601214583@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517140305.140529752@linuxfoundation.org> References: <20210517140305.140529752@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Paweł Chmiel commit 34138a59b92c1a30649a18ec442d2e61f3bc34dd upstream. This clock must be always enabled to allow access to any registers in fsys1 CMU. Until proper solution based on runtime PM is applied (similar to what was done for Exynos5433), mark that clock as critical so it won't be disabled. It was observed on Samsung Galaxy S6 device (based on Exynos7420), where UFS module is probed before pmic used to power that device. In this case defer probe was happening and that clock was disabled by UFS driver, causing whole boot to hang on next CMU access. Fixes: 753195a749a6 ("clk: samsung: exynos7: Correct CMU_FSYS1 clocks names") Signed-off-by: Paweł Chmiel Acked-by: Krzysztof Kozlowski Link: https://lore.kernel.org/linux-clk/20201024154346.9589-1-pawel.mikolaj.chmiel@gmail.com [s.nawrocki: Added comment in the code] Signed-off-by: Sylwester Nawrocki Signed-off-by: Greg Kroah-Hartman --- drivers/clk/samsung/clk-exynos7.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) --- a/drivers/clk/samsung/clk-exynos7.c +++ b/drivers/clk/samsung/clk-exynos7.c @@ -537,8 +537,13 @@ static const struct samsung_gate_clock t GATE(CLK_ACLK_FSYS0_200, "aclk_fsys0_200", "dout_aclk_fsys0_200", ENABLE_ACLK_TOP13, 28, CLK_SET_RATE_PARENT | CLK_IS_CRITICAL, 0), + /* + * This clock is required for the CMU_FSYS1 registers access, keep it + * enabled permanently until proper runtime PM support is added. + */ GATE(CLK_ACLK_FSYS1_200, "aclk_fsys1_200", "dout_aclk_fsys1_200", - ENABLE_ACLK_TOP13, 24, CLK_SET_RATE_PARENT, 0), + ENABLE_ACLK_TOP13, 24, CLK_SET_RATE_PARENT | + CLK_IS_CRITICAL, 0), GATE(CLK_SCLK_PHY_FSYS1_26M, "sclk_phy_fsys1_26m", "dout_sclk_phy_fsys1_26m", ENABLE_SCLK_TOP1_FSYS11,