All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Tokarev <mjt@tls.msk.ru>
To: Guenter Roeck <linux@roeck-us.net>,
	Peter Chubb <peter.chubb@nicta.com.au>
Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org
Subject: Re: [Qemu-trivial] [PATCH] imx_serial: Generate interrupt on tx empty if enabled
Date: Fri, 11 Sep 2015 10:37:12 +0300	[thread overview]
Message-ID: <55F284A8.8060404@msgid.tls.msk.ru> (raw)
In-Reply-To: <1440085955-27951-1-git-send-email-linux@roeck-us.net>


Can we please have some r-b or ACK for this? :)

20.08.2015 18:52, Guenter Roeck wrote:
> Generate an interrupt if the tx buffer is empty and the tx empty interrupt
> is enabled. This fixes a problem seen when running a Linux image since
> Linux commit 55c3cb1358e ("serial: imx: remove unneeded imx_transmit_buffer()
> from imx_start_tx()"). Linux now waits for the tx empty interrupt before
> starting to send data, causing transmit stalls until there is an interrupt
> for another reason.
> 
> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
> ---
>  hw/char/imx_serial.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/hw/char/imx_serial.c b/hw/char/imx_serial.c
> index f3fbc77..8dc791d 100644
> --- a/hw/char/imx_serial.c
> +++ b/hw/char/imx_serial.c
> @@ -145,7 +145,9 @@ static void imx_update(IMXSerialState *s)
>      uint32_t flags;
>  
>      flags = (s->usr1 & s->ucr1) & (USR1_TRDY|USR1_RRDY);
> -    if (!(s->ucr1 & UCR1_TXMPTYEN)) {
> +    if (s->ucr1 & UCR1_TXMPTYEN) {
> +        flags |= (s->uts1 & UTS1_TXEMPTY);
> +    } else {
>          flags &= ~USR1_TRDY;
>      }
>  
> 



WARNING: multiple messages have this Message-ID (diff)
From: Michael Tokarev <mjt@tls.msk.ru>
To: Guenter Roeck <linux@roeck-us.net>,
	Peter Chubb <peter.chubb@nicta.com.au>
Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] imx_serial: Generate interrupt on tx empty if enabled
Date: Fri, 11 Sep 2015 10:37:12 +0300	[thread overview]
Message-ID: <55F284A8.8060404@msgid.tls.msk.ru> (raw)
In-Reply-To: <1440085955-27951-1-git-send-email-linux@roeck-us.net>


Can we please have some r-b or ACK for this? :)

20.08.2015 18:52, Guenter Roeck wrote:
> Generate an interrupt if the tx buffer is empty and the tx empty interrupt
> is enabled. This fixes a problem seen when running a Linux image since
> Linux commit 55c3cb1358e ("serial: imx: remove unneeded imx_transmit_buffer()
> from imx_start_tx()"). Linux now waits for the tx empty interrupt before
> starting to send data, causing transmit stalls until there is an interrupt
> for another reason.
> 
> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
> ---
>  hw/char/imx_serial.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/hw/char/imx_serial.c b/hw/char/imx_serial.c
> index f3fbc77..8dc791d 100644
> --- a/hw/char/imx_serial.c
> +++ b/hw/char/imx_serial.c
> @@ -145,7 +145,9 @@ static void imx_update(IMXSerialState *s)
>      uint32_t flags;
>  
>      flags = (s->usr1 & s->ucr1) & (USR1_TRDY|USR1_RRDY);
> -    if (!(s->ucr1 & UCR1_TXMPTYEN)) {
> +    if (s->ucr1 & UCR1_TXMPTYEN) {
> +        flags |= (s->uts1 & UTS1_TXEMPTY);
> +    } else {
>          flags &= ~USR1_TRDY;
>      }
>  
> 

  reply	other threads:[~2015-09-11  7:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-20 15:52 [Qemu-trivial] [PATCH] imx_serial: Generate interrupt on tx empty if enabled Guenter Roeck
2015-08-20 15:52 ` [Qemu-devel] " Guenter Roeck
2015-09-11  7:37 ` Michael Tokarev [this message]
2015-09-11  7:37   ` Michael Tokarev
2015-09-13 20:17   ` [Qemu-trivial] " Peter Crosthwaite
2015-09-13 20:17     ` Peter Crosthwaite
2015-09-16 10:28     ` [Qemu-trivial] " Michael Tokarev
2015-09-16 10:28       ` [Qemu-devel] " Michael Tokarev

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=55F284A8.8060404@msgid.tls.msk.ru \
    --to=mjt@tls.msk.ru \
    --cc=linux@roeck-us.net \
    --cc=peter.chubb@nicta.com.au \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-trivial@nongnu.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.