Subject: Re: PCMCIA cards for MPC8xx?

From: Pavel Bartusek <[email-masked]>
Date: Thu, 19 Sep 2002 16:39:07 +0200

There is a patch, which allows concurent use of arch/ppc/8xx_io/uart.c
and drivers/char/serial.c
diff -Nurb linux__/arch/ppc/8xx_io/uart.c /opt/elinos/linux-2.4.18/arch/ppc/8xx_io/uart.c
--- linux__/arch/ppc/8xx_io/uart.c	Thu Jan 24 05:23:57 2002
+++ /opt/elinos/linux-2.4.18/arch/ppc/8xx_io/uart.c	Mon Jul  1 13:16:40 2002
@@ -357,8 +357,14 @@
 				  int event)
 {
 	info->event |= 1 << event;
+#ifdef CONFIG_SERIAL
+	/* if the serial driver is also selected, we have to use another tq */
+	queue_task(&info->tqueue, &tq_immediate);
+	mark_bh(IMMEDIATE_BH);
+#else
 	queue_task(&info->tqueue, &tq_serial);
 	mark_bh(SERIAL_BH);
+#endif
 }

 static _INLINE_ void receive_chars(ser_info_t *info, struct pt_regs *regs)
@@ -2566,7 +2572,10 @@
 	volatile	scc_uart_t	*sup;
 	volatile	immap_t		*immap;

+#ifndef CONFIG_SERIAL
+	/* if the serial driver is also selected, SERIAL_BH can't be used */
 	init_bh(SERIAL_BH, do_serial_bh);
+#endif

 	show_serial_version();