From: Bjorn Helgaas <bjorn.helgaas@hp.com>
To: linux-ia64@vger.kernel.org
Subject: [PATCH] Fix /proc serial info for MMIO ports
Date: Tue, 10 Feb 2004 23:28:31 +0000 [thread overview]
Message-ID: <200402101628.31933.bjorn.helgaas@hp.com> (raw)
This patch against 2.6.2 fixes a minor issue with /proc/tty/drivers/serial,
which currently doesn't show MMIO address information. Current
sample output:
# cat /proc/tty/driver/serial
serinfo:1.0 driver revision:
0: uart:16450 port:00000000 irq:65 tx:72 rx:0 RTS|DTR
1: uart:16550A port:00000000 irq:65 tx:2950 rx:0 RTS|DTR
...
Output with the attached patch:
# cat /proc/tty/driver/serial
serinfo:1.0 driver revision:
0: uart:16450 mmio:0xF8031000 irq:65 tx:72 rx:0 RTS|DTR
1: uart:16550A mmio:0xFF5E0000 irq:65 tx:2403 rx:74 RTS|DTR
...
=== drivers/serial/serial_core.c 1.78 vs edited ==--- 1.78/drivers/serial/serial_core.c Sat Jan 24 14:53:13 2004
+++ edited/drivers/serial/serial_core.c Tue Feb 10 15:52:10 2004
@@ -1666,9 +1666,12 @@
if (!port)
return 0;
- ret = sprintf(buf, "%d: uart:%s port:%08X irq:%d",
+ ret = sprintf(buf, "%d: uart:%s %s%08lX irq:%d",
port->line, uart_type(port),
- port->iobase, port->irq);
+ port->iotype = UPIO_MEM ? "mmio:0x" : "port:",
+ port->iotype = UPIO_MEM ? port->mapbase :
+ (unsigned long) port->iobase,
+ port->irq);
if (port->type = PORT_UNKNOWN) {
strcat(buf, "\n");
next reply other threads:[~2004-02-10 23:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-10 23:28 Bjorn Helgaas [this message]
2004-02-21 22:43 ` [PATCH] Fix /proc serial info for MMIO ports Russell King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200402101628.31933.bjorn.helgaas@hp.com \
--to=bjorn.helgaas@hp.com \
--cc=linux-ia64@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox