<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/drivers/serial, branch tegra-11.2.10</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>serial-core: keep value of console cflag in uart_update_termios</title>
<updated>2011-05-28T02:53:31+00:00</updated>
<author>
<name>Alexandre Courbot</name>
<email>acourbot@nvidia.com</email>
</author>
<published>2011-05-26T05:43:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=9c93cbac2a72e238229ecb070cbf7d4791c11cb8'/>
<id>9c93cbac2a72e238229ecb070cbf7d4791c11cb8</id>
<content type='text'>
uart_update_termios is called on console resume and restores the line
parameters using cons-&gt;cflag before resetting it. However code in
uart_resume_port does the same afterwards, applying a 0 value to the
port's cflag and erasing the correct setting. This patch preserves the
value of cflag in uart_update_termios to prevent this and allow the
serial console to restore properly even if there is no program using it
on user side.

Serial code has been largely refactored upstream in the upstream kernel
and faulty code apparently removed.

Fixes bug 831077

Change-Id: Ia894f971d9b6bb0c6103dbca9d169dc2a2148f84
Reviewed-on: http://git-master/r/33098
Reviewed-by: Alex Courbot &lt;acourbot@nvidia.com&gt;
Tested-by: Alex Courbot &lt;acourbot@nvidia.com&gt;
Reviewed-by: David Schalig &lt;dschalig@nvidia.com&gt;
Reviewed-by: Janne Hellsten &lt;jhellsten@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
uart_update_termios is called on console resume and restores the line
parameters using cons-&gt;cflag before resetting it. However code in
uart_resume_port does the same afterwards, applying a 0 value to the
port's cflag and erasing the correct setting. This patch preserves the
value of cflag in uart_update_termios to prevent this and allow the
serial console to restore properly even if there is no program using it
on user side.

Serial code has been largely refactored upstream in the upstream kernel
and faulty code apparently removed.

Fixes bug 831077

Change-Id: Ia894f971d9b6bb0c6103dbca9d169dc2a2148f84
Reviewed-on: http://git-master/r/33098
Reviewed-by: Alex Courbot &lt;acourbot@nvidia.com&gt;
Tested-by: Alex Courbot &lt;acourbot@nvidia.com&gt;
Reviewed-by: David Schalig &lt;dschalig@nvidia.com&gt;
Reviewed-by: Janne Hellsten &lt;jhellsten@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>serial: core: Restore termios settings on resume console ports</title>
<updated>2011-05-10T01:00:22+00:00</updated>
<author>
<name>Vandana Salve</name>
<email>vsalve@nvidia.com</email>
</author>
<published>2011-05-06T06:51:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=952e0e908ab4dcd61eaab0ad8fef3e42fe5f8fce'/>
<id>952e0e908ab4dcd61eaab0ad8fef3e42fe5f8fce</id>
<content type='text'>
The commit 4547be7 rewrites suspend and resume functions. According
to this rewrite, when a serial port is a printk console device and
can suspend(without set no_console_suspend flag), it will definitely
call set_termios function during its resume, but parameter termios
isn't initialized, this will pass an unpredictable config to the
serial port. If this serial port is not a userspace opened tty device
, a suspend and resume action will make this serial port unusable.
I.E. ttyS0 is a printk console device, ttyS1 or keyboard+display is
userspace tty device, a suspend/resume action will make ttyS0
unusable.

If a serial port is both a printk console device and an opened tty
device, this issue can be overcome because it will call set_termios
again with the correct parameter in the uart_change_speed function.

Refer to the deleted content of commit 4547be7, revert parts relate
to restore settings into parameter termios. It is safe because if
a serial port is a printk console only device, the only meaningful
field in termios is c_cflag and its old config is saved in
uport-&gt;cons-&gt;cflag, if this port is also an opened tty device,
it will clear uport-&gt;cons-&gt;cflag in the uart_open and the old config
is saved in tty-&gt;termios.

refer http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.37.y.git;
a=commit;h=891b9dd10764352926e1e107756aa229dfa2c210

cherry-pick the changes from the kernel 2.6.37 commit id
:891b9dd10764352926e1e107756aa229dfa2c210

Cherry-picked http://git-master/r/#change,20302

Bug 819016

Change-Id: Ic7ce0a6d595c0e1f65285d7978db93be12158f0f
Reviewed-on: http://git-master/r/30680
Reviewed-by: Bharat Nihalani &lt;bnihalani@nvidia.com&gt;
Tested-by: Bharat Nihalani &lt;bnihalani@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The commit 4547be7 rewrites suspend and resume functions. According
to this rewrite, when a serial port is a printk console device and
can suspend(without set no_console_suspend flag), it will definitely
call set_termios function during its resume, but parameter termios
isn't initialized, this will pass an unpredictable config to the
serial port. If this serial port is not a userspace opened tty device
, a suspend and resume action will make this serial port unusable.
I.E. ttyS0 is a printk console device, ttyS1 or keyboard+display is
userspace tty device, a suspend/resume action will make ttyS0
unusable.

If a serial port is both a printk console device and an opened tty
device, this issue can be overcome because it will call set_termios
again with the correct parameter in the uart_change_speed function.

Refer to the deleted content of commit 4547be7, revert parts relate
to restore settings into parameter termios. It is safe because if
a serial port is a printk console only device, the only meaningful
field in termios is c_cflag and its old config is saved in
uport-&gt;cons-&gt;cflag, if this port is also an opened tty device,
it will clear uport-&gt;cons-&gt;cflag in the uart_open and the old config
is saved in tty-&gt;termios.

refer http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.37.y.git;
a=commit;h=891b9dd10764352926e1e107756aa229dfa2c210

cherry-pick the changes from the kernel 2.6.37 commit id
:891b9dd10764352926e1e107756aa229dfa2c210

Cherry-picked http://git-master/r/#change,20302

Bug 819016

Change-Id: Ic7ce0a6d595c0e1f65285d7978db93be12158f0f
Reviewed-on: http://git-master/r/30680
Reviewed-by: Bharat Nihalani &lt;bnihalani@nvidia.com&gt;
Tested-by: Bharat Nihalani &lt;bnihalani@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>merging android-tegra-2.6.36 into git-master/linux-2.6/android-tegra-2.6.36</title>
<updated>2011-04-01T11:30:08+00:00</updated>
<author>
<name>Nitin Kumbhar</name>
<email>nkumbhar@nvidia.com</email>
</author>
<published>2011-04-01T11:30:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=677368f44ce65fe2292f696f0bfd568d3ac78436'/>
<id>677368f44ce65fe2292f696f0bfd568d3ac78436</id>
<content type='text'>
Conflicts:
	drivers/serial/tegra_hsuart.c
	drivers/usb/host/ehci-tegra.c

Change-Id: Ief6c03a63615a41e85de59ad14dedef309d0b2fb
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Conflicts:
	drivers/serial/tegra_hsuart.c
	drivers/usb/host/ehci-tegra.c

Change-Id: Ief6c03a63615a41e85de59ad14dedef309d0b2fb
</pre>
</div>
</content>
</entry>
<entry>
<title>serial: 8250: support auto control of RTSCTS on tegra type</title>
<updated>2011-03-29T06:49:40+00:00</updated>
<author>
<name>Pradeep Goudagunta</name>
<email>pgoudagunta@nvidia.com</email>
</author>
<published>2011-03-28T11:02:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=66fa9abefccdc75f6feb283ac60acacd257dcc99'/>
<id>66fa9abefccdc75f6feb283ac60acacd257dcc99</id>
<content type='text'>
Add UART_CAP_HW_CTSRTS flag to tegra type for supporting auto control
of RTSCTS.

Bug 803910

Change-Id: I7b69e4b203e66903ba5755338fcb55f4a87b9a43
Reviewed-on: http://git-master/r/24463
Tested-by: Pradeep Goudagunta &lt;pgoudagunta@nvidia.com&gt;
Reviewed-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>
Add UART_CAP_HW_CTSRTS flag to tegra type for supporting auto control
of RTSCTS.

Bug 803910

Change-Id: I7b69e4b203e66903ba5755338fcb55f4a87b9a43
Reviewed-on: http://git-master/r/24463
Tested-by: Pradeep Goudagunta &lt;pgoudagunta@nvidia.com&gt;
Reviewed-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Reviewed-by: Bharat Nihalani &lt;bnihalani@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'linux-tegra-2.6.36' into android-tegra-2.6.36</title>
<updated>2011-03-22T18:42:14+00:00</updated>
<author>
<name>Colin Cross</name>
<email>ccross@android.com</email>
</author>
<published>2011-03-22T18:42:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=9b571241de8cfa131178e9120ad46f1756bad8a7'/>
<id>9b571241de8cfa131178e9120ad46f1756bad8a7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>serial: tegra_hsuart: Make sure current byte rx complete in suspend</title>
<updated>2011-03-22T18:40:08+00:00</updated>
<author>
<name>Andrei Warkentin</name>
<email>andreiw@motorola.com</email>
</author>
<published>2011-03-22T18:37:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=d3c9f78e7ec505076ddad2aefaeef5e8c20a4823'/>
<id>d3c9f78e7ec505076ddad2aefaeef5e8c20a4823</id>
<content type='text'>
Make sure that the last byte has been received by the uart during
suspend after RTS is deasserted.

Change-Id: I3517ec058fdca912ff5ad8770d2b1c5015385385
Signed-off-by: Andrei Warkentin &lt;andreiw@motorola.com&gt;
Signed-off-by: Colin Cross &lt;ccross@android.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make sure that the last byte has been received by the uart during
suspend after RTS is deasserted.

Change-Id: I3517ec058fdca912ff5ad8770d2b1c5015385385
Signed-off-by: Andrei Warkentin &lt;andreiw@motorola.com&gt;
Signed-off-by: Colin Cross &lt;ccross@android.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>serial: tegra_hsuart: Call complete callbacks when cancelling reqs</title>
<updated>2011-03-22T18:25:26+00:00</updated>
<author>
<name>Colin Cross</name>
<email>ccross@android.com</email>
</author>
<published>2011-03-16T23:56:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=e75e6b2a2ff3af9724f2e6e25790cbe1f4b4dad8'/>
<id>e75e6b2a2ff3af9724f2e6e25790cbe1f4b4dad8</id>
<content type='text'>
Updates the tegra_hsuart driver to match the changes in the Tegra
dma engine.

Change-Id: Iaaf8770166156c1a6d889a6a11bae517626781ee
Signed-off-by: Colin Cross &lt;ccross@android.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Updates the tegra_hsuart driver to match the changes in the Tegra
dma engine.

Change-Id: Iaaf8770166156c1a6d889a6a11bae517626781ee
Signed-off-by: Colin Cross &lt;ccross@android.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tegra hsuart: Clean tx_bytes in tegra_flush_buffer</title>
<updated>2011-03-09T05:06:36+00:00</updated>
<author>
<name>Victor Ryabukhin</name>
<email>vryabukhin@nvidia.com</email>
</author>
<published>2011-03-07T09:23:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=ba46e4d1b1a9c29df06baaa1f30442be4c37f99e'/>
<id>ba46e4d1b1a9c29df06baaa1f30442be4c37f99e</id>
<content type='text'>
tx_bytes might contain amount of bytes which should
be transmitted after next "tx empty" interrupt.
If we clear xmit circular buffer, tx_bytes should
also be set to 0, otherwise it will lead to crash
in fill_tx_fifo.

Bug 794635

Change-Id: Ia34aba33dd09730c8f91d19e5c103cf1060a357e
Reviewed-on: http://git-master/r/21844
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>
tx_bytes might contain amount of bytes which should
be transmitted after next "tx empty" interrupt.
If we clear xmit circular buffer, tx_bytes should
also be set to 0, otherwise it will lead to crash
in fill_tx_fifo.

Bug 794635

Change-Id: Ia34aba33dd09730c8f91d19e5c103cf1060a357e
Reviewed-on: http://git-master/r/21844
Reviewed-by: Varun Colbert &lt;vcolbert@nvidia.com&gt;
Tested-by: Varun Colbert &lt;vcolbert@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>merging android-tegra-2.6.36 into git-master/linux-2.6/android-tegra-2.6.36</title>
<updated>2011-03-07T13:08:30+00:00</updated>
<author>
<name>Nitin Kumbhar</name>
<email>nkumbhar@nvidia.com</email>
</author>
<published>2011-03-07T13:08:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=04db8ee9121dbddcccfa5fb0e0e34b9a5028c6c3'/>
<id>04db8ee9121dbddcccfa5fb0e0e34b9a5028c6c3</id>
<content type='text'>
Conflicts:
	arch/arm/mach-tegra/include/mach/system.h
	arch/arm/mach-tegra/include/mach/usb_phy.h
	arch/arm/mach-tegra/usb_phy.c
	drivers/usb/host/ehci-tegra.c
	drivers/video/tegra/dc/dc.c
	drivers/video/tegra/dc/hdmi.c
	include/linux/tegra_usb.h

Change-Id: Ic1f4f2b360893e8de6b867a8ecc239aca02367da
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Conflicts:
	arch/arm/mach-tegra/include/mach/system.h
	arch/arm/mach-tegra/include/mach/usb_phy.h
	arch/arm/mach-tegra/usb_phy.c
	drivers/usb/host/ehci-tegra.c
	drivers/video/tegra/dc/dc.c
	drivers/video/tegra/dc/hdmi.c
	include/linux/tegra_usb.h

Change-Id: Ic1f4f2b360893e8de6b867a8ecc239aca02367da
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'linux-tegra-2.6.36' into android-tegra-2.6.36</title>
<updated>2011-03-02T01:26:56+00:00</updated>
<author>
<name>Colin Cross</name>
<email>ccross@android.com</email>
</author>
<published>2011-03-02T01:26:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=4f72bb8eddaeb1ddf290fa367aace61c9947ed54'/>
<id>4f72bb8eddaeb1ddf290fa367aace61c9947ed54</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
