Re: [PATCH] tty: xuartps: Fix tx_emtpy() callback

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2014-09-05 at 09:45AM +0200, Lars-Peter Clausen wrote:
> 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@xxxxxxxxxx>
Acked-by: Soren Brinkmann <soren.brinkmann@xxxxxxxxxx>

	Sören
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux