Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp2971535imm; Sun, 1 Jul 2018 09:26:04 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLwbwBEh/XLhpE16+8GwdL52+utlvJCpBg2CEyQ0qv1xfDGmzXvatRx5tZoHn6meg1UTLAs X-Received: by 2002:a63:8b44:: with SMTP id j65-v6mr19057148pge.248.1530462364600; Sun, 01 Jul 2018 09:26:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530462364; cv=none; d=google.com; s=arc-20160816; b=rkKr0gkT93qUk/GTiixZQvM+2Oj+wpw9qJXsWkz8ro9N/tiAXal+okTbRC0VFPdjwd HJcKF4s7yd3ZSZdQyiR/wVo24l0veWXDtCw8xmt3B59YPhG+gg06KS46GAGlxAX47HFY izhe+R+Y2nKfj4Bb4Duog2zwu8tyzX/vgZliRX8ACt70GpMc1DWAH8MhaLvCUxrZEhW8 T6nKhrxxJk4weobINgCCugoxCbcOLGSRxY2NFbnJCc9/6mBjq7tSGJc17AzT/eEvILQ9 ELpyS3JIzOn2TzR1L+SjiO/CuPsw8rn0DybgZx13cHfd08okUSg3PcN9TQJ+CBfjRoGE 2JXA== 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=GPJWCUZxaT8t5ePOe0vrjHoi19h8jIksFdKWwtnLyCU=; b=V9j1DXwT6rXKk0E+223OxTGkAjEYUZmNDP47PGkbz3MusPBXUC6csa+CI3TIRZYi3a QI1oHGiY+zHIhNO1gF0s2aV/EMxINbsf5kZ5vN/lJaq1WNIjhJ3SEAwUoEJB/6GoiTBs mF2KapPW69j2wVSvpqtCYnJLtOZ2aRJm1vn2qyvjMsZskthTPDXExA++le80qJ0bC1zs mye4DmvzHvexlxnzw0Pi5lvDLSmTV5Eqe9p/hgF57ogL1NeVfvvI1/CLGgYwC4FdXE8a HIhutr8mXi4QGnF+fOcanMBXqsH01Y2TkifUcg4LGaOnKCFXIaKQg0/gC5NrPKIHq0hn Dz9Q== 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 l7-v6si7379927pgs.541.2018.07.01.09.25.50; Sun, 01 Jul 2018 09:26:04 -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 S965141AbeGAQYk (ORCPT + 99 others); Sun, 1 Jul 2018 12:24:40 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:33494 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933640AbeGAQYf (ORCPT ); Sun, 1 Jul 2018 12:24:35 -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 1A606AD8; Sun, 1 Jul 2018 16:24:34 +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.9 015/101] clk: renesas: cpg-mssr: Stop using printk format %pCr Date: Sun, 1 Jul 2018 18:21:01 +0200 Message-Id: <20180701160757.744559346@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180701160757.138608453@linuxfoundation.org> References: <20180701160757.138608453@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.9-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 @@ -243,8 +243,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; } @@ -304,7 +305,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; @@ -372,7 +373,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; return;