<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/serial/serial_core.c, branch linux-2.6.25.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.25.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.25.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2008-07-24T16:14:06Z</updated>
<entry>
<title>serial: fix serial_match_port() for dynamic major tty-device numbers</title>
<updated>2008-07-24T16:14:06Z</updated>
<author>
<name>Guennadi Liakhovetski</name>
</author>
<published>2008-07-04T20:05:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=81c5896b8f697f5135153055e15cf52da375095a'/>
<id>urn:sha1:81c5896b8f697f5135153055e15cf52da375095a</id>
<content type='text'>
commit 7ca796f492a11f9408e661c8f22cd8c4f486b8e5 upstream

As reported by Vipul Gandhi, the current serial_match_port() doesn't work
for tty-devices using dynamic major number allocation.  Fix it.

It oopses if you suspend a serial port with _dynamic_ major number.  ATM,
I think, there's only the drivers/serial/jsm/jsm_driver.c driver, that
does it in-tree.

Signed-off-by: Guennadi Liakhovetski &lt;g.liakhovetski@gmx.de&gt;
Tested-by: Vipul Gandhi &lt;vcgandhi1@aol.com&gt;
Cc: Alan Cox &lt;alan@lxorguk.ukuu.org.uk&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>serial: fix enable_irq_wake/disable_irq_wake imbalance in serial_core.c</title>
<updated>2008-06-16T20:20:05Z</updated>
<author>
<name>Arjan van de Ven</name>
</author>
<published>2008-05-23T20:04:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3f8c9c7e37568163e4a9d923286b8ca30a42bed6'/>
<id>urn:sha1:3f8c9c7e37568163e4a9d923286b8ca30a42bed6</id>
<content type='text'>
commit 03a74dcc7eebe6edd778317e82fafdf71e68488c in mainline.

enable_irq_wake() and disable_irq_wake() need to be balanced.  However,
serial_core.c calls these for different conditions during the suspend and
resume functions...

This is causing a regular WARN_ON() as found at
http://www.kerneloops.org/search.php?search=set_irq_wake

This patch makes the conditions for triggering the _wake enable/disable
sequence identical.

Signed-off-by: Arjan van de Ven &lt;arjan@linux.intel.com&gt;
Cc: Alan Cox &lt;alan@lxorguk.ukuu.org.uk&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>serial: access after NULL check in uart_flush_buffer()</title>
<updated>2008-05-15T14:49:59Z</updated>
<author>
<name>Tetsuo Handa</name>
</author>
<published>2008-05-08T21:06:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2a57a7ee4005e63d1239b349aa8167093d93a11f'/>
<id>urn:sha1:2a57a7ee4005e63d1239b349aa8167093d93a11f</id>
<content type='text'>
commit 55d7b68996a5064f011d681bca412b6281d2f711 upstream

I noticed that

  static void uart_flush_buffer(struct tty_struct *tty)
  {
  	struct uart_state *state = tty-&gt;driver_data;
  	struct uart_port *port = state-&gt;port;
  	unsigned long flags;

  	/*
  	 * This means you called this function _after_ the port was
  	 * closed.  No cookie for you.
  	 */
  	if (!state || !state-&gt;info) {
  		WARN_ON(1);
  		return;
  	}

is too late for checking state != NULL.

Signed-off-by: Tetsuo Handa &lt;penguin-kernel@I-love.SAKURA.ne.jp&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>fs/char_dev.c: chrdev_open marked static and removed from fs.h</title>
<updated>2008-02-08T17:22:42Z</updated>
<author>
<name>Denis Cheng</name>
</author>
<published>2008-02-08T12:22:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=922f9cfa79b52c85b6002d96cb0eefd13437c58c'/>
<id>urn:sha1:922f9cfa79b52c85b6002d96cb0eefd13437c58c</id>
<content type='text'>
There is an outdated comment in serial_core.c also fixed.

Signed-off-by: Denis Cheng &lt;crquan@gmail.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>serial_core: bring mostly into line with coding style</title>
<updated>2008-02-08T17:22:25Z</updated>
<author>
<name>Alan Cox</name>
</author>
<published>2008-02-08T12:18:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a46c9994242978ab001299cc9c906b9a3eedadcc'/>
<id>urn:sha1:a46c9994242978ab001299cc9c906b9a3eedadcc</id>
<content type='text'>
Signed-off-by: Alan Cox &lt;alan@redhat.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>serial: speed setup failure reporting</title>
<updated>2008-02-05T17:44:10Z</updated>
<author>
<name>Alan Cox</name>
</author>
<published>2008-02-05T06:27:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6d4d67beb963de8865499781b8523e5b683819c3'/>
<id>urn:sha1:6d4d67beb963de8865499781b8523e5b683819c3</id>
<content type='text'>
Invalid speeds are forced to 9600. Update the code for this to encode new
style baud rates properly.

Signed-off-by: Alan Cox &lt;alan@redhat.com&gt;
Cc: Russell King &lt;rmk@arm.linux.org.uk&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>serial: avoid stalling suspend if serial port won't drain</title>
<updated>2008-02-05T17:44:10Z</updated>
<author>
<name>Russell King</name>
</author>
<published>2008-02-05T06:27:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c8c6bfa39d6bd7347f43937c8767ae145b61bcb4'/>
<id>urn:sha1:c8c6bfa39d6bd7347f43937c8767ae145b61bcb4</id>
<content type='text'>
Some ports seem to be unable to drain their transmitters on shut down.  Such a
problem can occur if the port is programmed for hardware imposed flow control,
characters are in the FIFO but the CTS signal is inactive.

Normally, this isn't a problem because most places where we wait for the
transmitter to drain have a time-out.  However, there is no timeout in the
suspend path.

Give a port 30ms to drain; this is an arbitary value chosen to avoid long
delays if there are many such ports in the system, while giving a reasonable
chance for a single port to drain.  Should a port not drain within this
timeout, issue a warning.

Signed-off-by: Russell King &lt;rmk+kernel@arm.linux.org.uk&gt;
Acked-by: Alan Cox &lt;alan@lxorguk.ukuu.org.uk&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>serial: avoid waking up closed serial ports on resume</title>
<updated>2008-02-05T17:44:09Z</updated>
<author>
<name>Russell King</name>
</author>
<published>2008-02-05T06:27:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9d778a69370cc1b643b13648df971c83ff5654ef'/>
<id>urn:sha1:9d778a69370cc1b643b13648df971c83ff5654ef</id>
<content type='text'>
When we boot, serial ports remain in low power mode until they're used either
by userspace or for the kernel console.

However, if you suspend the system, and then resume, all serial ports will be
taken out of low power mode.  This is bad news for embedded devices where this
can mean higher power consumption.

Only bring a serial port out of low power mode if the port is being used as
the kernel console, or is in use by userspace.

Signed-off-by: Russell King &lt;rmk+kernel@arm.linux.org.uk&gt;
Acked-by: Alan Cox &lt;alan@lxorguk.ukuu.org.uk&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>serial: keep the DTR setting for serial console.</title>
<updated>2008-02-05T17:44:09Z</updated>
<author>
<name>Yinghai Lu</name>
</author>
<published>2008-02-05T06:27:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c3e4642be734ce3d2c7398246d8cbced3a039f54'/>
<id>urn:sha1:c3e4642be734ce3d2c7398246d8cbced3a039f54</id>
<content type='text'>
with reverting "x86, serial: convert legacy COM ports to platform devices",
we will have the serial console before the port is probled again.

uart_add_one_port==&gt;uart_configure_port==&gt;set_mcttrl(port, 0) will clear
the DTR setting by uart_set_options().  then I will lose my output from
serial console again.

So try to keep DTR in uart_configure_port()

Signed-off-by: Yinghai Lu &lt;yinghai.lu@sun.com&gt;
Cc: Russell King &lt;rmk@arm.linux.org.uk&gt;
Cc: Alan Cox &lt;alan@lxorguk.ukuu.org.uk&gt;
Cc: Andi Kleen &lt;ak@suse.de&gt;
Cc: Bjorn Helgaas &lt;bjorn.helgaas@hp.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>serial: stop passing NULL to functions that expect data</title>
<updated>2007-10-25T19:18:40Z</updated>
<author>
<name>Alan Cox</name>
</author>
<published>2007-10-18T08:24:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=149b36eae2ab6aa6056664f4bc461f3d3affc9c1'/>
<id>urn:sha1:149b36eae2ab6aa6056664f4bc461f3d3affc9c1</id>
<content type='text'>
Earlier patches have removed the checking for old v new differences from the
USB drivers so we can now pass in a valid blank old termios so that we don't
to fill the drivers with magic hacks for console support

Signed-off-by: Alan Cox &lt;alan@redhat.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
</feed>
