Drain FIFOs on init same as com(4) does it and reduce the RX FIFO interrupt
authormglocker <mglocker@openbsd.org>
Mon, 15 Aug 2016 04:32:57 +0000 (04:32 +0000)
committermglocker <mglocker@openbsd.org>
Mon, 15 Aug 2016 04:32:57 +0000 (04:32 +0000)
commite8ca03bef9811fa021d8237e8e8d426ce7da3809
tree2119391440237153ddc19daf09082c0134f9cb0b
parent91522bbb10ff02050859795432a47a023ae9dae1
Drain FIFOs on init same as com(4) does it and reduce the RX FIFO interrupt
trigger to 1 character.  This fixes a hang seen on the allwinner,sun5i-r8
board during boot when the driver switches to interrupts and no terminal
is attached.

ok kettenis
sys/arch/armv7/sunxi/sxiuart.c