Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp743416pxa; Thu, 27 Aug 2020 14:45:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1TRC4WVVHlbskdEUt5lS2eXIGOYFJF78J+y4rJG7LRhqh5NKuD/T+QE3sqeRKKqpYWjz0 X-Received: by 2002:a17:906:eda2:: with SMTP id sa2mr24203916ejb.166.1598564699905; Thu, 27 Aug 2020 14:44:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598564699; cv=none; d=google.com; s=arc-20160816; b=M+Q+jLxn1Rnv6AK8ZF0Zb6NM6uVvdjXft8gbNdUFrTn/al35PlJEA2ABAC4jva/X8C SAjRsraUVLoXoHJmVvI8aM+N2adWyxeQPJ4F9LnBrIo5WR6BFS2hooIohiCHYOOhznVp b1ase2OjLQbIsTQcfoTOR+Uz4fhHePUAXX0qczSxHyYbpEsLtnh9xOSkRIlb6OQlpPXi ujZJnSm/l8dYJ9pVE59uLprxs2/6rxDOL7KjLS4ZprkiVfd1v+SY7s3uvGoZTHE76dn6 fGlJEzXOTzFQBkJz//XBxOLLSIBYuHce74JSfIQjT0s8gBOn5mzevttq7aUNsG6mR1UG G9Iw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=9JtOjhabbWIc8Ze4vQoeOAqSEJ2W24d6AiC6SaHT6FY=; b=jSUSV6+DMClkb2vz+nNI4ghb1+DzD9UvR1SymM6Jkz/gBzsTs6weZCq9mJGbugjwaY NzjY8jmYzZhbUu/9mpaPgucjIxPN0SomcFLsB/j286WF4ASfYsG+GRTR3T15FNiebV3q zEZu8CC7c27cyHCDtVZZuTYNoEcPt7MsZNP8NBvcfhK2SJ8sPybs/i+E3XHOiDDUuwto 5ATSIUsPKycfAZneCEBxkJUvdDq7BNmXyEIXS/G0yPpo8ESpuB9db5nZx8UsrmaKPVvR 1XgaxxU3HUfyv+u3nD7jlIkScYPM6wjnRHLhjvyl+QCzqxES9IksrAjkppTiMt2nDopd U8yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=S+DqJmoU; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b3si2263860edj.162.2020.08.27.14.44.36; Thu, 27 Aug 2020 14:44:59 -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=@agner.ch header.s=dkim header.b=S+DqJmoU; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727008AbgH0Vn4 (ORCPT + 99 others); Thu, 27 Aug 2020 17:43:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726147AbgH0Vnz (ORCPT ); Thu, 27 Aug 2020 17:43:55 -0400 Received: from mail.kmu-office.ch (mail.kmu-office.ch [IPv6:2a02:418:6a02::a2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0363C061264 for ; Thu, 27 Aug 2020 14:43:55 -0700 (PDT) Received: from allenwind.lan (unknown [IPv6:2a02:169:3df5::4db]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 450AF5C246D; Thu, 27 Aug 2020 23:43:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1598564628; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=9JtOjhabbWIc8Ze4vQoeOAqSEJ2W24d6AiC6SaHT6FY=; b=S+DqJmoUOw7rynz3V6Z/5czgjniVBUNcFlPi9jafL5jRjc2WRXzbdRaf4SkRnbtDE3c14f YRqnqepPP0QVd3V3FnftbWaYEtkh412UyU4ikzbs6nWz98e4sPV715EabbDRfuiLyXCJa5 8E+2iIb5yGAfJ5wpwwgVzsearP2GpF8= From: Stefan Agner To: narmstrong@baylibre.com, jbrunet@baylibre.com Cc: mturquette@baylibre.com, sboyd@kernel.org, khilman@baylibre.com, linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, stefan@agner.ch Subject: [PATCH] clk: meson: g12a: mark fclk_div2 as critical Date: Thu, 27 Aug 2020 23:43:44 +0200 Message-Id: X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Amlogic Meson G12b platform, similar to fclk_div3, the fclk_div2 seems to be necessary for the system to operate correctly as well. Typically, the clock also gets chosen by the eMMC peripheral. This probably masked the problem so far. However, when booting from a SD card the clock seems to get disabled which leads to a system freeze. Let's mark this clock as critical, fixing boot from SD card on G12b platforms. Signed-off-by: Stefan Agner --- drivers/clk/meson/g12a.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/meson/g12a.c b/drivers/clk/meson/g12a.c index fad616cac01e..2214b974f748 100644 --- a/drivers/clk/meson/g12a.c +++ b/drivers/clk/meson/g12a.c @@ -298,6 +298,7 @@ static struct clk_regmap g12a_fclk_div2 = { &g12a_fclk_div2_div.hw }, .num_parents = 1, + .flags = CLK_IS_CRITICAL, }, }; -- 2.28.0