From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Alexander Stein <alexander.stein@systec-electronic.com>
Cc: linux-serial@vger.kernel.org, Jiri Slaby <jslaby@suse.cz>
Subject: Re: [PATCH] serial: imx: Add Rx Fifo overrun error message
Date: Tue, 12 Mar 2013 08:46:23 -0700 [thread overview]
Message-ID: <20130312154623.GA18972@kroah.com> (raw)
In-Reply-To: <1362997628-20246-1-git-send-email-alexander.stein@systec-electronic.com>
On Mon, Mar 11, 2013 at 11:27:08AM +0100, Alexander Stein wrote:
> Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
No description of what you are doing in the changelog area?
> ---
> drivers/tty/serial/imx.c | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
>
> diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c
> index 147c9e1..fe72099 100644
> --- a/drivers/tty/serial/imx.c
> +++ b/drivers/tty/serial/imx.c
> @@ -449,6 +449,13 @@ static void imx_start_tx(struct uart_port *port)
> temp &= ~(UCR1_RRDYEN);
> writel(temp, sport->port.membase + UCR1);
> }
> + /* Clear any pending ORE flag before enabling interrupt */
> + temp = readl(sport->port.membase + USR2);
> + writel(temp | USR2_ORE, sport->port.membase + USR2);
> +
> + temp = readl(sport->port.membase + UCR4);
> + temp |= UCR4_OREN;
> + writel(temp, sport->port.membase + UCR4);
This seems like a bugfix, right? Different than what you put in the
Subject line above.
>
> temp = readl(sport->port.membase + UCR1);
> writel(temp | UCR1_TXMPTYEN, sport->port.membase + UCR1);
> @@ -582,6 +589,7 @@ static irqreturn_t imx_int(int irq, void *dev_id)
> {
> struct imx_port *sport = dev_id;
> unsigned int sts;
> + unsigned int sts2;
>
> sts = readl(sport->port.membase + USR1);
>
> @@ -598,6 +606,12 @@ static irqreturn_t imx_int(int irq, void *dev_id)
> if (sts & USR1_AWAKE)
> writel(USR1_AWAKE, sport->port.membase + USR1);
>
> + sts2 = readl(sport->port.membase + USR2);
> + if (sts2 & USR2_ORE) {
> + dev_err(sport->port.dev, "Rx FIFO overrun\n");
Why? What can a user now do about this? Will this flood the syslog?
thanks,
greg k-h
next prev parent reply other threads:[~2013-03-12 15:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-11 10:27 [PATCH] serial: imx: Add Rx Fifo overrun error message Alexander Stein
2013-03-12 15:46 ` Greg Kroah-Hartman [this message]
2013-03-13 7:30 ` Alexander Stein
2013-03-14 7:11 ` Alexander Stein
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130312154623.GA18972@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=alexander.stein@systec-electronic.com \
--cc=jslaby@suse.cz \
--cc=linux-serial@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.