[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[microblaze-uclinux] PATCH: xmbserial.c don't know how to handle interrupts for ttyS2, ttyS3 error
Hi John,
this simple patch correct the handling of interrupts when ttyS2 and
ttyS3 are configured in.
Cheers,
Claudio Lanconelli
Index: xmbserial.c
===================================================================
RCS file: /var/cvs/uClinux-2.4.x/arch/microblaze/kernel/xmbserial.c,v
retrieving revision 1.19
diff -u -r1.19 xmbserial.c
--- xmbserial.c 16 Jan 2006 22:58:26 -0000 1.19
+++ xmbserial.c 19 Jan 2006 17:18:32 -0000
@@ -1528,11 +1528,7 @@
{
volatile unsigned int *uartp;
- switch (info->line) {
- case 0:
- case 1:
- break;
- default:
+ if ( info->line < 0 || info->line >= NR_PORTS ) {
printk("SERIAL: don't know how to handle UART %d interrupt?\n",
info->line);
return;