Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp2983184imm; Sun, 1 Jul 2018 09:40:26 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIvULMj8UF/h/qMjHka4M6ShRGUAc9zkcw7I4J5vePuY1gzjZcydaH0J9T/K2HOjljm/1e6 X-Received: by 2002:a63:a319:: with SMTP id s25-v6mr19074788pge.62.1530463226457; Sun, 01 Jul 2018 09:40:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530463226; cv=none; d=google.com; s=arc-20160816; b=nNCYLSJB+c/o2SnbBOkIgAmJhtfRhemZTORWuDGR8VaF6T2m4KfaHUZXk63LgersQI k2nQAx8vOvrwMxRIXqpoMpSAMYMbhmqmk0CbkfM5VMcXYZ3o5DFkMgI8McpQ4WB8nsbX AyThCLy1k05CxcDKly4dY3kWtgR9Pck8lmV5q01ndSTiOCwBNjx4F6uxtJQnPzjWzJNJ ZW7hCISbe8rRgbb231bMDy+Pjfc1hTSWZF+MQADKNGvv71ZAGUyw9+bL8UmMPN7y5Ur8 oj0wscZDCmDSM6we76dr8Xf+3VZTwlW4FDSt0qYvVwpze+FB6/6qTXqDDjeRy+G53tvE TpmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=8zjC/IWgbSlSyOHsLp1SGFlSdI9RygXR7OvRfqAOt3Y=; b=CluSPS74/LNQqv77pa7IUmWz43VMVSdqgWhoVShaRJVOJaO6Uvd9zoixoPekfrOut8 VlbsJQqoEj1tGY07b76LmzUrOGsP1eVHmldIwTArxAAmJAnm0ZUIhBe6Ezt6jg/Wxr8d L7TEaBLEiPTueU+nM7xqthA+6La90okNrN+oAd9kLIb8sKqSCYv9kobnw3nrc3Za7mvZ wmwPCA/+iPZP6EB4rc69d0Flf9dleTCv0+XuZY4ItlVP6BF5+XPrbLu/nj7AQanoaNF0 2preD0J2JVGgeNf6YO6JhMp3LDb3PUZzjtEPYRegr3JgEISXRmm/s3+qXTDpGbRAzFcA D+EA== 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 s2-v6si14173854plq.372.2018.07.01.09.40.12; Sun, 01 Jul 2018 09:40:26 -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 S1031540AbeGAQiG (ORCPT + 99 others); Sun, 1 Jul 2018 12:38:06 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:36562 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031094AbeGAQh5 (ORCPT ); Sun, 1 Jul 2018 12:37:57 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 91ED0AA6; Sun, 1 Jul 2018 16:37:56 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org, Jia-Ju Bai , Jonathan Corbet , Michael Turquette , Stephen Boyd , Zhang Rui , Eduardo Valentin , Eric Anholt , Stefan Wahren Cc: Greg Kroah-Hartman , stable@vger.kernel.org, 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, Geert Uytterhoeven Subject: [PATCH 4.17 032/220] clk: renesas: cpg-mssr: Stop using printk format %pCr Date: Sun, 1 Jul 2018 18:20:56 +0200 Message-Id: <20180701160909.674646762@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180701160908.272447118@linuxfoundation.org> References: <20180701160908.272447118@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.17-stable review patch. If anyone has any objections, please let me know. ------------------ From: Geert Uytterhoeven commit ef4b0be62641d296cf4c0ad8f75ab83ab066ed51 upstream. 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. Link: http://lkml.kernel.org/r/1527845302-12159-2-git-send-email-geert+renesas@glider.be To: Jia-Ju Bai To: Jonathan Corbet To: Michael Turquette To: Stephen Boyd To: Zhang Rui To: Eduardo Valentin To: Eric Anholt To: Stefan Wahren To: Greg Kroah-Hartman Cc: Sergey Senozhatsky Cc: Petr Mladek Cc: Linus Torvalds Cc: Steven Rostedt Cc: linux-doc@vger.kernel.org Cc: linux-clk@vger.kernel.org Cc: linux-pm@vger.kernel.org Cc: linux-serial@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-renesas-soc@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: Geert Uytterhoeven Cc: stable@vger.kernel.org # 4.5+ Signed-off-by: Geert Uytterhoeven Acked-by: Stephen Boyd Signed-off-by: Petr Mladek Signed-off-by: Greg Kroah-Hartman --- drivers/clk/renesas/renesas-cpg-mssr.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) --- 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 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_cor 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 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;