linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH/RFC] serial: sh-sci: Remove overrun message
@ 2014-12-15 14:13 Yoshihiro Kaneko
  2015-01-09 21:42 ` Greg Kroah-Hartman
  2015-01-13  7:57 ` Geert Uytterhoeven
  0 siblings, 2 replies; 5+ messages in thread
From: Yoshihiro Kaneko @ 2014-12-15 14:13 UTC (permalink / raw)
  To: linux-serial; +Cc: Greg Kroah-Hartman, Simon Horman, Magnus Damm, linux-sh

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++;
 	}
 
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH/RFC] serial: sh-sci: Remove overrun message
  2014-12-15 14:13 [PATCH/RFC] serial: sh-sci: Remove overrun message Yoshihiro Kaneko
@ 2015-01-09 21:42 ` Greg Kroah-Hartman
  2015-01-13  7:57 ` Geert Uytterhoeven
  1 sibling, 0 replies; 5+ messages in thread
From: Greg Kroah-Hartman @ 2015-01-09 21:42 UTC (permalink / raw)
  To: Yoshihiro Kaneko; +Cc: linux-serial, Simon Horman, Magnus Damm, linux-sh

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH/RFC] serial: sh-sci: Remove overrun message
  2014-12-15 14:13 [PATCH/RFC] serial: sh-sci: Remove overrun message Yoshihiro Kaneko
  2015-01-09 21:42 ` Greg Kroah-Hartman
@ 2015-01-13  7:57 ` Geert Uytterhoeven
  2015-01-20  6:35   ` Simon Horman
  1 sibling, 1 reply; 5+ messages in thread
From: Geert Uytterhoeven @ 2015-01-13  7:57 UTC (permalink / raw)
  To: Yoshihiro Kaneko
  Cc: linux-serial@vger.kernel.org, Greg Kroah-Hartman, Simon Horman,
	Magnus Damm, Linux-sh list

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH/RFC] serial: sh-sci: Remove overrun message
  2015-01-13  7:57 ` Geert Uytterhoeven
@ 2015-01-20  6:35   ` Simon Horman
  2015-01-20 13:56     ` Yoshihiro Kaneko
  0 siblings, 1 reply; 5+ messages in thread
From: Simon Horman @ 2015-01-20  6:35 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Yoshihiro Kaneko, linux-serial@vger.kernel.org,
	Greg Kroah-Hartman, Magnus Damm, Linux-sh list

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?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH/RFC] serial: sh-sci: Remove overrun message
  2015-01-20  6:35   ` Simon Horman
@ 2015-01-20 13:56     ` Yoshihiro Kaneko
  0 siblings, 0 replies; 5+ messages in thread
From: Yoshihiro Kaneko @ 2015-01-20 13:56 UTC (permalink / raw)
  To: Simon Horman
  Cc: Geert Uytterhoeven, linux-serial@vger.kernel.org,
	Greg Kroah-Hartman, Magnus Damm, Linux-sh list

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-01-20 13:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-15 14:13 [PATCH/RFC] serial: sh-sci: Remove overrun message Yoshihiro Kaneko
2015-01-09 21:42 ` Greg Kroah-Hartman
2015-01-13  7:57 ` Geert Uytterhoeven
2015-01-20  6:35   ` Simon Horman
2015-01-20 13:56     ` Yoshihiro Kaneko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).