From patchwork Wed Jul 8 14:45:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 11651767 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3D60F13B6 for ; Wed, 8 Jul 2020 14:47:23 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 15CC520786 for ; Wed, 8 Jul 2020 14:47:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="mHmEY2WT"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="CJizyAfV" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 15CC520786 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Owner; bh=foPpuC0g6iGSl1aNmgph8/nOqK1JjXI73VrJm4tZ+vI=; b=mHmEY2WT9FOaC1ZEUdl8xnyN6d RMVr8MFP5q8QiOzPnN2F/aOd+tITlUd0cJU6zc7apb1kaq/1USGL0PhTVX4TNDNIcKDjM1aI6Wj1D 9JXOeCA59nybZ351615zm/USWIFk+B9LfpXyBu67YyRBh8Gz+Ppao9r8Fruoj7qRELSyk6ptfHZ6M OU91DS4dqYJCfu1eHlJeA7R5GuEz6k/qg2pVe2UfbRduiwNDDZZJenx8qkcPINJXVOYyBiAdN1Svu qNRhyDwz/QUnNvk72Mrkqtdcr3SVa5UN/9vcGS5Ny8dVyW7TAMgwQUnRd7d8s4jl1ZuanUZgyM7V2 bGDTFRSQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jtBKO-000080-RR; Wed, 08 Jul 2020 14:45:40 +0000 Received: from mail-ej1-x643.google.com ([2a00:1450:4864:20::643]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jtBKL-00007G-Uk; Wed, 08 Jul 2020 14:45:38 +0000 Received: by mail-ej1-x643.google.com with SMTP id f12so24642344eja.9; Wed, 08 Jul 2020 07:45:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=RdfWn03vRZooKuWSX0Y9p+HO6KzHdtLgw16so87+iZE=; b=CJizyAfVuX2RfMehSevr1t4fopl7nciJWOw82DAWph6fURt2MSJlRryCIgFKrxgofB TP+8Ig45ia2G+Qs6xzxtGkaPr3oJjiJ+DoTytD306TbFHX59zXtHGJwsXH6gkMm0HEfu 0y63873T1NCTzNjshTA3JXKgdijPdEIRUSMmGLBglOjioC50pXKOD9FHqZCVTOvGJNVo Odva0/dO225Iwhit4dqTqi3rGe1SMRZvY7ylOBSygSEwY0WHqwJWpXjbE0HNdWjo6/s+ LjVJnMxYV6vuBlAewZeD+FXJvGGoJeEWdIxDydasNZpdyprVEEWxWSMoOC56B+iNJRdI Cd6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=RdfWn03vRZooKuWSX0Y9p+HO6KzHdtLgw16so87+iZE=; b=qez5hZGv4XNPfb+lyJyLD8rc+X8f05MQ+9WuxQtAgy2eXRW2Q7KpWtK+kJ9VPR23G4 iWYeYcU0WyA7kJuT5bIK/vBRXJ5oWQ0OQY4TwmFUcyQDWXARDkD0YO5XdelFCIG2fwuy ZK6b2Fg5g3c4HoTIondMeDEbpPHxTra/lUmEOmH6BmKstWSpJoJJ62zQMbj/rPiMW40B 3/x/yi7e8pNiHUGokhW4k8vWGE5ESlnMHHwNFFEQhuFlF/0p3am8ouUlpFSvu4fQFEJb eLwRUzxqNp3MKB5vPSkkZ6LNQ/fXT2pltDdvDU4sQ2ojYQeT6Dn1soxo7QdMraEYBOmJ fxQw== X-Gm-Message-State: AOAM531zb71eyGSr9ME37mDFkCgZfiIufywjB7VxnvboRd5RDgZvMgF2 Gp9y4D+yEFs3O7agz00YgYY= X-Google-Smtp-Source: ABdhPJzR2jRjEGYSUyaOrdtfGtwk7CFmfjsZiD2qcbvBmzFKFC6WC0lRLu5+lMT/azD/9cFsvxS7zw== X-Received: by 2002:a17:907:9c6:: with SMTP id bx6mr52133016ejc.43.1594219536533; Wed, 08 Jul 2020 07:45:36 -0700 (PDT) Received: from debian.home (ip51ccf9cd.speed.planet.nl. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id z22sm28545654edx.72.2020.07.08.07.45.35 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Jul 2020 07:45:35 -0700 (PDT) From: Johan Jonker To: heiko@sntech.de Subject: [PATCH] clk: rockchip: mark pclk_uart2 as critical on rk3328 Date: Wed, 8 Jul 2020 16:45:28 +0200 Message-Id: <20200708144528.20465-1-jbx6244@gmail.com> X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200708_104538_055108_30C416F5 X-CRM114-Status: GOOD ( 11.11 ) X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:643 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [jbx6244[at]gmail.com] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [jbx6244[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: sboyd@kernel.org, mturquette@baylibre.com, zhangqing@rock-chips.com, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The rk3328 uart2 port is used as boot console and to debug. During the boot pclk_uart2 is disabled by a clk_disable_unused initcall. Fix the uart2 function by marking pclk_uart2 as critical on rk3328. Also add sclk_uart2 as that is needed for the same DT node. Signed-off-by: Johan Jonker --- drivers/clk/rockchip/clk-rk3328.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/rockchip/clk-rk3328.c b/drivers/clk/rockchip/clk-rk3328.c index c186a1985..cb7749cb7 100644 --- a/drivers/clk/rockchip/clk-rk3328.c +++ b/drivers/clk/rockchip/clk-rk3328.c @@ -875,6 +875,8 @@ static const char *const rk3328_critical_clocks[] __initconst = { "aclk_gmac_niu", "pclk_gmac_niu", "pclk_phy_niu", + "pclk_uart2", + "sclk_uart2", }; static void __init rk3328_clk_init(struct device_node *np)