<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/drivers/serial, branch tegra-10.9.9</title>
<subtitle>Linux kernel for Apalis and Colibri modules</subtitle>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/'/>
<entry>
<title>[arm/tegra] serial: Getting dma transfer count with rts inactive.</title>
<updated>2010-11-22T23:00:26+00:00</updated>
<author>
<name>Laxman Dewangan</name>
<email>ldewangan@nvidia.com</email>
</author>
<published>2010-11-17T12:34:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=dfb2da188766e0c3bc194020daadad98f10ca34b'/>
<id>dfb2da188766e0c3bc194020daadad98f10ca34b</id>
<content type='text'>
Getting the transfer count by dma with rts disable. In this way
we can avoid the race condition arise by hw with incoming data.

Change-Id: Ieeeadfeea9293c70fd2eb96ff9d82888a58b2b3a
Reviewed-on: http://git-master/r/11020
Tested-by: Rakesh Goyal &lt;rgoyal@nvidia.com&gt;
Reviewed-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Tested-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Reviewed-by: Udaykumar Rameshchan Raval &lt;uraval@nvidia.com&gt;
Reviewed-by: Bharat Nihalani &lt;bnihalani@nvidia.com&gt;
Reviewed-by: Varun Colbert &lt;vcolbert@nvidia.com&gt;
Tested-by: Varun Colbert &lt;vcolbert@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Getting the transfer count by dma with rts disable. In this way
we can avoid the race condition arise by hw with incoming data.

Change-Id: Ieeeadfeea9293c70fd2eb96ff9d82888a58b2b3a
Reviewed-on: http://git-master/r/11020
Tested-by: Rakesh Goyal &lt;rgoyal@nvidia.com&gt;
Reviewed-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Tested-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Reviewed-by: Udaykumar Rameshchan Raval &lt;uraval@nvidia.com&gt;
Reviewed-by: Bharat Nihalani &lt;bnihalani@nvidia.com&gt;
Reviewed-by: Varun Colbert &lt;vcolbert@nvidia.com&gt;
Tested-by: Varun Colbert &lt;vcolbert@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[arm/tegra] serial: Support for break on console driver.</title>
<updated>2010-11-22T22:53:41+00:00</updated>
<author>
<name>Laxman Dewangan</name>
<email>ldewangan@nvidia.com</email>
</author>
<published>2010-10-19T08:35:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=ff4d0279c458b724d273efd88ee87ff7caf48991'/>
<id>ff4d0279c458b724d273efd88ee87ff7caf48991</id>
<content type='text'>
There is sysrq feature which works from console with
sending break and then character.
The console driver uses the 8250 driver.
In tegra uart controller, after receiving break, it
needs to clear the rx fifo by reading fifo till empty
to receive the another break/character.
Fixing this issue in 8250 driver.

bug 697978

Change-Id: I4eb71a67bafc186ec9934fce164e28ad86fa0ace
Reviewed-on: http://git-master/r/8736
Reviewed-by: Varun Colbert &lt;vcolbert@nvidia.com&gt;
Tested-by: Varun Colbert &lt;vcolbert@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There is sysrq feature which works from console with
sending break and then character.
The console driver uses the 8250 driver.
In tegra uart controller, after receiving break, it
needs to clear the rx fifo by reading fifo till empty
to receive the another break/character.
Fixing this issue in 8250 driver.

bug 697978

Change-Id: I4eb71a67bafc186ec9934fce164e28ad86fa0ace
Reviewed-on: http://git-master/r/8736
Reviewed-by: Varun Colbert &lt;vcolbert@nvidia.com&gt;
Tested-by: Varun Colbert &lt;vcolbert@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[[ARM/Tegra] Clean up build warning message</title>
<updated>2010-10-27T22:08:28+00:00</updated>
<author>
<name>lazhao</name>
<email>lazhao@nvidia.com</email>
</author>
<published>2010-10-16T02:38:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=6c61a8a4857a7b3740865a4a334604fb4bf44eed'/>
<id>6c61a8a4857a7b3740865a4a334604fb4bf44eed</id>
<content type='text'>
Clean up warning message caused by unused variable and
improper struct type.

Bug 682070

Change-Id: I3409ad22e67252df14d6d14898aa8792a0019574
Reviewed-on: http://git-master/r/8436
Reviewed-by: Lance Zhao &lt;lazhao@nvidia.com&gt;
Tested-by: Lance Zhao &lt;lazhao@nvidia.com&gt;
Reviewed-by: Yu-Huan Hsu &lt;yhsu@nvidia.com&gt;
Reviewed-by: Varun Colbert &lt;vcolbert@nvidia.com&gt;
Tested-by: Varun Colbert &lt;vcolbert@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Clean up warning message caused by unused variable and
improper struct type.

Bug 682070

Change-Id: I3409ad22e67252df14d6d14898aa8792a0019574
Reviewed-on: http://git-master/r/8436
Reviewed-by: Lance Zhao &lt;lazhao@nvidia.com&gt;
Tested-by: Lance Zhao &lt;lazhao@nvidia.com&gt;
Reviewed-by: Yu-Huan Hsu &lt;yhsu@nvidia.com&gt;
Reviewed-by: Varun Colbert &lt;vcolbert@nvidia.com&gt;
Tested-by: Varun Colbert &lt;vcolbert@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[arm/tegra] serial: Stop rx dma only if transfer in progress.</title>
<updated>2010-10-20T22:44:30+00:00</updated>
<author>
<name>Laxman Dewangan</name>
<email>ldewangan@nvidia.com</email>
</author>
<published>2010-10-01T07:34:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=a01b22145d0cb8fe4092fae4ab3595ab3470502f'/>
<id>a01b22145d0cb8fe4092fae4ab3595ab3470502f</id>
<content type='text'>
If serial core driver request for the stop rx then dequeue
the dma request and read the rx fifo only if rx is in progress.

Change-Id: I8cd8a75a59773f0195ed876f7faeb89ac0f2cbec
Reviewed-on: http://git-master/r/7579
Reviewed-by: Pradeep Goudagunta &lt;pgoudagunta@nvidia.com&gt;
Tested-by: Pradeep Goudagunta &lt;pgoudagunta@nvidia.com&gt;
Reviewed-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Tested-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Reviewed-by: Bharat Nihalani &lt;bnihalani@nvidia.com&gt;
Reviewed-by: Varun Colbert &lt;vcolbert@nvidia.com&gt;
Tested-by: Varun Colbert &lt;vcolbert@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If serial core driver request for the stop rx then dequeue
the dma request and read the rx fifo only if rx is in progress.

Change-Id: I8cd8a75a59773f0195ed876f7faeb89ac0f2cbec
Reviewed-on: http://git-master/r/7579
Reviewed-by: Pradeep Goudagunta &lt;pgoudagunta@nvidia.com&gt;
Tested-by: Pradeep Goudagunta &lt;pgoudagunta@nvidia.com&gt;
Reviewed-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Tested-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Reviewed-by: Bharat Nihalani &lt;bnihalani@nvidia.com&gt;
Reviewed-by: Varun Colbert &lt;vcolbert@nvidia.com&gt;
Tested-by: Varun Colbert &lt;vcolbert@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[arm/tegra] serial: Fixing Tx to work in case of out of dma.</title>
<updated>2010-09-17T06:21:17+00:00</updated>
<author>
<name>Laxman Dewangan</name>
<email>ldewangan@nvidia.com</email>
</author>
<published>2010-09-06T17:49:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=22e87c5d5a1a35f1afb5a3a68f537f46716afacf'/>
<id>22e87c5d5a1a35f1afb5a3a68f537f46716afacf</id>
<content type='text'>
When system runs out of dma and uart driver tries to allocate
dma, the dma allocation fails. In such case, the uart
communication should work with interrupt based -non dma mode.

bug 730003

(cherry picked from commit 4a9d5633474c806799ccc6d167f3d624c92d560c)
(cherry picked from commit 2000a076103c559446d11ad49debc4e0f2952e8a)

Change-Id: I96c2a3f79fd9044e3b54771b60cad7dcb12f517b
Reviewed-on: http://git-master/r/6599
Reviewed-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Tested-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Reviewed-by: Harry Hong &lt;hhong@nvidia.com&gt;
Tested-by: Harry Hong &lt;hhong@nvidia.com&gt;
Reviewed-by: Bharat Nihalani &lt;bnihalani@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When system runs out of dma and uart driver tries to allocate
dma, the dma allocation fails. In such case, the uart
communication should work with interrupt based -non dma mode.

bug 730003

(cherry picked from commit 4a9d5633474c806799ccc6d167f3d624c92d560c)
(cherry picked from commit 2000a076103c559446d11ad49debc4e0f2952e8a)

Change-Id: I96c2a3f79fd9044e3b54771b60cad7dcb12f517b
Reviewed-on: http://git-master/r/6599
Reviewed-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Tested-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Reviewed-by: Harry Hong &lt;hhong@nvidia.com&gt;
Tested-by: Harry Hong &lt;hhong@nvidia.com&gt;
Reviewed-by: Bharat Nihalani &lt;bnihalani@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[arm/tegra] dma and serial: Adding pointer checks</title>
<updated>2010-09-16T11:03:17+00:00</updated>
<author>
<name>Laxman Dewangan</name>
<email>ldewangan@nvidia.com</email>
</author>
<published>2010-09-06T12:37:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=94469e8891c5a00c2f298c8d9c016857d948e694'/>
<id>94469e8891c5a00c2f298c8d9c016857d948e694</id>
<content type='text'>
Adding the valid pointer checks before accessing the pointers
which is passed when public apis are called.

Also resetting the pointers to null once the allocated handles
are freed.

(cherry picked from commit 0954407534a757b316bc35a0232968feed23243a)

Change-Id: Ib8b99f0556fb9a98c74ba8911a00879451fad9e5
Reviewed-on: http://git-master/r/6578
Reviewed-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Tested-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Reviewed-by: Bharat Nihalani &lt;bnihalani@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Adding the valid pointer checks before accessing the pointers
which is passed when public apis are called.

Also resetting the pointers to null once the allocated handles
are freed.

(cherry picked from commit 0954407534a757b316bc35a0232968feed23243a)

Change-Id: Ib8b99f0556fb9a98c74ba8911a00879451fad9e5
Reviewed-on: http://git-master/r/6578
Reviewed-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Tested-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Reviewed-by: Bharat Nihalani &lt;bnihalani@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[arm/tegra] serial: Removing wait loop for tx empty</title>
<updated>2010-09-14T03:44:31+00:00</updated>
<author>
<name>Laxman Dewangan</name>
<email>ldewangan@nvidia.com</email>
</author>
<published>2010-09-13T12:12:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=2dfdf8f1827ea26560b5295164d59590dabcff20'/>
<id>2dfdf8f1827ea26560b5295164d59590dabcff20</id>
<content type='text'>
When uart_close() or uart_suspend() calls the tegra_uart_suspend()
the drivers waits in tight loop for tx to be empty. This wait is
not required because serial_core driver have already waited for the
tx fifo to empty with proper timeout before calling these function.

bug 730612

(cherry picked from commit 13387c532dfb35dc672b290aec8b7a4db49730d6)
(cherry picked from commit ddd896c933e3f8d5fb28948ad957ec12b3d881cd)

Change-Id: Ie898ad0a134684844bf80ae00a1c8dd4b02a605a
Reviewed-on: http://git-master/r/6372
Reviewed-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Tested-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Reviewed-by: Harry Hong &lt;hhong@nvidia.com&gt;
Tested-by: Harry Hong &lt;hhong@nvidia.com&gt;
Reviewed-by: Bharat Nihalani &lt;bnihalani@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When uart_close() or uart_suspend() calls the tegra_uart_suspend()
the drivers waits in tight loop for tx to be empty. This wait is
not required because serial_core driver have already waited for the
tx fifo to empty with proper timeout before calling these function.

bug 730612

(cherry picked from commit 13387c532dfb35dc672b290aec8b7a4db49730d6)
(cherry picked from commit ddd896c933e3f8d5fb28948ad957ec12b3d881cd)

Change-Id: Ie898ad0a134684844bf80ae00a1c8dd4b02a605a
Reviewed-on: http://git-master/r/6372
Reviewed-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Tested-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Reviewed-by: Harry Hong &lt;hhong@nvidia.com&gt;
Tested-by: Harry Hong &lt;hhong@nvidia.com&gt;
Reviewed-by: Bharat Nihalani &lt;bnihalani@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[arm/tegra] serial: Using double buffering in receive path.</title>
<updated>2010-08-27T18:50:38+00:00</updated>
<author>
<name>Laxman Dewangan</name>
<email>ldewangan@nvidia.com</email>
</author>
<published>2010-08-19T11:48:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=bccaf58c73b6b9bb726b87b18d6e3b5d2b6e1106'/>
<id>bccaf58c73b6b9bb726b87b18d6e3b5d2b6e1106</id>
<content type='text'>
To improve the performance in receive path, the uart configures
the dma in the continuous double buffering mode. The dma keep
filling the same buffer in continuously and inform uart driver
when half of buffer completes.

Change-Id: Iff7c9433766f272384fc1a329ff1db8031987544
Reviewed-on: http://git-master/r/4419
Reviewed-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Tested-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Reviewed-by: Yu-Huan Hsu &lt;yhsu@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To improve the performance in receive path, the uart configures
the dma in the continuous double buffering mode. The dma keep
filling the same buffer in continuously and inform uart driver
when half of buffer completes.

Change-Id: Iff7c9433766f272384fc1a329ff1db8031987544
Reviewed-on: http://git-master/r/4419
Reviewed-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Tested-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Reviewed-by: Yu-Huan Hsu &lt;yhsu@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[arm/tegra] Serial: Confirming configured baudrate.</title>
<updated>2010-08-17T07:35:54+00:00</updated>
<author>
<name>Laxman Dewangan</name>
<email>ldewangan@nvidia.com</email>
</author>
<published>2010-08-10T11:51:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=6538f1285df4f8c0381b9995d8fd74b866119ebe'/>
<id>6538f1285df4f8c0381b9995d8fd74b866119ebe</id>
<content type='text'>
Sometimes, in uart, the desired baudrate can not be configured
in 5% error accuracy due to not finding the correct combination
of clock source freq and integer divisor. In this case the driver
should generate the error message.

Change-Id: Iafe245876a2cb9810c1025c02a4b6a36eb26aa4c
Reviewed-on: http://git-master/r/4974
Tested-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Reviewed-by: Gary King &lt;gking@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Sometimes, in uart, the desired baudrate can not be configured
in 5% error accuracy due to not finding the correct combination
of clock source freq and integer divisor. In this case the driver
should generate the error message.

Change-Id: Iafe245876a2cb9810c1025c02a4b6a36eb26aa4c
Reviewed-on: http://git-master/r/4974
Tested-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Reviewed-by: Gary King &lt;gking@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[arm/tegrar]serial:Make sure dma status updated before dma stop.</title>
<updated>2010-08-06T21:10:01+00:00</updated>
<author>
<name>Laxman Dewangan</name>
<email>ldewangan@nvidia.com</email>
</author>
<published>2010-08-06T01:15:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=1d37d0aa2e3dc546736430479053cf12c59011e7'/>
<id>1d37d0aa2e3dc546736430479053cf12c59011e7</id>
<content type='text'>
Sometimes, when uart ask for the dma for get the number of bytes
transferred by dma, the dma does not return the actual number of
bytes transffred, it returns the less number of byes (less by
burst size) and so uart driver client gets the data loss in
communication.

So to avoid the race condition, the driver stops the incoming data
by making RTS line to inactive and wait for some time to complete
the dma burst and then ask dma to get number of bytes transffred
by dma from fifo to memory.

Change-Id: I08de955fde77431115626bd884b68c8e42d52270
Reviewed-on: http://git-master/r/4832
Reviewed-by: Anantha Idapalapati &lt;aidapalapati@nvidia.com&gt;
Tested-by: Anantha Idapalapati &lt;aidapalapati@nvidia.com&gt;
Reviewed-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Tested-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Reviewed-by: Gary King &lt;gking@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Sometimes, when uart ask for the dma for get the number of bytes
transferred by dma, the dma does not return the actual number of
bytes transffred, it returns the less number of byes (less by
burst size) and so uart driver client gets the data loss in
communication.

So to avoid the race condition, the driver stops the incoming data
by making RTS line to inactive and wait for some time to complete
the dma burst and then ask dma to get number of bytes transffred
by dma from fifo to memory.

Change-Id: I08de955fde77431115626bd884b68c8e42d52270
Reviewed-on: http://git-master/r/4832
Reviewed-by: Anantha Idapalapati &lt;aidapalapati@nvidia.com&gt;
Tested-by: Anantha Idapalapati &lt;aidapalapati@nvidia.com&gt;
Reviewed-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Tested-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Reviewed-by: Gary King &lt;gking@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
