Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1920419pxb; Mon, 18 Jan 2021 03:36:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJz8tTUSjqz6s4QJSCB7Hhl37maNMOtSfk40HuzEeIRCwHUk+DjDhTsId8VWWfxXNLNQvF7I X-Received: by 2002:a17:906:34c3:: with SMTP id h3mr16889861ejb.132.1610969770795; Mon, 18 Jan 2021 03:36:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610969770; cv=none; d=google.com; s=arc-20160816; b=VQBdyY5UVFfg7k6VRXUr6BbpKeuo0f7T6qmd6t9GxqQ6pKzzOll3eaUYPBRvkNxIhX VzFbbFx6D+JGrkv+Q8b0CxJmY8i8czxjP9+G3QUZvU/V5uaNKcXyA26mZc3BCL5duvvv JaI5u8y8qNeOVwFcHYxLwZbUpbHPBHomdUll4VTfAyTAnEJh12qtGzWEnJ1GQaS7R4sd neGKGhgg4iuq57xObTTIsjmLsyWUOF5x4lDuGAfOXSivSDpq4Q0j4uq+eB6BKCW9Nhgn nROsVoPFZIaDcDbTtpVXk0/GR7q5f2r/maJeW63vF5eqFb1UZL/MIG0h2uU78PU0x9ZI mPfg== 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 :message-id:date:subject:cc:to:from; bh=Y/6jB3gR6epbHggG6Wyzpk+TNtGw198SobXhSLY+m1w=; b=n0A121BVI3HgtF5I8v0eAhjblPXDKbkLH4pkr3RAr2jsGqUKH7LjjvbMPCdvWAxnyH h6iO2k41Pab83CtWUSy3qUTGY3xbcuMwVuTv+gylfTOviqxvzOOmrOWeW2lduGQeb5tg naWHboT+n7wSJej7SVYvzq+zmpVhnalQM8yn1XrXGo7zn4geer0tBlopwGdJP3JsB54U Pvg+BwO1zb2+kah1J5zkU9DkfSefa7SstDNWqbMk4dxAzZqHxGfw8sQWNi70sHEqqHEe 25EenCIXOGsVB1YxvwTVZcYhPNJSN3OW9L5YJEtDW7arox3/v+JckLZz1c+WgcbzbbtR WfWw== ARC-Authentication-Results: i=1; mx.google.com; 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 dn22si8259081edb.175.2021.01.18.03.35.48; Mon, 18 Jan 2021 03:36:10 -0800 (PST) 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; 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 S2390338AbhARLdW (ORCPT + 99 others); Mon, 18 Jan 2021 06:33:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390270AbhARLbo (ORCPT ); Mon, 18 Jan 2021 06:31:44 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86E6EC061574 for ; Mon, 18 Jan 2021 03:30:56 -0800 (PST) Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l1SkC-0001Ck-Vn; Mon, 18 Jan 2021 12:30:48 +0100 Received: from afa by dude.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1l1SkC-0005bF-He; Mon, 18 Jan 2021 12:30:48 +0100 From: Ahmad Fatoum To: Michael Turquette , Stephen Boyd , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: Ahmad Fatoum , Fabio Estevam , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] clk: imx6q: demote warning about pre-boot ldb_di_clk reparenting Date: Mon, 18 Jan 2021 12:30:32 +0100 Message-Id: <20210118113032.21178-1-a.fatoum@pengutronix.de> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7 X-SA-Exim-Mail-From: afa@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since 5d283b083800 ("clk: imx6: Fix procedure to switch the parent of LDB_DI_CLK"), the clock driver warns if ldb_di\d_sel is changed from reset value on system boot. This warning is printed even if the bootloader (or a previous kernel that did kexec) followed the correct procedure for glitch-free reparenting. As such systems are doing everything correctly, a warning is too harsh. Demote to a notice, so users are still alerted, but without cluttering a loglevel=5 boot. While at it, add the words "possible glitch" into the log message, to make it more user-friendly. Signed-off-by: Ahmad Fatoum --- Cc: Fabio Estevam v1 -> v2: - added "possile glitch" to error message to make more useful (Stephen) --- drivers/clk/imx/clk-imx6q.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk/imx/clk-imx6q.c b/drivers/clk/imx/clk-imx6q.c index b2ff187cedab..521d6136d22c 100644 --- a/drivers/clk/imx/clk-imx6q.c +++ b/drivers/clk/imx/clk-imx6q.c @@ -338,10 +338,10 @@ static void init_ldb_clks(struct device_node *np, void __iomem *ccm_base) of_assigned_ldb_sels(np, &sel[0][3], &sel[1][3]); for (i = 0; i < 2; i++) { - /* Warn if a glitch might have been introduced already */ + /* Print a notice if a glitch might have been introduced already */ if (sel[i][0] != 3) { - pr_warn("ccm: ldb_di%d_sel already changed from reset value: %d\n", - i, sel[i][0]); + pr_notice("ccm: possible glitch: ldb_di%d_sel already changed from reset value: %d\n", + i, sel[i][0]); } if (sel[i][0] == sel[i][3]) -- 2.30.0