diff mbox

[PATCH/RFC] serial: sh-sci: Remove overrun message

Message ID 1418652793-6770-1-git-send-email-ykaneko0929@gmail.com (mailing list archive)
State RFC
Delegated to: Geert Uytterhoeven
Headers show

Commit Message

Yoshihiro Kaneko Dec. 15, 2014, 2:13 p.m. UTC
From: Hisashi Nakamura <hisashi.nakamura.ak@renesas.com>

Since the driver cannot return from overrun error if characters
are output during overrun process, the error message of overrun
is removed.

Signed-off-by: Hisashi Nakamura <hisashi.nakamura.ak@renesas.com>
Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com>
---

This patch is based on the tty-next branch of Greg Kroah-Hartman's tty
tree.

 drivers/tty/serial/sh-sci.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Greg KH Jan. 9, 2015, 9:42 p.m. UTC | #1
On Mon, Dec 15, 2014 at 11:13:13PM +0900, Yoshihiro Kaneko wrote:
> From: Hisashi Nakamura <hisashi.nakamura.ak@renesas.com>
> 
> Since the driver cannot return from overrun error if characters
> are output during overrun process, the error message of overrun
> is removed.
> 
> Signed-off-by: Hisashi Nakamura <hisashi.nakamura.ak@renesas.com>
> Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com>
> ---
> 
> This patch is based on the tty-next branch of Greg Kroah-Hartman's tty
> tree.
> 
>  drivers/tty/serial/sh-sci.c | 1 -
>  1 file changed, 1 deletion(-)

I don't apply "RFC" patches, as it is evident that you don't feel they
should be applied.

Please resend anything without that marking if you want me to apply
them.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Geert Uytterhoeven Jan. 13, 2015, 7:57 a.m. UTC | #2
On Mon, Dec 15, 2014 at 3:13 PM, Yoshihiro Kaneko <ykaneko0929@gmail.com> wrote:
> From: Hisashi Nakamura <hisashi.nakamura.ak@renesas.com>
>
> Since the driver cannot return from overrun error if characters
> are output during overrun process, the error message of overrun
> is removed.
>
> Signed-off-by: Hisashi Nakamura <hisashi.nakamura.ak@renesas.com>
> Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com>
> ---
>
> This patch is based on the tty-next branch of Greg Kroah-Hartman's tty
> tree.
>
>  drivers/tty/serial/sh-sci.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c
> index fccebbd..fe2bb08 100644
> --- a/drivers/tty/serial/sh-sci.c
> +++ b/drivers/tty/serial/sh-sci.c
> @@ -858,7 +858,6 @@ static int sci_handle_fifo_overrun(struct uart_port *port)
>                 tty_insert_flip_char(tport, 0, TTY_OVERRUN);
>                 tty_flip_buffer_push(tport);
>
> -               dev_notice(port->dev, "overrun error\n");
>                 copied++;
>         }

What about replacing it by a call to dev_dbg() instead?
That way it won't be printed during normal use, but depending on the
system's setting it can still be logged in syslog.

Or do you think it's sufficient to have it in the statistics only?

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Simon Horman Jan. 20, 2015, 6:35 a.m. UTC | #3
On Tue, Jan 13, 2015 at 08:57:48AM +0100, Geert Uytterhoeven wrote:
> On Mon, Dec 15, 2014 at 3:13 PM, Yoshihiro Kaneko <ykaneko0929@gmail.com> wrote:
> > From: Hisashi Nakamura <hisashi.nakamura.ak@renesas.com>
> >
> > Since the driver cannot return from overrun error if characters
> > are output during overrun process, the error message of overrun
> > is removed.
> >
> > Signed-off-by: Hisashi Nakamura <hisashi.nakamura.ak@renesas.com>
> > Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com>
> > ---
> >
> > This patch is based on the tty-next branch of Greg Kroah-Hartman's tty
> > tree.
> >
> >  drivers/tty/serial/sh-sci.c | 1 -
> >  1 file changed, 1 deletion(-)
> >
> > diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c
> > index fccebbd..fe2bb08 100644
> > --- a/drivers/tty/serial/sh-sci.c
> > +++ b/drivers/tty/serial/sh-sci.c
> > @@ -858,7 +858,6 @@ static int sci_handle_fifo_overrun(struct uart_port *port)
> >                 tty_insert_flip_char(tport, 0, TTY_OVERRUN);
> >                 tty_flip_buffer_push(tport);
> >
> > -               dev_notice(port->dev, "overrun error\n");
> >                 copied++;
> >         }
> 
> What about replacing it by a call to dev_dbg() instead?
> That way it won't be printed during normal use, but depending on the
> system's setting it can still be logged in syslog.
> 
> Or do you think it's sufficient to have it in the statistics only?

I like the dev_dbg() idea.

Kaneko-san, could you see about respinning this patch accordingly?
--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Yoshihiro Kaneko Jan. 20, 2015, 1:56 p.m. UTC | #4
2015-01-20 15:35 GMT+09:00 Simon Horman <horms@verge.net.au>:
> On Tue, Jan 13, 2015 at 08:57:48AM +0100, Geert Uytterhoeven wrote:
>> On Mon, Dec 15, 2014 at 3:13 PM, Yoshihiro Kaneko <ykaneko0929@gmail.com> wrote:
>> > From: Hisashi Nakamura <hisashi.nakamura.ak@renesas.com>
>> >
>> > Since the driver cannot return from overrun error if characters
>> > are output during overrun process, the error message of overrun
>> > is removed.
>> >
>> > Signed-off-by: Hisashi Nakamura <hisashi.nakamura.ak@renesas.com>
>> > Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com>
>> > ---
>> >
>> > This patch is based on the tty-next branch of Greg Kroah-Hartman's tty
>> > tree.
>> >
>> >  drivers/tty/serial/sh-sci.c | 1 -
>> >  1 file changed, 1 deletion(-)
>> >
>> > diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c
>> > index fccebbd..fe2bb08 100644
>> > --- a/drivers/tty/serial/sh-sci.c
>> > +++ b/drivers/tty/serial/sh-sci.c
>> > @@ -858,7 +858,6 @@ static int sci_handle_fifo_overrun(struct uart_port *port)
>> >                 tty_insert_flip_char(tport, 0, TTY_OVERRUN);
>> >                 tty_flip_buffer_push(tport);
>> >
>> > -               dev_notice(port->dev, "overrun error\n");
>> >                 copied++;
>> >         }
>>
>> What about replacing it by a call to dev_dbg() instead?
>> That way it won't be printed during normal use, but depending on the
>> system's setting it can still be logged in syslog.
>>
>> Or do you think it's sufficient to have it in the statistics only?
>
> I like the dev_dbg() idea.
>
> Kaneko-san, could you see about respinning this patch accordingly?

Sure, will do!

Thanks,
Kaneko
--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c
index fccebbd..fe2bb08 100644
--- a/drivers/tty/serial/sh-sci.c
+++ b/drivers/tty/serial/sh-sci.c
@@ -858,7 +858,6 @@  static int sci_handle_fifo_overrun(struct uart_port *port)
 		tty_insert_flip_char(tport, 0, TTY_OVERRUN);
 		tty_flip_buffer_push(tport);
 
-		dev_notice(port->dev, "overrun error\n");
 		copied++;
 	}