]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make PL011 UART to wait on putc only when TX FIFO is full
authorzbb <zbb@FreeBSD.org>
Wed, 12 Nov 2014 21:38:31 +0000 (21:38 +0000)
committerzbb <zbb@FreeBSD.org>
Wed, 12 Nov 2014 21:38:31 +0000 (21:38 +0000)
commit2cab232fe41d7b02d0247e174203803e1f646b77
tree0c67b464dc28cf0e8127d5312e9f2e5fc779eb1e
parente569ef6a9c0783ecf00f1eb873771cd45feea2c0
Make PL011 UART to wait on putc only when TX FIFO is full

Instead of waiting for empty TX FIFO it is more reasonable to
block on full FIFO. As soon as FIFO slot is free the character
can be transmitted.
In case of TX FIFO disabled, TXFF bit indicates that transmit
register is not empty.

Obtained from:   Semihalf
Reviewed by:     andrew, emaste
Sponsored by:    The FreeBSD Foundation
sys/dev/uart/uart_dev_pl011.c