* [PATCH] Fix /proc serial info for MMIO ports
@ 2004-02-10 23:28 Bjorn Helgaas
2004-02-21 22:43 ` Russell King
0 siblings, 1 reply; 2+ messages in thread
From: Bjorn Helgaas @ 2004-02-10 23:28 UTC (permalink / raw)
To: linux-ia64
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");
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix /proc serial info for MMIO ports
2004-02-10 23:28 [PATCH] Fix /proc serial info for MMIO ports Bjorn Helgaas
@ 2004-02-21 22:43 ` Russell King
0 siblings, 0 replies; 2+ messages in thread
From: Russell King @ 2004-02-21 22:43 UTC (permalink / raw)
To: linux-ia64
On Tue, Feb 10, 2004 at 04:28:31PM -0700, Bjorn Helgaas wrote:
> 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:
Applied, thanks.
--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of: 2.6 PCMCIA - http://pcmcia.arm.linux.org.uk/
2.6 Serial core
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-02-21 22:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-10 23:28 [PATCH] Fix /proc serial info for MMIO ports Bjorn Helgaas
2004-02-21 22:43 ` Russell King
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox