cadence_uart: Flush queued characters on reset
commit1db8b5efe0c2b5000e50691eea61264a615f43de
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>
Wed, 3 Apr 2013 04:52:21 +0000 (3 14:52 +1000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 5 Apr 2013 16:03:01 +0000 (5 17:03 +0100)
treedba62b8901afbe8ffb2bf88abe641fc6038feab3
parentfd7f8a99f3b08640a7fe2b2f3c3e6b68068b4983
cadence_uart: Flush queued characters on reset

Reset can be used to empty the rx-fifo. As the fifo full condition is
used to return false from can_receive, queued rx data should be flushed
on reset accordingly.

Cc: Wendy Liang <jliang@xilinx.com>
Cc: Jason Wu <huanyu@xilinx.com>
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Reported-by: Jason Wu <huanyu@xilinx.com>
Message-id: 494c1e005e225c915d295ddfd75d992ad2dabc3c.1364964526.git.peter.crosthwaite@xilinx.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/cadence_uart.c