Re: omap-serial RX DMA polling?

2012-02-04 Thread Paul Walmsley
On Tue, 24 Jan 2012, Paul Walmsley wrote: > We (meaning the people working on OMAP) also need to figure out here > what the OMAP UART RX timeout would theoretically be, since it doesn't > appear to be documented. Correction. The UART RX timeout is documented in section 17.4.4.1.3.7.1 "Time-ou

Re: omap-serial RX DMA polling?

2012-01-24 Thread Paul Walmsley
On Tue, 24 Jan 2012, Russell King - ARM Linux wrote: > On Tue, Jan 24, 2012 at 12:58:57AM -0700, Paul Walmsley wrote: > > > In a correctly-working RX PIO path, the driver is going to receive an > > interrupt the moment the data is ready to be transferred from the FIFO. > > That's hellishly in

Re: omap-serial RX DMA polling?

2012-01-24 Thread Russell King - ARM Linux
On Tue, Jan 24, 2012 at 12:58:57AM -0700, Paul Walmsley wrote: > On Tue, 24 Jan 2012, Govindraj wrote: > > > On Tue, Jan 24, 2012 at 1:18 AM, Paul Walmsley wrote: > > > On Mon, 23 Jan 2012, Govindraj wrote: > > >> On Mon, Jan 23, 2012 at 4:17 PM, Paul Walmsley wrote: > > > > > > The point is tha

Re: omap-serial RX DMA polling?

2012-01-23 Thread Paul Walmsley
On Tue, 24 Jan 2012, Govindraj wrote: > On Tue, Jan 24, 2012 at 1:18 AM, Paul Walmsley wrote: > > On Mon, 23 Jan 2012, Govindraj wrote: > >> On Mon, Jan 23, 2012 at 4:17 PM, Paul Walmsley wrote: > > > > The point is that if you want tty_insert_flip_string() to be called after > > every character

Re: omap-serial RX DMA polling?

2012-01-23 Thread Govindraj
On Tue, Jan 24, 2012 at 1:18 AM, Paul Walmsley wrote: > On Mon, 23 Jan 2012, Govindraj wrote: > >> On Mon, Jan 23, 2012 at 4:17 PM, Paul Walmsley wrote: >> > On Mon, 23 Jan 2012, Govindraj wrote: >> > >> >> On Mon, Jan 23, 2012 at 6:03 AM, Paul Walmsley wrote: >> >> > >> >> > while trying to tra

Re: omap-serial RX DMA polling?

2012-01-23 Thread Paul Walmsley
On Mon, 23 Jan 2012, Govindraj wrote: > On Mon, Jan 23, 2012 at 4:17 PM, Paul Walmsley wrote: > > On Mon, 23 Jan 2012, Govindraj wrote: > > > >> On Mon, Jan 23, 2012 at 6:03 AM, Paul Walmsley wrote: > >> > > >> > while trying to track down some of the serial-related PM issues in > >> > v3.3-rc1,

Re: omap-serial RX DMA polling?

2012-01-23 Thread Govindraj
On Mon, Jan 23, 2012 at 4:17 PM, Paul Walmsley wrote: > On Mon, 23 Jan 2012, Govindraj wrote: > >> On Mon, Jan 23, 2012 at 6:03 AM, Paul Walmsley wrote: >> > >> > while trying to track down some of the serial-related PM issues in >> > v3.3-rc1, I noticed that the omap-serial.c driver sets a 1 mic

Re: omap-serial RX DMA polling?

2012-01-23 Thread Paul Walmsley
On Mon, 23 Jan 2012, Govindraj wrote: > On Mon, Jan 23, 2012 at 6:03 AM, Paul Walmsley wrote: > > > > while trying to track down some of the serial-related PM issues in > > v3.3-rc1, I noticed that the omap-serial.c driver sets a 1 microsecond > > polling timer when DMA is enabled (uart_dma.rx_ti

Re: omap-serial RX DMA polling?

2012-01-23 Thread Govindraj
On Mon, Jan 23, 2012 at 6:03 AM, Paul Walmsley wrote: > > Hello Govindraj > > while trying to track down some of the serial-related PM issues in > v3.3-rc1, I noticed that the omap-serial.c driver sets a 1 microsecond > polling timer when DMA is enabled (uart_dma.rx_timer) (!)  This seems > quite

omap-serial RX DMA polling?

2012-01-22 Thread Paul Walmsley
Hello Govindraj while trying to track down some of the serial-related PM issues in v3.3-rc1, I noticed that the omap-serial.c driver sets a 1 microsecond polling timer when DMA is enabled (uart_dma.rx_timer) (!) This seems quite broken from both the DMA and PM points of view. >From a DMA poi