Skip to contentSkip to conversation

PCMCIA cards for MPC8xx?

DISCUSSION Pavel Bartusek 1 participant 1 message Sep 19, 2002

lore
Share & tools
lore
#0 lore raw

There is a patch, which allows concurent use of arch/ppc/8xx_io/uart.c and drivers/char/serial.c

opt/elinos/linux-2.4.18/arch/ppc/8xx_io/uart.c renamed from arch/ppc/8xx_io/uart.c +9 -0
diff -Nurb linux__/arch/ppc/8xx_io/uart.c /opt/elinos/linux-2.4.18/arch/ppc/8xx_io/uart.c
@@ -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();