patch-2.4.12 linux/drivers/parport/ieee1284_ops.c

Next file: linux/drivers/parport/parport_pc.c
Previous file: linux/drivers/parport/ChangeLog
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.11/linux/drivers/parport/ieee1284_ops.c linux/drivers/parport/ieee1284_ops.c
@@ -359,6 +359,10 @@
 		DPRINTK (KERN_DEBUG "%s: ECP direction: reverse\n",
 			 port->name);
 		port->ieee1284.phase = IEEE1284_PH_REV_IDLE;
+	} else {
+		DPRINTK (KERN_DEBUG "%s: ECP direction: failed to reverse\n",
+			 port->name);
+		port->ieee1284.phase = IEEE1284_PH_DIR_UNKNOWN;
 	}
 
 	return retval;
@@ -386,7 +390,13 @@
 		DPRINTK (KERN_DEBUG "%s: ECP direction: forward\n",
 			 port->name);
 		port->ieee1284.phase = IEEE1284_PH_FWD_IDLE;
+	} else {
+		DPRINTK (KERN_DEBUG
+			 "%s: ECP direction: failed to switch forward\n",
+			 port->name);
+		port->ieee1284.phase = IEEE1284_PH_DIR_UNKNOWN;
 	}
+
 
 	return retval;
 }

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