Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2894382pxb; Tue, 24 Aug 2021 10:03:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7bWKD/mV9xPjNPNkqJZgTJbBVPSjjvtQEF6odJnJdvjUzv9Nx9o8XbtUdb2zm3bKmaXTY X-Received: by 2002:a02:ca06:: with SMTP id i6mr35056913jak.81.1629824589059; Tue, 24 Aug 2021 10:03:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629824589; cv=none; d=google.com; s=arc-20160816; b=lVdvU4nGY79thJEp8AqIXQ5Fs5q40kdT9ImUyG5iPJEj9XyBCZ97UCr0KXtlpMRxhH rl1ZudWW3tnxBp+XQufMLTd59gd5aurDmgz2UQTQm9vWI9J8TIsJqgOu5JRl67k+/P+a 8hcB45m9acvoEWNd7JLHYAeicL936SysthJyt2iEqO0qZi2E8s7AfqtuG0+FIpZ9ALd3 cxWEYiTEOgjfp8JWj79f616cRyNOgG6YE7NGKwgWYjRp3xoDPWjsttAra5C52R7RG/lq gpnyJ/X+Sk0/uv/cDJ/2sBlLFfpiPDKSqy+0axx27q3PBvC6rYr+DaUND0zBw4C3bQHl QaGw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ZHWsXxF/VNQix7gp//6NDu7Ck66O8NlqxFh2H12RWWI=; b=RBLmBnGSBRSPwdlV4WJYSKNXyc1rzOy1N/sswEldFv9DkALK+RotoGuxkjETlMdl7A hHnRPniSMgXdSz/NNeopHiWefOwBPpB1s/dL+BDnrS7yfqxo3c0oKcHDTY1dX5Ode+hO QuicRIUE1/SuOZ7albcqvHxHyLsyR1wJwVVFJrNYIOJebHzywOuifAUBO7B6Kj5RPEak PvMwZtegwWBqgJcStnVXdd8/nWTBzqzDGG2dvr58tYACxYRiUBVBtC1X73uDQAjwsnwp cBPWOLF0LoTbh5ncRgWo5vBGdBc09sDErdeTmYgn2KBaeTVp2lzbWM2d6k2keHXUAbOC 6RzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PP0duNpl; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g2si23096307ioo.75.2021.08.24.10.02.48; Tue, 24 Aug 2021 10:03:09 -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=@kernel.org header.s=k20201202 header.b=PP0duNpl; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238659AbhHXRCp (ORCPT + 99 others); Tue, 24 Aug 2021 13:02:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:39066 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239051AbhHXQ7r (ORCPT ); Tue, 24 Aug 2021 12:59:47 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E6F3961452; Tue, 24 Aug 2021 16:57:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629824256; bh=qwQ7SaZ0wfykj1iky8lmbdBzWHrS+Kn+mxuPu4iNuKY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PP0duNplEyj2/o9mdTGhYZi5Hn0nEXd6RZMSYzeqzfrdCbsQUbpAwaMXtxhI2M0iZ 7R4JDshaVYMCGgGUmTqhHoyrpYNiSkm43sImXZZ2s6xeFzKO+K30pm4NHAvUPMME5d ajswtFzAA0d1noJ94l89DstXzHISjkmSmtKC7iMeAHxL6QkeX6fKKgmCxel3EaWFOG eu5kBcU43i6K+oiwKZvjNHFqs+pRI5bDAT4Ih7RYy5DWnrtGgPB20JhQ0UC96Vg9AS Wy00IqkX83IG3bsB55hLnzK2B1UdsT98uC0lS5OBAmJHMiLyRW/n4V4lC5RuhuuYCM A0TW5l+W/3m3Q== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Dong Aisheng , Abel Vesa , Stephen Boyd , Sasha Levin Subject: [PATCH 5.13 089/127] clk: imx6q: fix uart earlycon unwork Date: Tue, 24 Aug 2021 12:55:29 -0400 Message-Id: <20210824165607.709387-90-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210824165607.709387-1-sashal@kernel.org> References: <20210824165607.709387-1-sashal@kernel.org> MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.13.13-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-5.13.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 5.13.13-rc1 X-KernelTest-Deadline: 2021-08-26T16:55+00:00 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dong Aisheng [ Upstream commit 283f1b9a0401859c53fdd6483ab66f1c4fadaea5 ] The earlycon depends on the bootloader setup UART clocks being retained. There're actually two uart clocks (ipg, per) on MX6QDL, but the 'Fixes' commit change to register only one which means another clock may be disabled during booting phase and result in the earlycon unwork. Cc: stable@vger.kernel.org # v5.10+ Fixes: 379c9a24cc23 ("clk: imx: Fix reparenting of UARTs not associated with stdout") Signed-off-by: Dong Aisheng Link: https://lore.kernel.org/r/20210702085438.1988087-1-aisheng.dong@nxp.com Reviewed-by: Abel Vesa Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- drivers/clk/imx/clk-imx6q.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-imx6q.c b/drivers/clk/imx/clk-imx6q.c index 496900de0b0b..de36f58d551c 100644 --- a/drivers/clk/imx/clk-imx6q.c +++ b/drivers/clk/imx/clk-imx6q.c @@ -974,6 +974,6 @@ static void __init imx6q_clocks_init(struct device_node *ccm_node) hws[IMX6QDL_CLK_PLL3_USB_OTG]->clk); } - imx_register_uart_clocks(1); + imx_register_uart_clocks(2); } CLK_OF_DECLARE(imx6q, "fsl,imx6q-ccm", imx6q_clocks_init); -- 2.30.2