Alpha serial console Patch

Kenneth Preslan (kpreslan@lcse.umn.edu)
Tue, 6 Oct 1998 22:34:18 -0500 (CDT)


I was having problems getting a serial console to work on my Alpha (LX164).
I traced the problem to SMC93x_Init() routine in arch/alpha/kernel/smc37c93x.c.
It seems that the code turns off the serial port as it initializes the
serial/parallel/floppy/etc chip. But, before it turns the serial port back on,
it uses a printk() to tell you it found the chip. This causes the machine
to hang.

Here's a patch (but probably not the optimal patch) that fixes the problem:

--- smc37c93x.c Tue Sep 22 18:44:48 1998
+++ smc37c93x.c-new Tue Sep 22 19:10:09 1998
@@ -235,8 +235,6 @@
unsigned long SMCUltraBase;

if ((SMCUltraBase = SMCDetectUltraIO()) != 0UL) {
- printk("SMC FDC37C93X Ultra I/O Controller found @ 0x%lx\n",
- SMCUltraBase);
#if SMC_DEBUG
SMCReportDeviceStatus(SMCUltraBase);
#endif
@@ -256,6 +254,10 @@
SMCReportDeviceStatus(SMCUltraBase);
#endif
SMCRunState(SMCUltraBase);
+
+ printk("SMC FDC37C93X Ultra I/O Controller found @ 0x%lx\n",
+ SMCUltraBase);
+
return 1;
}
else {
---- End Patch ----

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/