From patchwork Sat Dec 4 13:46:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 520745 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 91903C433F5 for ; Sat, 4 Dec 2021 14:46:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233508AbhLDOt2 (ORCPT ); Sat, 4 Dec 2021 09:49:28 -0500 Received: from lists.levonline.com ([217.70.32.42]:42150 "EHLO lists.levonline.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232056AbhLDOt1 (ORCPT ); Sat, 4 Dec 2021 09:49:27 -0500 X-Greylist: delayed 476 seconds by postgrey-1.27 at vger.kernel.org; Sat, 04 Dec 2021 09:49:27 EST Received: from exc-halon1.levonline.com (exc-halon1.levonline.com [217.70.32.123]) by lists.levonline.com (Postfix) with ESMTP id 550CD3A0D5B for ; Sat, 4 Dec 2021 15:32:03 +0100 (CET) X-SA-score: -1 X-Halon-ID: c8415061-550f-11ec-a618-0050568168d4 Received: from ormen2.djurnet.levonline.com (ormen2.djurnet.levonline.com [192.168.17.32]) by exc-halon1.levonline.com (Halon) with ESMTPS id c8415061-550f-11ec-a618-0050568168d4; Sat, 04 Dec 2021 15:38:01 +0100 (CET) Received: from [127.0.0.1] (l193216.ppp.asahi-net.or.jp [218.219.193.216]) (authenticated bits=0) by ormen2.djurnet.levonline.com (8.13.8/8.13.8) with ESMTP id 1B4Ebvgv012094; Sat, 4 Dec 2021 15:37:59 +0100 X-Origin-Levonline: b0359001 From: Magnus Damm To: linux-serial@vger.kernel.org Cc: Magnus Damm , geert+renesas@glider.be, gregkh@linuxfoundation.org, linux-renesas-soc@vger.kernel.org, wsa+renesas@sang-engineering.com, jirislaby@kernel.org Date: Sat, 04 Dec 2021 22:46:18 +0900 Message-Id: <163862557847.23421.1243156045279776895.sendpatchset@octo> Subject: [PATCH] serial: sh-sci: Use dev_dbg() for frame and parity errors Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org From: Magnus Damm Adjust the console printout handling for frame and parity errors to the same style as for break errors by using dev_dbg() instead of dev_notice(). This reduces the amount of console printouts generated by the defconfig kernel on ARM R-Car Gen3 for certain use cases. Signed-off-by: Magnus Damm --- drivers/tty/serial/sh-sci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- 0001/drivers/tty/serial/sh-sci.c +++ work/drivers/tty/serial/sh-sci.c 2021-12-04 22:07:39.760407200 +0900 @@ -895,11 +895,11 @@ static void sci_receive_chars(struct uar if (status & SCxSR_FER(port)) { flag = TTY_FRAME; port->icount.frame++; - dev_notice(port->dev, "frame error\n"); + dev_dbg(port->dev, "frame error\n"); } else if (status & SCxSR_PER(port)) { flag = TTY_PARITY; port->icount.parity++; - dev_notice(port->dev, "parity error\n"); + dev_dbg(port->dev, "parity error\n"); } else flag = TTY_NORMAL;