All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] of_serial: ignore unknown serial port
@ 2007-05-31  9:30 Ishizaki Kou
  2007-05-31 10:46 ` Arnd Bergmann
  2007-06-06  5:58 ` Paul Mackerras
  0 siblings, 2 replies; 7+ messages in thread
From: Ishizaki Kou @ 2007-05-31  9:30 UTC (permalink / raw)
  To: paulus; +Cc: linuxppc-dev, arnd

Current of_serial driver assumes unknown serial port to be 8250. But
this behavior may cause fatal problems when the serial port is not
8250. This patch corrects probe routine to ignore unknown serial port.

Signed-off-by: Kou Ishizaki <kou.ishizaki@toshiba.co.jp>
Cc: Arnd Bergmann <arnd@arndb.de>
---

Index: linux-powerpc-git/drivers/serial/of_serial.c
===================================================================
--- linux-powerpc-git.orig/drivers/serial/of_serial.c
+++ linux-powerpc-git/drivers/serial/of_serial.c
@@ -75,15 +75,13 @@ static int __devinit of_platform_serial_
 		goto out;
 
 	switch (port_type) {
-	case PORT_UNKNOWN:
-		dev_info(&ofdev->dev, "Unknown serial port found, "
-			"attempting to use 8250 driver\n");
-		/* fallthrough */
 	case PORT_8250 ... PORT_MAX_8250:
 		ret = serial8250_register_port(&port);
 		break;
 	default:
 		/* need to add code for these */
+	case PORT_UNKNOWN:
+		dev_info(&ofdev->dev, "Unknown serial port found, ignored\n");
 		ret = -ENODEV;
 		break;
 	}

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

end of thread, other threads:[~2007-06-06 13:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-31  9:30 [PATCH] of_serial: ignore unknown serial port Ishizaki Kou
2007-05-31 10:46 ` Arnd Bergmann
2007-06-06  5:58 ` Paul Mackerras
2007-06-06  9:09   ` Segher Boessenkool
2007-06-06 13:01     ` Arnd Bergmann
2007-06-06 13:44       ` Segher Boessenkool
2007-06-06  9:28   ` kouish

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.