| To: | linux-mips@linux-mips.org |
|---|---|
| Subject: | [PATCH] Don't use ttyS* serial device name for board specific PNX8XXX UART serial |
| From: | Ihar Hrachyshka <ihar.hrachyshka@gmail.com> |
| Date: | Wed, 14 Jan 2009 16:35:42 +0200 |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:content-type :date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=UojVWJGzYgmKKUnEMHR9vIk4l2ZrjmXP5MnljWHatKs=; b=r75e23UZJGALZgZDlVRSNfJtH/TNCLZx3MOmBUn9geDbco9miAK9WTnDSDgLrDm2QM 7m/Ujq2aYN8LmLIBmAhZBogd/o7ZJiWzHUoLn3kBEN/FOaWKA5P8cM5O90u6/uUAkjnd O5cmGV2sIJbRWvbHBGASugoiHqr3UOXch0svs= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; b=CZzb+fwcPwfnGdKIY+MCvV376KcAJSFVEl45tm2lF7Jumd8iSnODj1eFUp/msCA41H 1Zf61kucMKNqGyM0AZEgPn0CK+i27XP9fUTWs4TEpVg9BlWYN0dM5vRl0xnADIuAJTci TZi0SGFOCBi8dHSqQY7summgrgHbCYQGycp8c= |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Sender: | linux-mips-bounce@linux-mips.org |
I think that's a better solution for the problem I said so please commit
this patch rather previous one...
---
Don't use ttyS[0-1] serial device name for board specific PNX8XXX UART
serial. Rather create ttyPNX[0-1]. Also changed minor number to be
different with sa1100 serial driver one.
Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
---
drivers/serial/pnx8xxx_uart.c | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/drivers/serial/pnx8xxx_uart.c b/drivers/serial/pnx8xxx_uart.c
index 22e30d2..96870f1 100644
--- a/drivers/serial/pnx8xxx_uart.c
+++ b/drivers/serial/pnx8xxx_uart.c
@@ -34,9 +34,8 @@
#include <asm/io.h>
#include <asm/irq.h>
-/* We'll be using StrongARM sa1100 serial port major/minor */
#define SERIAL_PNX8XXX_MAJOR 204
-#define MINOR_START 5
+#define MINOR_START 96
#define NR_PORTS 2
@@ -636,7 +635,7 @@ static struct uart_ops pnx8xxx_pops = {
/*
* Setup the PNX8XXX serial ports.
*
- * Note also that we support "console=ttySx" where "x" is either 0 or 1.
+ * Note also that we support "console=ttyPNXx" where "x" is either 0 or 1.
*/
static void __init pnx8xxx_init_ports(void)
{
@@ -728,7 +727,7 @@ pnx8xxx_console_setup(struct console *co, char *options)
static struct uart_driver pnx8xxx_reg;
static struct console pnx8xxx_console = {
- .name = "ttyS",
+ .name = "ttyPNX",
.write = pnx8xxx_console_write,
.device = uart_console_device,
.setup = pnx8xxx_console_setup,
@@ -752,8 +751,8 @@ console_initcall(pnx8xxx_rs_console_init);
static struct uart_driver pnx8xxx_reg = {
.owner = THIS_MODULE,
- .driver_name = "ttyS",
- .dev_name = "ttyS",
+ .driver_name = "ttyPNX",
+ .dev_name = "ttyPNX",
.major = SERIAL_PNX8XXX_MAJOR,
.minor = MINOR_START,
.nr = NR_PORTS,
--
1.5.6.3
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH] Don't use ttyS* serial device name for board specific PNX8XXX UART serial, Ihar Hrachyshka |
|---|---|
| Next by Date: | Re: [PATCH] 8250: Initialize more fields in early_serial_setup., David Daney |
| Previous by Thread: | [PATCH] Don't use ttyS* serial device name for board specific PNX8XXX UART serial, Ihar Hrachyshka |
| Next by Thread: | Re: [PATCH] Don't use ttyS* serial device name for board specific PNX8XXX UART serial, Sergei Shtylyov |
| Indexes: | [Date] [Thread] [Top] [All Lists] |