Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3700544ybv; Mon, 10 Feb 2020 04:58:51 -0800 (PST) X-Google-Smtp-Source: APXvYqyDwD0j/bCkbQ+7YYV/oT2CsTWe8+9VCIBshD7OSmosfUDpFfLaIlmrVPthtG4wd8GvDRBc X-Received: by 2002:a05:6830:4cd:: with SMTP id s13mr920220otd.181.1581339531433; Mon, 10 Feb 2020 04:58:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581339531; cv=none; d=google.com; s=arc-20160816; b=HplgZXVKTj1dGhuw4Eb0OsHP8WSLk1KOmVJd9ceuZ+eJmx6bBqMCY7soct1tXMWIoU oPhB3tZy5Y+dt8yRglBW4PUXk8NwWR0X3NTFQqFMaI6YCBiaWN3HxYavBndNPWpwbVZy GV2943bmIciBJClbxZjFmupn5nNt2v5bzGqaYDgdKQVn8HsfAqPHja9RnKSVSF5btHeE fdMqKhY+fv1JjdioDH+1smoH9HgSs2W2wiahNBvYBMYeoDl1sp/8NdFIrN421IkR4BFN q7rcnZKssoyCes42w0D6Mkw3W4qR0Gas4OUR3UNk8/C5KDola7iMqdEE2PpVTk9ZC2tQ 3MkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=4M2QaA7G3k/wj6o70XV2Ud2t7bRLLjUByv0YmnEdhSA=; b=q71IR7R5xY/IZSzkJ+0m6PUMGS64acwmAO/EuHwy+pCU9k9BQWPiqh7VL1fpEhJs9Y WO7CUEahWlSJAeDoj5W20yp044fEpDofl2WQ4Nz0oxteEOuILoAXIhpAYgAR/AAYsUF/ 1wrym+sf6ecYKf5eryvDo167Cmg/40ihjuXF3Uj4Xv5zVMzUCLW/n6WzGNDcEa6MnvpO E9ODljnqTad2pZe5rERNJPhYEu0fTHtRvHSwk+KbLiYMQxnvjNZU2mKOXRiplwHkUT6S 2pk6P313CsNgEqkzCcqfCExigv0wW6Kl6yrBM62ztfszL02ZJrZdQy5pVREttR8PEyWl T4XA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CqhVp2WF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u23si162625otj.242.2020.02.10.04.58.39; Mon, 10 Feb 2020 04:58:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CqhVp2WF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729737AbgBJM5l (ORCPT + 99 others); Mon, 10 Feb 2020 07:57:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:43688 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729992AbgBJMl0 (ORCPT ); Mon, 10 Feb 2020 07:41:26 -0500 Received: from localhost (unknown [209.37.97.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 84C5120838; Mon, 10 Feb 2020 12:41:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581338485; bh=D8T5l3V0maCFMeitKZCGYeNSDO5fmBSPYUdrG64FH/Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CqhVp2WFtxHyY3N6mNopyDz4P4tLSPlrwwYH0sVBGSa5+8053XWPGfnwQZ3bSCtgM mWsuYJl6O1S5jNeIPRCHdI28UJIHjTXuIZwnY0bFO//JiCBlnIDV47i/clRqpcvNBA hf5w2sgUxjFb88o3rXsIswRHNWzJlDddOO1Zglwo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jonathan Hunter , Stephen Warren , Thierry Reding Subject: [PATCH 5.5 265/367] clk: tegra: Mark fuse clock as critical Date: Mon, 10 Feb 2020 04:32:58 -0800 Message-Id: <20200210122448.913715830@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200210122423.695146547@linuxfoundation.org> References: <20200210122423.695146547@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Stephen Warren commit bf83b96f87ae2abb1e535306ea53608e8de5dfbb upstream. For a little over a year, U-Boot on Tegra124 has configured the flow controller to perform automatic RAM re-repair on off->on power transitions of the CPU rail[1]. This is mandatory for correct operation of Tegra124. However, RAM re-repair relies on certain clocks, which the kernel must enable and leave running. The fuse clock is one of those clocks. Mark this clock as critical so that LP1 power mode (system suspend) operates correctly. [1] 3cc7942a4ae5 ARM: tegra: implement RAM repair Reported-by: Jonathan Hunter Cc: stable@vger.kernel.org Signed-off-by: Stephen Warren Signed-off-by: Thierry Reding Signed-off-by: Greg Kroah-Hartman --- drivers/clk/tegra/clk-tegra-periph.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) --- a/drivers/clk/tegra/clk-tegra-periph.c +++ b/drivers/clk/tegra/clk-tegra-periph.c @@ -777,7 +777,11 @@ static struct tegra_periph_init_data gat GATE("ahbdma", "hclk", 33, 0, tegra_clk_ahbdma, 0), GATE("apbdma", "pclk", 34, 0, tegra_clk_apbdma, 0), GATE("kbc", "clk_32k", 36, TEGRA_PERIPH_ON_APB | TEGRA_PERIPH_NO_RESET, tegra_clk_kbc, 0), - GATE("fuse", "clk_m", 39, TEGRA_PERIPH_ON_APB, tegra_clk_fuse, 0), + /* + * Critical for RAM re-repair operation, which must occur on resume + * from LP1 system suspend and as part of CCPLEX cluster switching. + */ + GATE("fuse", "clk_m", 39, TEGRA_PERIPH_ON_APB, tegra_clk_fuse, CLK_IS_CRITICAL), GATE("fuse_burn", "clk_m", 39, TEGRA_PERIPH_ON_APB, tegra_clk_fuse_burn, 0), GATE("kfuse", "clk_m", 40, TEGRA_PERIPH_ON_APB, tegra_clk_kfuse, 0), GATE("apbif", "clk_m", 107, TEGRA_PERIPH_ON_APB, tegra_clk_apbif, 0),