<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/tty/serial, branch v3.0</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v3.0</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v3.0'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2011-07-04T22:54:18Z</updated>
<entry>
<title>Merge branch 'at91/fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/linux-2.6-arm-soc</title>
<updated>2011-07-04T22:54:18Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2011-07-04T22:54:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=fc52693f8f54485af29be1adc90ce2bd54ad325f'/>
<id>urn:sha1:fc52693f8f54485af29be1adc90ce2bd54ad325f</id>
<content type='text'>
* 'at91/fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/linux-2.6-arm-soc:
  AT91: Change nand buswidth logic to match hardware default configuration
  at91: Use "pclk" as con_id on at91cap9 and at91rm9200
  at91: fix udc, ehci and mmc clock device name for cap9/9g45/9rl
  atmel_serial: fix internal port num
  at91: fix at91_set_serial_console: use platform device id
</content>
</entry>
<entry>
<title>Merge branch 'tty-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty-2.6</title>
<updated>2011-06-28T18:14:55Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2011-06-28T18:14:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=04b905942b482092a547798a2477f21e32a8f65d'/>
<id>urn:sha1:04b905942b482092a547798a2477f21e32a8f65d</id>
<content type='text'>
* 'tty-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty-2.6:
  serial: bcm63xx_uart: fix irq storm after rx fifo overrun.
  amba pl011: platform data for reg lockup and glitch v2
  amba pl011: workaround for uart registers lockup
  tty: n_gsm: improper skb_pull() use was leaking framed data
  tty: n_gsm: Fixed logic to decode break signal from modem status
  TTY: ntty, add one more sanity check
  TTY: ldisc, do not close until there are readers
  8250: Fix capabilities when changing the port type
  8250_pci: Fix missing const from merges
  ARM: SAMSUNG: serial: Fix on handling of one clock source for UART
  serial: ioremap warning fix for jsm driver.
  8250_pci: add -ENODEV code for Intel EG20T PCH
</content>
</entry>
<entry>
<title>drivers/tty/serial/8250_pci.c: fix warning</title>
<updated>2011-06-28T01:00:13Z</updated>
<author>
<name>Andrew Morton</name>
<email>akpm@linux-foundation.org</email>
</author>
<published>2011-06-27T23:18:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=a39bce7bf60e728cb33b6b0415c3f44e7f1a102b'/>
<id>urn:sha1:a39bce7bf60e728cb33b6b0415c3f44e7f1a102b</id>
<content type='text'>
Fis the warning

  drivers/tty/serial/8250_pci.c:1457: warning: initialization from incompatible pointer type

Cc: Greg KH &lt;greg@kroah.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>atmel_serial: fix internal port num</title>
<updated>2011-06-25T05:34:21Z</updated>
<author>
<name>Jean-Christophe PLAGNIOL-VILLARD</name>
<email>plagnioj@jcrosoft.com</email>
</author>
<published>2011-06-21T04:17:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=deba1a0d58b54905a5201cb9e1aa878cfc74ff70'/>
<id>urn:sha1:deba1a0d58b54905a5201cb9e1aa878cfc74ff70</id>
<content type='text'>
the atmel_ports is link to the console number and not the device id

this was not detected on at91 as we always register the dbgu on the console
as ttyS0

tested on at91sam9263 by setting the dbgu as ttyS1 and use as console

diff --git a/arch/arm/mach-at91/board-sam9263ek.c b/arch/arm/mach-at91/board-sam9263ek.c
index 70e5646..9b8a14f 100644
- a/arch/arm/mach-at91/board-sam9263ek.c
+ b/arch/arm/mach-at91/board-sam9263ek.c
@@ -58,14 +58,14 @@ static void __init ek_init_early(void)
        /* Initialize processor: 16.367 MHz crystal */
        at91_initialize(16367660);

-       /* DBGU on ttyS0. (Rx &amp; Tx only) */
-       at91_register_uart(0, 0, 0);
+       /* DBGU on ttyS1. (Rx &amp; Tx only) */
+       at91_register_uart(0, 1, 0);

-       /* USART0 on ttyS1. (Rx, Tx, RTS, CTS) */
-       at91_register_uart(AT91SAM9263_ID_US0, 1, ATMEL_UART_CTS | ATMEL_UART_RTS);
+       /* USART0 on ttyS0. (Rx, Tx, RTS, CTS) */
+       at91_register_uart(AT91SAM9263_ID_US0, 0, ATMEL_UART_CTS | ATMEL_UART_RTS);

-       /* set serial console to ttyS0 (ie, DBGU) */
-       at91_set_serial_console(0);
+       /* set serial console to ttyS1 (ie, DBGU) */
+       at91_set_serial_console(1);
 }

 /*

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD &lt;plagnioj@jcrosoft.com&gt;
Cc: Nicolas Ferre &lt;nicolas.ferre@atmel.com&gt;
Cc: Alan Cox &lt;alan@linux.intel.com&gt;
Cc: Hans-Christian Egtvedt &lt;hans-christian.egtvedt@atmel.com&gt;
</content>
</entry>
<entry>
<title>serial: mrst_max3110: initialize waitqueue earlier</title>
<updated>2011-06-23T15:54:10Z</updated>
<author>
<name>Mika Westerberg</name>
<email>mika.westerberg@linux.intel.com</email>
</author>
<published>2011-06-23T12:39:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=33b1e6939f5c37ab8e64280fd3d54046607b5c80'/>
<id>urn:sha1:33b1e6939f5c37ab8e64280fd3d54046607b5c80</id>
<content type='text'>
The driver went to initialize its waitqueue at the start of the main
processing thread.  However, it is possible that this thread is not
scheduled on a CPU before the write function is called which leads to a
following error:

  BUG: spinlock bad magic on CPU#1, swapper/1
   lock: f5f3ebdc, .magic: 00000000, .owner: &lt;none&gt;/-1, .owner_cpu: 0
  Pid: 1, comm: swapper Not tainted 3.0.0-rc2+ #67
  Call Trace:
   [&lt;c1289663&gt;] spin_bug+0xa3/0xf0
   [&lt;c12897ad&gt;] do_raw_spin_lock+0x7d/0x150
   [&lt;c14963de&gt;] _raw_spin_lock_irqsave+0x4e/0x60
   [&lt;c102f2bb&gt;] __wake_up+0x1b/0x50
   [&lt;c12d3715&gt;] serial_m3110_con_write+0x55/0x60
   [&lt;c1041575&gt;] __call_console_drivers+0x75/0x90
   [&lt;c10415d9&gt;] _call_console_drivers+0x49/0x80
   [&lt;c1041baa&gt;] console_unlock+0xca/0x1f0
   [&lt;c10420ef&gt;] vprintk+0x18f/0x4f0
   [&lt;c14928a3&gt;] printk+0x18/0x1a
   [&lt;c1042730&gt;] register_console+0x2e0/0x350
   [&lt;c12d098e&gt;] uart_add_one_port+0x33e/0x3d0
   [&lt;c1485ba6&gt;] serial_m3110_probe+0x1c2/0x1df
   [&lt;c1303db7&gt;] spi_drv_probe+0x17/0x20
   ...

Fix this by initializing the waitqueue before the main thread is
created.

Signed-off-by: Mika Westerberg &lt;mika.westerberg@linux.intel.com&gt;
Signed-off-by: Alan Cox &lt;alan@linux.intel.com&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>mrst_max3110: Change max missing message priority.</title>
<updated>2011-06-23T15:54:09Z</updated>
<author>
<name>William Douglas</name>
<email>william.douglas@intel.com</email>
</author>
<published>2011-06-23T12:38:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=0bb04bf3dfdfe1c981087cdfb0d9d772c3a0ba55'/>
<id>urn:sha1:0bb04bf3dfdfe1c981087cdfb0d9d772c3a0ba55</id>
<content type='text'>
Change print message to notice instead of error to clean up non critical
messages showing on startup.  The MAX3111 not being present is a normal
path for end user systems.

Signed-off-by: William Douglas &lt;william.douglas@intel.com&gt;
[rebased on 3.0, switched to dev_dbg()]
Signed-off-by: Alan Cox &lt;alan@linux.intel.com&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>serial: bcm63xx_uart: fix irq storm after rx fifo overrun.</title>
<updated>2011-06-16T19:01:58Z</updated>
<author>
<name>Maxime Bizon</name>
<email>mbizon@freebox.fr</email>
</author>
<published>2011-06-10T21:17:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=3bc46b312b1486b1fe2db4246a34a30160d26d8d'/>
<id>urn:sha1:3bc46b312b1486b1fe2db4246a34a30160d26d8d</id>
<content type='text'>
RX fifo reset is required to clear irq.

Signed-off-by: Maxime Bizon &lt;mbizon@freebox.fr&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
</entry>
<entry>
<title>amba pl011: workaround for uart registers lockup</title>
<updated>2011-06-16T19:01:57Z</updated>
<author>
<name>Shreshtha Kumar Sahu</name>
<email>shreshthakumar.sahu@stericsson.com</email>
</author>
<published>2011-06-13T08:11:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=c16d51a32bbb61ac8fd96f78b5ce2fccfe0fb4c3'/>
<id>urn:sha1:c16d51a32bbb61ac8fd96f78b5ce2fccfe0fb4c3</id>
<content type='text'>
This workaround aims to break the deadlock situation
which raises during continuous transfer of data for long
duration over uart with hardware flow control. It is
observed that CTS interrupt cannot be cleared in uart
interrupt register (ICR). Hence further transfer over
uart gets blocked.

It is seen that during such deadlock condition ICR
don't get cleared even on multiple write. This leads
pass_counter to decrease and finally reach zero. This
can be taken as trigger point to run this UART_BT_WA.

Workaround backups the register configuration, does soft
reset of UART using BIT-0 of PRCC_K_SOFTRST_SET/CLEAR
registers and restores the registers.

This patch also provides support for uart init and exit
function calls if present.

Signed-off-by: Shreshtha Kumar Sahu &lt;shreshthakumar.sahu@stericsson.com&gt;
Signed-off-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
</entry>
<entry>
<title>drivers/tty/serial/pch_uart.c: don't oops if dmi_get_system_info returns NULL</title>
<updated>2011-06-16T03:04:02Z</updated>
<author>
<name>Alexander Stein</name>
<email>alexander.stein@systec-electronic.com</email>
</author>
<published>2011-06-15T22:08:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=fb139dfeef9558a12ffdbf9e26951fd1a9304f3b'/>
<id>urn:sha1:fb139dfeef9558a12ffdbf9e26951fd1a9304f3b</id>
<content type='text'>
If dmi_get_system_info() returns NULL, pch_uart_init_port() will
dereferencea a zero pointer.

This oops was observed on an Atom based board which has no BIOS, but
a bootloder which doesn't provide DMI data.

Signed-off-by: Alexander Stein &lt;alexander.stein@systec-electronic.com&gt;
Cc: Greg KH &lt;gregkh@suse.de&gt;
Cc: &lt;stable@kernel.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>8250: Fix capabilities when changing the port type</title>
<updated>2011-06-07T16:29:35Z</updated>
<author>
<name>leitao@linux.vnet.ibm.com</name>
<email>leitao@linux.vnet.ibm.com</email>
</author>
<published>2011-05-26T14:18:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=cb01ece3ea5dec16ac7bab30069c7736b59f7dea'/>
<id>urn:sha1:cb01ece3ea5dec16ac7bab30069c7736b59f7dea</id>
<content type='text'>
When changing the port type, the capabilities flags should be changed
also, otherwise the capabilities will not correspond to the port type,
which make set_sleep() crash on rmmod.

This patch just assign the correct capabilites when the port changes.

Signed-off-by: Breno Leitao &lt;leitao@linux.vnet.ibm.com&gt;
CC: Michael Reed &lt;mreed@linux.vnet.ibm.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
</entry>
</feed>
