Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2901859pxb; Tue, 24 Aug 2021 10:12:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2177RfGskDUzXMFy+tekeTS1v0jPu2iVcJOo5PH2t81z2Zk0XNjkDJuwsf20a/6S+WmDh X-Received: by 2002:a92:cb4d:: with SMTP id f13mr27998812ilq.220.1629825154628; Tue, 24 Aug 2021 10:12:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629825154; cv=none; d=google.com; s=arc-20160816; b=qhWqskBEncnIzNLd76O3bz1oBgrFiIi3Dip3WlnrPIJ5prmAXVJmwoJFSEHJ0M7XEH t9miGVxra+WQbX2exfK+oZYaKWRYdUDFBS4MubpVVdVMEFXv0H6Ix4pcLl5KoQDlxFAH PcFdyQRejnYc6TJLzu07HaAPvfZmfqdE6Z03xQi3d2CCOrZMDwK5h4QF2OQfigBmbN6Y psLrMQpo87tpJ+5wBIfV9cMpPGfLU72Sdq8Equ4G46G8C5axUE4PP2tAiZLRLE+lgb3v 5u5UnPDsvnlqImnMrscjRb9tz14AuqzQ03YDRng1w09u74XRcZzopUuq5O2n6FhrNBS6 lHWg== 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=qIrkkzibJdOuUfr2SYJ/MpAeil3p+io77bNdkEfSxs8=; b=KWMK4oMFuW0Vgj+YGK6/kd8M+Du04ZlEIjDXyEZ0pEGEeRJhNr8MXtS1x3onrYaWcK cnipddCAZbTgx0cWnai4Bwi2UiUEI+Ck6aE5FDdroMdMNzGwRs7PbkWxDAhWZM8wB9aa 62voBVtnYbPWSG5NQLaRQFxm5tWiWRd+J6RYbsY5yeNDooZP/U5vv92voCibAt2NClRb qQpFlXdGC2mbj3OYH/h3zEImlu+2WFWatFlPV2nYivDYv74CqzCmBFHgcIK8CdNKQJcV axYouKDcGm4RqyTNsEEmw8Y1xFyyjgCly5Ae7dhql0+rtjmHyzT6j+y0Gl5PH5tRy4Eb ONHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VBNaWU5w; 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 r17si20028947ilj.23.2021.08.24.10.12.23; Tue, 24 Aug 2021 10:12:34 -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=VBNaWU5w; 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 S238430AbhHXRM2 (ORCPT + 99 others); Tue, 24 Aug 2021 13:12:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:51256 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239995AbhHXRJw (ORCPT ); Tue, 24 Aug 2021 13:09:52 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 57B2961A53; Tue, 24 Aug 2021 17:00:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629824426; bh=Tjq5f9hG31kCz0NjLuq0v1QYChjHR8EwaoWS3BdxKAU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VBNaWU5wG/GDzHldQKLv7e5hr8u3KYfeMJKxEKEWckn6hvtIzrNwheQptU9iVk3BA uT5KpwQiIULrVJu1nOigMElFZvM25fmAFL8iH7panS9L4qI5hWuiwkkI55/AOXXL79 2hdVxbp+PINeoEc1dAyJsngDS0GykXbt0SmLSx2qERT/QohTG3xbXJ+wtxr6eb0Jl5 bw3sPOvSP7nMwe5yoZU/jqSNpcNEw8/pGKdPBraiykcR2YsRvRfIOPCouVFG2BUYIo y9VPFLGq/pcgYJZC+bHcFrEwjxike48QckehlduJY9o61jhsBQxHnMuKtqsUaqI53Q XGpm9njuE2UVQ== 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.10 76/98] clk: imx6q: fix uart earlycon unwork Date: Tue, 24 Aug 2021 12:58:46 -0400 Message-Id: <20210824165908.709932-77-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210824165908.709932-1-sashal@kernel.org> References: <20210824165908.709932-1-sashal@kernel.org> MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.10.61-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-5.10.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 5.10.61-rc1 X-KernelTest-Deadline: 2021-08-26T16:58+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 f444bbe8244c..7d07dd92a7b4 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