Skip to contentSkip to conversation

Bodge up serial support in 2.5.40

PATCH In review [email protected] 3 participants 3 messages Oct 2, 2002 – Oct 3, 2002

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Bodge up serial support in 2.5.40

Standard 8250/16550 UART support is broken in 2.5.40, and I needed it, so following a bit of advice from Russell King, I've prepared this patch.

I thought I'd post it, just incase anybody else out there actually uses serial ports, (seems they don't). Before you apply it, bear in mind that the last C I did was a hello world program :-), (only half kidding).

This is a bodge up patch only, NOT an official solution.

John.

drivers/serial/core.c +0 -3
@@ -1604,8 +1604,6 @@
 	return retval;
 }
 
-#ifdef CONFIG_PROC_FS
-
 static const char *uart_type(struct uart_port *port)
 {
 	const char *str = NULL;
@@ -1708,7 +1706,6 @@
 	*start = page + (off - begin);
 	return (count < begin + len - off) ? count : (begin + len - off);
 }
-#endif
 
 #ifdef CONFIG_SERIAL_CORE_CONSOLE
 /*
#1 lore raw
Quoted 3 lines · On Wednesday 02 October 2002 18:36, [email protected] wrote:

Standard 8250/16550 UART support is broken in 2.5.40, and I needed it, so following a bit of advice from Russell King, I've prepared this patch.

Actually, they work fine in 2.5.40. Well, my serial mouse works fine. So i guess the serial port must work fine too.

DK

Signature · 2 lines
Living your life is a task so difficult, it has never been attempted
before.
#2 lore raw
Quoted 7 lines · DevilKin
Quoted 3 lines · On Wednesday 02 October 2002 18:36, [email protected] wrote:

Standard 8250/16550 UART support is broken in 2.5.40, and I needed it, so following a bit of advice from Russell King, I've prepared this patch.

Actually, they work fine in 2.5.40. Well, my serial mouse works fine. So i guess the serial port must work fine too.

Its certain compilation options that mess it up atm.

Signature · 2 lines
Russell King ([email protected])                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html