patch-2.2.15 linux/drivers/net/comx.c

Next file: linux/drivers/net/comxhw.h
Previous file: linux/drivers/net/comx-proto-ppp.c
Back to the patch index
Back to the overall index

diff -u --new-file --recursive --exclude-from ../../exclude v2.2.14/drivers/net/comx.c linux/drivers/net/comx.c
@@ -1,4 +1,4 @@
-/* 
+/*
  * Device driver framework for the COMX line of synchronous serial boards
  * 
  * for Linux kernel 2.2.X
@@ -36,9 +36,12 @@
  * Version 0.83 (99/07/15):
  *		- reset line_status when interface is down
  *
+ * Version 0.84 (99/12/01):
+ *		- comx_status should not check for IFF_UP (to report
+ *		  line status from dev->open())
  */
 
-#define VERSION "0.82"
+#define VERSION "0.84"
 
 #include <linux/config.h>
 #include <linux/module.h>
@@ -321,12 +324,10 @@
 	}
 #endif
 
-	if (dev->flags & IFF_UP) {
-		printk(KERN_NOTICE "Interface %s: modem status %s, line protocol %s\n",
+	printk(KERN_NOTICE "Interface %s: modem status %s, line protocol %s\n",
 		    dev->name, status & LINE_UP ? "UP" : "DOWN", 
 		    status & PROTO_LOOP ? "LOOP" : status & PROTO_UP ? 
 		    "UP" : "DOWN");
-	}
 	
 	ch->line_status = status;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)