Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp378948imm; Fri, 1 Jun 2018 02:31:05 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ8Ay6LIsNYC+H7/Uy/b7akQgSQcGh61E4gHL0XAErCPgVi4Jfr2YtvLXo2cVUHyXmcO6rw X-Received: by 2002:a63:5ec4:: with SMTP id s187-v6mr8142658pgb.72.1527845465187; Fri, 01 Jun 2018 02:31:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527845465; cv=none; d=google.com; s=arc-20160816; b=nI/Gg6a8KTlUtQtJ/JjM9nX2PC5uERfbDP4m+7C3u1wKExffThhOHYSK12UfX66ioS 5NFVIhlkbYRjBy/KKOeGTnhoP9aR9Y92jEAdFEd96r+UjEQgw33X4nwCNIbMxn7vGTVJ x6Myv6e4N+cR0rzzunW5dpJ8NM5O+MaLA7KNBI5ITtARlNNZMf7J2V7AbwYzXcf3BZZW 4JOaqjmQelB2a3XUdDL27sXtXxlUq1m1xA6TP7fg/O3kt5gGftm6TGdaQlhOxhBRSVOC zUA27XWgP8nWmrJMoePvYaL+SSNfQCVy8i3Y2q7wKPAClRs0lUSXFS6ZTgzbo9u+cayf VseQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=Fy0/+vYjg91cDcPTnsCzdAOWTQjfxBAlXYpeCTVeuYQ=; b=JA9+Cr4vCsm79aTw0HADAz5GYFNpLoqRrWdaU2wZ3H5QfaEJjBzxhFOou1Nv448e+9 EEBWCmdbSTehJEuhHPvH+c6jiiJ+eWa7r8g8PfnzRoBfXxnDDqQuuaX3xE0TgbELVqAc KFYEmlkB0RpoXY/QRvBQC9pvHc5Xy1d6FtURjEdUoEpZUaCEdIB0MEnQNby+F/hE7QPH zO/eND/ay4NOomY5y9hSLNMOQAzRs8wnQKINbV94n0oFcfNZq6f36vVbqKa/ovsl+3X4 fAr65BwKqiEKmY1TccoYuoCN8r++cGTiCJyNvtPLz2NYBJQikDNFIJxZd2K+lU6qdq/B zu8A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b15-v6si10371847pfc.320.2018.06.01.02.30.50; Fri, 01 Jun 2018 02:31:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751812AbeFAJ3s (ORCPT + 99 others); Fri, 1 Jun 2018 05:29:48 -0400 Received: from xavier.telenet-ops.be ([195.130.132.52]:48930 "EHLO xavier.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751624AbeFAJ3H (ORCPT ); Fri, 1 Jun 2018 05:29:07 -0400 Received: from ayla.of.borg ([84.194.111.163]) by xavier.telenet-ops.be with bizsmtp id tMUt1x00j3XaVaC01MUtnM; Fri, 01 Jun 2018 11:29:05 +0200 Received: from ramsan.of.borg ([192.168.97.29] helo=ramsan) by ayla.of.borg with esmtp (Exim 4.86_2) (envelope-from ) id 1fOgMf-0007Zr-JY; Fri, 01 Jun 2018 11:28:53 +0200 Received: from geert by ramsan with local (Exim 4.86_2) (envelope-from ) id 1fOgMf-0003BP-Hm; Fri, 01 Jun 2018 11:28:53 +0200 From: Geert Uytterhoeven To: Jia-Ju Bai , Jonathan Corbet , Michael Turquette , Stephen Boyd , Zhang Rui , Eduardo Valentin , Eric Anholt , Stefan Wahren , Greg Kroah-Hartman Cc: Sergey Senozhatsky , Petr Mladek , Linus Torvalds , Steven Rostedt , linux-doc@vger.kernel.org, linux-clk@vger.kernel.org, linux-pm@vger.kernel.org, linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 1/4] clk: renesas: cpg-mssr: Stop using printk format %pCr Date: Fri, 1 Jun 2018 11:28:19 +0200 Message-Id: <1527845302-12159-2-git-send-email-geert+renesas@glider.be> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1527845302-12159-1-git-send-email-geert+renesas@glider.be> References: <1527845302-12159-1-git-send-email-geert+renesas@glider.be> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Printk format "%pCr" will be removed soon, as clk_get_rate() must not be called in atomic context. Replace it by open-coding the operation. This is safe here, as the code runs in task context. Signed-off-by: Geert Uytterhoeven --- drivers/clk/renesas/renesas-cpg-mssr.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/clk/renesas/renesas-cpg-mssr.c b/drivers/clk/renesas/renesas-cpg-mssr.c index 49e510691eeeab07..f4b013e9352d9efc 100644 --- a/drivers/clk/renesas/renesas-cpg-mssr.c +++ b/drivers/clk/renesas/renesas-cpg-mssr.c @@ -258,8 +258,9 @@ struct clk *cpg_mssr_clk_src_twocell_get(struct of_phandle_args *clkspec, dev_err(dev, "Cannot get %s clock %u: %ld", type, clkidx, PTR_ERR(clk)); else - dev_dbg(dev, "clock (%u, %u) is %pC at %pCr Hz\n", - clkspec->args[0], clkspec->args[1], clk, clk); + dev_dbg(dev, "clock (%u, %u) is %pC at %lu Hz\n", + clkspec->args[0], clkspec->args[1], clk, + clk_get_rate(clk)); return clk; } @@ -326,7 +327,7 @@ static void __init cpg_mssr_register_core_clk(const struct cpg_core_clk *core, if (IS_ERR_OR_NULL(clk)) goto fail; - dev_dbg(dev, "Core clock %pC at %pCr Hz\n", clk, clk); + dev_dbg(dev, "Core clock %pC at %lu Hz\n", clk, clk_get_rate(clk)); priv->clks[id] = clk; return; @@ -392,7 +393,7 @@ static void __init cpg_mssr_register_mod_clk(const struct mssr_mod_clk *mod, if (IS_ERR(clk)) goto fail; - dev_dbg(dev, "Module clock %pC at %pCr Hz\n", clk, clk); + dev_dbg(dev, "Module clock %pC at %lu Hz\n", clk, clk_get_rate(clk)); priv->clks[id] = clk; priv->smstpcr_saved[clock->index / 32].mask |= BIT(clock->index % 32); return; -- 2.7.4