diff options
author | Feng Tang <feng.tang@intel.com> | 2010-07-27 03:20:32 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-10 16:47:46 -0400 |
commit | 669b7a0938e759097c150400cd36bd49befaf5bb (patch) | |
tree | b7244699ea1e8bf04c50dde2b9efeaf504f44bc6 /drivers/serial/altera_uart.c | |
parent | d843fc6e9dc9bee7061b6833594860ea93ad98e1 (diff) |
hsu: add a periodic timer to check dma rx channel
A general problem for uart rx dma channel is you never know when
and how much data will be received, so usually preset it a DMA
descriptor with a big size, and rely on DMA RX timeout IRQ to
know there is some data in rx channel.
For a RX data size of multiple of MOTSR, there will be no timeout
IRQ issued, thus OS will never be notified about that.
This is a work around for that, current timer frequency is 5 times
per second, it should vary according to the baud rate
When future silicon version fix the problem, this workaround need
be removed
Signed-off-by: Feng Tang <feng.tang@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/serial/altera_uart.c')
0 files changed, 0 insertions, 0 deletions