From: Michael Walle <michael@walle.cc>
To: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Cc: "Antony Pavlov" <antonynpavlov@gmail.com>,
"Andreas Färber" <afaerber@suse.de>,
"qemu-devel@nongnu.org Developers" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH v2 1/2] milkymist-uart: use qemu_chr_fe_write_all() instead of qemu_chr_fe_write()
Date: Tue, 17 Sep 2013 19:24:38 +0200 [thread overview]
Message-ID: <201309171924.38664.michael@walle.cc> (raw)
In-Reply-To: <CAEgOgz74_YfHhc3FSR2YnjrzT7quAiZq8eb+M3zGPomEvh_mdg@mail.gmail.com>
Am Montag, 2. September 2013, 00:58:42 schrieb Peter Crosthwaite:
> On Sun, Sep 1, 2013 at 3:22 AM, Antony Pavlov <antonynpavlov@gmail.com>
wrote:
> > qemu_chr_fe_write() is capable of returning 0
> > to indicate EAGAIN (and friends) and we don't
> > handle this.
> >
> > Just change it to qemu_chr_fe_write_all() to fix.
> >
> > Reported-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
>
> Acked-by Peter Crosthwaite <peter.crosthwaite@xilinx.com>
>
> > Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
> > CC: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
> > CC: Michael Walle <michael@walle.cc>
> > CC: Andreas Färber <afaerber@suse.de>
> > ---
> >
> > hw/char/milkymist-uart.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/hw/char/milkymist-uart.c b/hw/char/milkymist-uart.c
> > index 2e4b5c5..6e4bc20 100644
> > --- a/hw/char/milkymist-uart.c
> > +++ b/hw/char/milkymist-uart.c
> > @@ -124,7 +124,7 @@ static void uart_write(void *opaque, hwaddr addr,
> > uint64_t value,
> >
> > switch (addr) {
> >
> > case R_RXTX:
> > if (s->chr) {
> >
> > - qemu_chr_fe_write(s->chr, &ch, 1);
> > + qemu_chr_fe_write_all(s->chr, &ch, 1);
> >
> > }
> > s->regs[R_STAT] |= STAT_TX_EVT;
> > break;
> >
> > --
> > 1.8.4.rc3
I'll pick this one. Thank you.
--
michael
next prev parent reply other threads:[~2013-09-17 17:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-31 17:22 [Qemu-devel] [PATCH v2 0/2] milkymist-uart fixes Antony Pavlov
2013-08-31 17:22 ` [Qemu-devel] [PATCH v2 1/2] milkymist-uart: use qemu_chr_fe_write_all() instead of qemu_chr_fe_write() Antony Pavlov
2013-09-01 22:58 ` Peter Crosthwaite
2013-09-17 17:24 ` Michael Walle [this message]
2013-09-02 15:39 ` Michael Walle
2013-08-31 17:22 ` [Qemu-devel] [PATCH v2 2/2] milkymist-uart: use Device::realize instead of SysBusDevice::init Antony Pavlov
2013-08-31 19:09 ` Andreas Färber
2013-09-01 18:28 ` Antony Pavlov
2013-09-02 7:53 ` Andreas Färber
2013-09-01 23:03 ` Peter Crosthwaite
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=201309171924.38664.michael@walle.cc \
--to=michael@walle.cc \
--cc=afaerber@suse.de \
--cc=antonynpavlov@gmail.com \
--cc=peter.crosthwaite@xilinx.com \
--cc=qemu-devel@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 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).