From patchwork Thu Jun 14 09:50:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 10463731 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 085ED601F9 for ; Thu, 14 Jun 2018 09:53:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E96B227F88 for ; Thu, 14 Jun 2018 09:53:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DDDD928931; Thu, 14 Jun 2018 09:53:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 561A427F88 for ; Thu, 14 Jun 2018 09:53:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:From:To: Subject: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=a8C4n72jLORmUuEmwU13FT/Lj0ATatzX1KT+iUUf58I=; b=DC1PH8oC48Lqv8 VuWJw9l4r+n0E+trtaOj+fWG7if9f3Mmy9SPw8skQbKt6UJ2Qeracbm6+PCe2IT3Krp+lLHcpnvlr F9v0j96JFU7ubEQfzckrNvFoM13hfoR0w1NHKtGKPb0XYI1VAgR9IhCiz+ulhsq8rl3464CumDmp8 8QEhbVmYyz/NSBvSI7PyyjPd9DmOrTAVgMQeKW2+mX6LOrpjPHmV3au2ZU9Ykn5RUDT09B2bNGaei Js/8b58UgKmtXgkH4Hdd8a48JppWUC59wBaTlLU21cgQ/B6oRwrqQT/5uwJGbeAdMPP7sikSXAeYK h+Is4md5fjChMXy7BQ7g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fTOw5-0006TD-5l; Thu, 14 Jun 2018 09:52:57 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fTOvt-0006Qr-II for linux-arm-kernel@lists.infradead.org; Thu, 14 Jun 2018 09:52:52 +0000 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A6D73208D9; Thu, 14 Jun 2018 09:52:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1528969955; bh=I1xz/0WF3/IS2M0Nn69I6xDwLzDQRDo6xCG8xWfY3x0=; h=Subject:To:Cc:From:Date:From; b=2uLafpqosUdjpnF+zffEkRZqs8W85RwWmyaGXP0HpGus2aJMWTsc/JVvsN+fn7L4d zT4os3Ihg0wkLvWehu1A6faYAAJu/pz+Ms4Dj6BRuF4YsXMzKvBdqLecsUkBycmDiQ Yxo7hxlQU2m34lT6a79WsDHo5kFvoFk9SejdEgnM= Subject: Patch "serial: sh-sci: Stop using printk format %pCr" has been added to the 4.17-stable tree To: 1527845302-12159-4-git-send-email-geert+renesas@glider.be, baijiaju1990@gmail.com, corbet@lwn.net, edubezval@gmail.com, eric@anholt.net, geert+renesas@glider.be, gregkh@linuxfoundation.org, linux-arm-kernel@lists.infradead.org, mturquette@baylibre.com, pmladek@suse.com, rostedt@goodmis.org, rui.zhang@intel.com, sboyd@kernel.org, sergey.senozhatsky.work@gmail.com, stefan.wahren@i2se.com, torvalds@linux-foundation.org From: Date: Thu, 14 Jun 2018 11:50:10 +0200 Message-ID: <152896981015898@kroah.com> MIME-Version: 1.0 X-stable: commit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180614_025245_661653_FC80344B X-CRM114-Status: GOOD ( 13.57 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: stable-commits@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This is a note to let you know that I've just added the patch titled serial: sh-sci: Stop using printk format %pCr to the 4.17-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: serial-sh-sci-stop-using-printk-format-pcr.patch and it can be found in the queue-4.17 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. From d63c16f8e1ab761775275adcf54f4bef7c330295 Mon Sep 17 00:00:00 2001 From: Geert Uytterhoeven Date: Fri, 1 Jun 2018 11:28:21 +0200 Subject: serial: sh-sci: Stop using printk format %pCr From: Geert Uytterhoeven commit d63c16f8e1ab761775275adcf54f4bef7c330295 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-4-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 Signed-off-by: Petr Mladek Signed-off-by: Greg Kroah-Hartman --- drivers/tty/serial/sh-sci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Patches currently in stable-queue which might be from geert+renesas@glider.be are queue-4.17/serial-sh-sci-stop-using-printk-format-pcr.patch --- a/drivers/tty/serial/sh-sci.c +++ b/drivers/tty/serial/sh-sci.c @@ -2704,8 +2704,8 @@ found: dev_dbg(dev, "failed to get %s (%ld)\n", clk_names[i], PTR_ERR(clk)); else - dev_dbg(dev, "clk %s is %pC rate %pCr\n", clk_names[i], - clk, clk); + dev_dbg(dev, "clk %s is %pC rate %lu\n", clk_names[i], + clk, clk_get_rate(clk)); sci_port->clks[i] = IS_ERR(clk) ? NULL : clk; } return 0;