public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch 2.6.13-git] 8250 tweaks
@ 2005-07-12  2:22 David Brownell
  2005-07-12  7:19 ` Russell King
  0 siblings, 1 reply; 20+ messages in thread
From: David Brownell @ 2005-07-12  2:22 UTC (permalink / raw)
  To: Linux Kernel list, rmk+serial

[-- Attachment #1: Type: text/plain, Size: 150 bytes --]

Two small changes:  make the IRQ name less generic, and stop
whining about certain non-errors (details in the patch comments).
Please merge.

- Dave


[-- Attachment #2: 8250.patch --]
[-- Type: text/x-diff, Size: 1159 bytes --]

Make the 8250 UART driver register its IRQ using a label that's more
appropriate ... it's an 8250 UART, not one of dozens of other kind of
serial link (I2C, SPI, USB, McBSP, I2S, non-8250 UART, USART, SSP,
MicroWire, PS/2 kbd/mouse/touchpad, MCSI, HDQ/1-Wire, ... etc).

Also, make it stop whining when one of the platform serial ports has
been disabled, e.g. because a given board doesn't wire it out.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>

--- o26.orig/drivers/serial/8250.c	2005-07-11 18:41:03.000000000 -0700
+++ o26/drivers/serial/8250.c	2005-07-11 18:58:26.000000000 -0700
@@ -1317,7 +1317,7 @@ static int serial_link_irq_chain(struct 
 		spin_unlock_irq(&i->lock);
 
 		ret = request_irq(up->port.irq, serial8250_interrupt,
-				  irq_flags, "serial", i);
+				  irq_flags, "uart_8250", i);
 		if (ret < 0)
 			serial_do_unlink(i, up);
 	}
@@ -2331,6 +2331,8 @@ static int __devinit serial8250_probe(st
 	memset(&port, 0, sizeof(struct uart_port));
 
 	for (i = 0; p && p->flags != 0; p++, i++) {
+		if (!p->iobase && !p->membase)
+			continue;
 		port.iobase	= p->iobase;
 		port.membase	= p->membase;
 		port.irq	= p->irq;

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2005-07-16 12:31 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-12  2:22 [patch 2.6.13-git] 8250 tweaks David Brownell
2005-07-12  7:19 ` Russell King
2005-07-12  9:14   ` Russell King
2005-07-12 10:25   ` david-b
2005-07-12 11:08     ` Russell King
2005-07-12 11:32       ` david-b
2005-07-12 12:01         ` Russell King
2005-07-12 13:30           ` david-b
2005-07-12 14:00             ` Russell King
2005-07-13  4:55           ` Sam Song
2005-07-13  6:12             ` Russell King
2005-07-13 10:51               ` Sam Song
2005-07-13 12:48                 ` Russell King
2005-07-14  7:12                   ` Sam Song
2005-07-14 10:42                     ` Russell King
2005-07-15  5:11                       ` Sam Song
2005-07-16  8:43                         ` Russell King
2005-07-16 10:12                           ` Sam Song
2005-07-16 10:15                             ` Russell King
2005-07-16 12:31                               ` Sam Song

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox