Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp1211744pxa; Fri, 28 Aug 2020 06:54:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGOZ0ylm/s/DDh4nBf2JyzxUbtn2mmEVVNK00MsLVGOrtKWVBoqy3g1zNoNtIgDfxkVkWr X-Received: by 2002:a17:906:5383:: with SMTP id g3mr2028239ejo.370.1598622840424; Fri, 28 Aug 2020 06:54:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598622840; cv=none; d=google.com; s=arc-20160816; b=VqkCpkMW/AIiv+1nLIASZTcnX5nlYkgoDI9ubEkqUS/BwizHolbjjW4vYoFUIBStpj TyDQ5PQSCOM9hWlkccuqcniPx1oplLXJDeDJz0/fM/lBq2kYXkWnHpUo5s1IejnozM+X TB+uH8rPmSlxe0JmKrISUooJQKdya6fZ5/CIDCiaPusB4tT0ys+WKlboEC9s0NzWFBEo 7c4qqOJbe/U6Aoqn6Q45jhNpfwc2k9DT7XHNh6b0/s/1bQ+gVQtORb/eztQsbR8aZDWZ K01WkHs5vmoH1AGrmEaBvwbdrTbRQx0bN/rOVLR3B6kHIyBCiFL//LXRwoJ1ZOzNZJeB iERA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:in-reply-to :subject:cc:to:from:user-agent:references:dkim-signature; bh=bBT41PTjpkxeOtnmEoEMjQZW/IInuRmPz2VzLucUDlQ=; b=D2YlWrDmF9/s2UaBkPPQJIIXXnJSIM4jxwBZdnXbLVMxXuJjJzXhPXD/hmsUqbM9qb 647NwugpRHqL1/ZBhJcGeJhv+wGkLmCLe/1I3Q4VZ7y2KpERA1OVQROw2yFV3/ydiD2k 1hqSW9dRw+2XNHMzlxOF33WA2hV/ExjZyJGWTrpBd4ay0+GUleAqDcy2ZMxI6wJNNGIH h7yPDdoOwc2erunxCPIWVAf0K9JvFdrgECxkkfT1y6WGP3RH0hoQz9yo9z0dU7PHXq3C JIqKXpWTDjuJZ8k9pF74PQPsLmVMcaAW2umIU4tpsml3jRJL86/XXkz51/FpjBOwJOYz kfRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=TXNXRBoW; 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 h5si713045ejq.648.2020.08.28.06.53.38; Fri, 28 Aug 2020 06:54:00 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=TXNXRBoW; 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 S1726938AbgH1Nwj (ORCPT + 99 others); Fri, 28 Aug 2020 09:52:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726845AbgH1Nwa (ORCPT ); Fri, 28 Aug 2020 09:52:30 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 164C8C061232 for ; Fri, 28 Aug 2020 06:52:27 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id b18so1385533wrs.7 for ; Fri, 28 Aug 2020 06:52:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=bBT41PTjpkxeOtnmEoEMjQZW/IInuRmPz2VzLucUDlQ=; b=TXNXRBoWbCfR99+m6BuMsne9w7crcganml+VXuM1yhnfzWuyUSH8bIO08cnzoDO+m2 PoOxZ1XZCWmVpvGmwWQSOXJw8a5zy9utICHylZEC+OGmvvM+QZIjILR4hLtGB+1X93Jx O/E3s9+nzriK6Li1EY/CGNZUVV1GIWCo88e38bMCc/Z8OHPMRXlEVyKa2H1XaGeqI/x1 U20TwxVeAX8bhrWFpGEgnobemVoi0YqygRdkRKKfARSa4l1O3vW3v11LyqgF3ItXNNHq Wxy6Sa5yhI+DBZLt7+i/9zzueqt/+yzl5+rlXPifogidu42yZjHC28pPr+inXDVkeczj RHPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=bBT41PTjpkxeOtnmEoEMjQZW/IInuRmPz2VzLucUDlQ=; b=ecqo3BiZc4xKi0dcT0NQdhR6Tgtk2Gww/jpOTmq58KmJDoFYRGkv9/R+WNmLgZGoS0 KuzyaThIFUCg1jpHFLH4EAdTtmXIhOgdzyi4j1oa0EWsYEx7GISjwP5I6absMuSKsz6y bFxR9uTsakxTKFHzDzACIWRM77AN/9x+8yhd5H6blgKM+AryUu1SgrDizZhzDZvAvO6S KM8663KYK3JUmtlFeOLTcEjSukLdBr2n5Edhbhzr2miPhv7zEtjbruYa1wphZbc4R2s4 i5dWjwzv83yerGIkXVc9gSr0qeJp6DBRbxVkcOzy+1AY/N2NxbSRFaR2of5tLM+KnPR0 IakQ== X-Gm-Message-State: AOAM531e0fBlWZqElq0NokKEU98ER8OYgRb2ozXIQOloTUTXPk+11w6W BvirkmkRCdLGxFEnfF3x3PoLKQ== X-Received: by 2002:adf:e78b:: with SMTP id n11mr1624422wrm.256.1598622745919; Fri, 28 Aug 2020 06:52:25 -0700 (PDT) Received: from localhost (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id m11sm1993303wrn.11.2020.08.28.06.52.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 06:52:25 -0700 (PDT) References: User-agent: mu4e 1.3.3; emacs 26.3 From: Jerome Brunet To: Stefan Agner , narmstrong@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, Marek Szyprowski Subject: Re: [PATCH] clk: meson: g12a: mark fclk_div2 as critical In-reply-to: Date: Fri, 28 Aug 2020 15:52:24 +0200 Message-ID: <1jft867u93.fsf@starbuckisacylon.baylibre.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 27 Aug 2020 at 23:43, Stefan Agner wrote: > 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, > }, > }; Hi Stephan, Thanks for reporting and fixing this. That's unfortunately the things we have to find the "hard way" Could you please: 1) add a Fixes tag to commit description so stable can pick it up Fixes: 085a4ea93d54 ("clk: meson: g12a: add peripheral clock controller") 2) Add a comment similar to the comment block of fdiv3 so we are pretty clear why this clock needs to be critical and don't have to dig in history find out. Also please Cc Marek Szyprowski ... you guys apparently found this at them time :) Thanks