From: dirk.behme@gmail.com (Dirk Behme)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/2] serial: imx: disable the receiver ready interrupt for imx_stop_rx
Date: Fri, 30 May 2014 07:52:25 +0200 [thread overview]
Message-ID: <53881C99.1090207@gmail.com> (raw)
In-Reply-To: <1400819575-20435-2-git-send-email-b32955@freescale.com>
On 23.05.2014 06:32, Huang Shijie wrote:
> This patch disables the receiver ready interrupt for imx_stop_rx.
> It reduces the interrupt numbers when the uart is going to close
> or suspend.
>
> Signed-off-by: Huang Shijie <b32955@freescale.com>
> ---
> drivers/tty/serial/imx.c | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c
> index ed6cdf7..6026101 100644
> --- a/drivers/tty/serial/imx.c
> +++ b/drivers/tty/serial/imx.c
> @@ -440,6 +440,10 @@ static void imx_stop_rx(struct uart_port *port)
>
> temp = readl(sport->port.membase + UCR2);
> writel(temp & ~UCR2_RXEN, sport->port.membase + UCR2);
> +
> + /* disable the `Receiver Ready Interrrupt` */
> + temp = readl(sport->port.membase + UCR1);
> + writel(temp & ~UCR1_RRDYEN, sport->port.membase + UCR1);
Will this change cause a loss or a processing delay of RX characters
pending in the RX FIFO ?
It is not clear whether disabling the receiver will clear the RX FIFO.
My guess is that the contents of the RX FIFO will remain intact when
the receiver is disabled. The RX interrupt has an opportunity to mop
up these pending characters in the RX FIFO but disabling the RX
interrupt has potential to leave those characters in the RX FIFO. Does
it matter ?
Thanks
Dirk
next prev parent reply other threads:[~2014-05-30 5:52 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-23 4:32 [PATCH 1/2] serial: imx: remove the DMA wait queue Huang Shijie
2014-05-23 4:32 ` [PATCH 2/2] serial: imx: disable the receiver ready interrupt for imx_stop_rx Huang Shijie
2014-05-23 6:10 ` Dirk Behme
2014-05-23 8:04 ` Huang Shijie
2014-05-30 5:52 ` Dirk Behme [this message]
2014-05-30 4:53 ` Huang Shijie
2014-05-23 4:40 ` [PATCH 1/2 rebased] serial: imx: remove the DMA wait queue Huang Shijie
2014-05-30 9:27 ` [PATCH 1/2] " Wang, Jiada (ESD)
2014-05-30 9:01 ` Huang Shijie
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=53881C99.1090207@gmail.com \
--to=dirk.behme@gmail.com \
--cc=linux-arm-kernel@lists.infradead.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 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).