milkymist-uart: use qemu_chr_fe_write_all() instead of qemu_chr_fe_write()
authorAntony Pavlov <antonynpavlov@gmail.com>
Sat, 31 Aug 2013 17:22:39 +0000 (21:22 +0400)
committerMichael Walle <michael@walle.cc>
Tue, 4 Feb 2014 18:34:29 +0000 (19:34 +0100)
commitb2c623a3d9c88fb1d3bbbbe97364dc65bc6ab363
treef86a59bf56e6dd08c4ef362b71704081ee1af954
parentf40c49ac9f89ee52b6015904c9005b734a73487a
milkymist-uart: use qemu_chr_fe_write_all() instead of qemu_chr_fe_write()

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>
Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
hw/char/milkymist-uart.c