serial: pl011: Avoid assumptions about buffer size when refilling TX DMA
authorAndrew Jackson <Andrew.Jackson@arm.com>
Mon, 27 Oct 2014 14:29:56 +0000 (14:29 +0000)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Fri, 31 Oct 2014 12:22:16 +0000 (12:22 +0000)
commitb02aebd5abca50c5d576c7bb052eac7d47093227
tree06e3e3813cde188e7c65655a8e238dccc59e1604
parent63341ff8104ce431cfdd596df5c1c60d43f68d1d
serial: pl011: Avoid assumptions about buffer size when refilling TX DMA

The existing code assumed that all the bytes in the
buffer are consumed in a call.  This isn't the case
since the count is adjusted.

Signed-off-by: Andrew Jackson <Andrew.Jackson@arm.com>
drivers/tty/serial/amba-pl011.c