From patchwork Thu Jun 14 09:49:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 10463729 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 54F2A601F9 for ; Thu, 14 Jun 2018 09:50:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4303D28986 for ; Thu, 14 Jun 2018 09:50:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4188628A89; Thu, 14 Jun 2018 09:50:45 +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 A821728986 for ; Thu, 14 Jun 2018 09:50:44 +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=aHu53fjB950/zc1d5tabpkrCvuOE2+QHkkk9XNjE8CI=; b=OuGrObJUANusHj 8J9TgwdF331u1L5iTDPmt5a56h3EU6n+UMWB/HGI9uApKGB2QUtzotrqfUxe5JFmLbBr5dpTGJQBc KsUFS0oc7+JDVzcLAgEMqJinSOxUdKTbq1XZhgaDofSrcxRydyCCs2AU5kb8J7W3U8x9IlTy0J2cU Uo0LQDA41r+X7El962yfE6iSnZ2y1dp6lbfOfNJ48DFSqHWlIiUyR4N6YmWOS2LI9cqA6B8dt7fVQ 9q6pQxyFNAZRuowUCTtSpAU7rQxa+1YFhlwb3+4rXhJMgVa3iNcOegZ42ddV6eAMG1hUODqXpuWl4 t2XGjQCjvBesdf6MS/8A==; 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 1fTOtp-0005cS-53; Thu, 14 Jun 2018 09:50:37 +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 1fTOtj-0005aV-9z for linux-arm-kernel@lists.infradead.org; Thu, 14 Jun 2018 09:50:34 +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 B5C68208DB; Thu, 14 Jun 2018 09:50:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1528969820; bh=lY5i1ac0QIx4Hc95jz2fOIFD1AGZRlLRjRvw1OdY+8o=; h=Subject:To:Cc:From:Date:From; b=RAJ3Maq8fOD09KU7QiiWvb3YGFyEXZuHPFcmrd9gtD2MpPEp08Rul/hc7zqrlQaxC snqH+adWitdnD/JJbnpDaT5gF48awn+ubuPOSli5vCY9F9hQsec8znKUGa394ORyMF YNca5PN0G73f76ergtjHlx8ppY/YTc6bYzr106aw= Subject: Patch "serial: sh-sci: Stop using printk format %pCr" has been added to the 4.14-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:49:31 +0200 Message-ID: <152896977119185@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_025031_407980_1ACDE9D7 X-CRM114-Status: GOOD ( 13.65 ) 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.14-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.14 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.14/serial-sh-sci-stop-using-printk-format-pcr.patch --- a/drivers/tty/serial/sh-sci.c +++ b/drivers/tty/serial/sh-sci.c @@ -2669,8 +2669,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;