diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2014-09-05 09:45:17 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-08 16:33:56 -0700 |
commit | 6731af573ac28de2297002992f38caa760e3dadf (patch) | |
tree | ace8788d67beca64d10e28b4fbb72e55f09afbc0 /drivers/staging/bcm | |
parent | 35b675b9100fc38f58cb75b30e422ecd342519a8 (diff) | |
download | linux-6731af573ac28de2297002992f38caa760e3dadf.tar.bz2 |
tty: xuartps: Fix tx_emtpy() callback
The tx_empty() callback currently checks the TXEMPTY bit in the interrupt
status register to decided whether the FIFO should be reported as empty or
not. The bit in this register gets set when the FIFO state transitions from
non-empty to empty but is cleared again in the interrupt handler. This means
it is not suitable to be used to decided whether the FIFO is currently empty
or not. Instead use the TXEMPTY bit from the status register which will be
set as long as the FIFO is empty.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/bcm')
0 files changed, 0 insertions, 0 deletions