patch-2.3.99-pre9 linux/drivers/parport/daisy.c

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

diff -u --recursive --new-file v2.3.99-pre8/linux/drivers/parport/daisy.c linux/drivers/parport/daisy.c
@@ -252,8 +252,7 @@
 }
 
 /**
- *	parport_device_num - convert device coordinates into a
- *			     canonical device number
+ *	parport_device_num - convert device coordinates
  *	@parport: parallel port number
  *	@mux: multiplexor port number (-1 for no multiplexor)
  *	@daisy: daisy chain address (-1 for no daisy chain address)
@@ -279,8 +278,7 @@
 }
 
 /**
- *	parport_device_coords - convert a canonical device number into
- *				device coordinates
+ *	parport_device_coords - convert canonical device number
  *	@devnum: device number
  *	@parport: pointer to storage for parallel port number
  *	@mux: pointer to storage for multiplexor port number
@@ -325,6 +323,7 @@
 {
 	unsigned char s;
 
+	parport_data_forward (port);
 	parport_write_data (port, 0xaa); udelay (2);
 	parport_write_data (port, 0x55); udelay (2);
 	parport_write_data (port, 0x00); udelay (2);
@@ -373,6 +372,7 @@
 	unsigned char s;
 	int rc;
 
+	parport_data_forward (port);
 	parport_write_data (port, 0xaa); udelay (2);
 	parport_write_data (port, 0x55); udelay (2);
 	parport_write_data (port, 0xf0); udelay (2);
@@ -430,6 +430,7 @@
 	int thisdev = numdevs;
 	char *deviceid;
 
+	parport_data_forward (port);
 	parport_write_data (port, 0xaa); udelay (2);
 	parport_write_data (port, 0x55); udelay (2);
 	parport_write_data (port, 0x00); udelay (2);
@@ -502,8 +503,7 @@
    'from' itself is skipped. */
 
 /**
- *	parport_find_device - find a device with a specified
- *			      manufacturer and model string
+ *	parport_find_device - find a specific device
  *	@mfg: required manufacturer string
  *	@mdl: required model string
  *	@from: previous device number found in search, or %NULL for

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